I'm making a map. And to get stuff they need to press a button. After they pressed it disseppear. The problem is that i can't find how i need to control when the player dies and the button can appear again. Can anyone help me with that. Thank you.
you can set a score board to count player deaths with "/scoreboard objectives add Deaths deathCount" you can then set a repeating command block to constantly read the number with "/scoreboard players test @a Deaths 1 1" once a player dies you can use the previous command block pointing at a chain block with the command "/setblock X Y Z wooden_button" then have it chain into "/scoreboard players reset @a Deaths" to reset the whole chain the complete chain would be the below:
"/scoreboard players test @a Deaths 1 1" >>> "/setblock X Y Z wooden_button" >>> "/scoreboard players reset @a Deaths"
cmd block settings (Repeating, No Redstone) >>> (Chain, No Redstone) >>> (Chain, No Redstone)
Rollback Post to RevisionRollBack
Check out my mod pack! its at over 10,000 Downloads and has an official server!