1

[TUTORIAL] Complete Guide To How To Delay Command Blocks (1.13 | 1.14 | 1.15 | 1.16)

Hunam's Avatar Hunam6/26/20 7:29 am history
1 emeralds 6.6k 1
6/26/2020 7:51 am
One_Nose's Avatar One_Nose
HOW TO DELAY COMMAND BLOCKS?









STEP 1 - The engine (you can place this anywhere in your world):

width=421


The repeating, unconditional, always active command block:

tag @e[​type=area_effect_cloud,tag=Delay,nbt={Age:-1}] add DelayEnd

The 1st chained, unconditional, always active command block:
execute as @e[​type=area_effect_cloud,tag=DelayEnd] at @s positioned ~ ~ ~ run data merge block ~ ~ ~ {auto:1b}

The 2nd chained, unconditional, always active command block:
execute as @e[​type=area_effect_cloud,tag=DelayEnd] at @s positioned ~ ~ ~ run data merge block ~ ~ ~ {auto:0b}

STEP 2 - Usage:



  • The C variable must be replaced by the coordinates of the command block that will be activated after the delay (the red command block on the image)
  • The T variable must be replaced by the time (in ticks) before the desired command block (set with the C variable) will be executed (for 3 seconds: 3*20=60)
The command:
summon area_effect_cloud C {Tags:["Delay"],Age:-T}

Usage example:
summon area_effect_cloud ~-1 ~ ~ {Tags:["Delay"],Age:-60}

Special thanks to lorgon111 who came up with this contraption and to JannisX11 for the original post on minecraftforum.net.
Posted by Hunam's Avatar
Hunam
Level 1 : New Crafter
0

Create an account or sign in to comment.

1

2
06/26/2020 7:51 am
Level 57 : Grandmaster Hero
One_Nose
One_Nose's Avatar
I like the idea, it's very original, but you could just use /schedule...
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome