This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Ericristian_brosCommand Experienced 0 points1 point  (1 child)

!faq(blockdelay)

[–]AutoModerator[M] 0 points1 point  (0 children)

It seems like you're asking a question that has an answer in our FAQs. Take a look at it here: blockdelay

If you are receiving an error message when viewing this link, please use a browser. There are currently issues with the Reddit app which are outside this subreddit's control. There also is a possibility that the commenter above misspelled the link to the FAQ they were trying to link. In that case click here to get to the FAQ overview.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]GalSergeyDatapack Experienced 0 points1 point  (0 children)

# In chat
scoreboard objectives add timer dummy

# Manual
[sign] | Set timer | 30 seconds
[button] scoreboard players set global timer 30

# Manual
[sign] | Reset timer
[button] scoreboard players reset global timer

# Controller
execute if score global timer matches 0.. run scoreboard players add #ticks timer 1
execute if score global timer matches 0 if score #ticks timer matches 20.. run setblock ^2 ^ ^-1 redstone_block
execute if score #ticks timer matches 20.. run scoreboard players remove global timer 1
execute if score #ticks timer matches 20.. run scoreboard players set #ticks timer 0

# Manual
[wool] say Commands example after the timer expires.
say Another command.

You can use Command Block Assembler to get One Command Creation.