Commands to run once:
/scoreboard objectives add Time dummy
/summon ArmorStand ~0.2 ~-2.2 ~0.5 {NoGravity:1b,Marker:1b,Invisible:1,ArmorItems:[{},{},{},{id:clock,Count:1}],Rotation:[90f]}
/summon ArmorStand ~ ~ ~ {Marker:1,NoGravity:1b,Marker:1b,Invisible:1,Tags:[TCHANGE]}
COLUMN 1
execute @e[score_Time_min=1] ~ ~ ~ time add 50
/scoreboard players reset @e[tag=TCHANGE,score_Time_min=2]
execute @e[tag=TCHANGE] ~ ~ ~ detect ~ ~ ~ stone_button 10 setblock ~ ~ ~ stone_button 2
execute @e[tag=TCHANGE] ~ ~ ~ detect ~ ~ ~ stone_button 10 scoreboard players add @e[c=1,tag=TCHANGE] Time 1
How it works:
See what's inside of each command block!
© Cimap. All Rights Reserved
This website is not endorsed, associated or affiliated with Mojang AB.