-2

I have tried multiple things that were used in earlier versions but they no longer work as commands have changed a lot so I was wondering how I can delay them for my adventure map

  • nevermind i have figured it respond again if you want me to post pictures with how ! – Jacob Jul 24 at 23:27
  • 2
    That’s exactly what Arqade is all about. So please do that! – ExpertCoder14 Jul 25 at 0:03
  • 5
    Possible duplicate of How to delay or slowly loop commands? – pppery Jul 25 at 0:05
1

You can use Scoreboards! You can make a timer that runs when something happens like another scoreboard changes value. You can use this with functions, Example: setup file: scoreboard objectives add timer dummy scoreboard objectives add starttimer dummy something that runs at every tick: execute if entity @a[scores={starttimer=1}] run scoreboard players add @a timer 1 execute if entity @a[scores={timer=(some numbers as tick) }] run (Commands)

20 ticks = 1 second

| improve this answer | |
0

You can use repeaters connected to command blocks set to impulse, like this:

Key:
C = Command Block
R = Repeater
B = Button / Lever
B C R C R C...
| improve this answer | |
  • 1
    You shouldn't be mixing commands and redstone, generally it's a sign of poor design. – ExpertCoder14 Jul 25 at 1:40
  • I don't quite understand that... Could you please elaborate on that? – fasterthanlight Jul 25 at 2:00
  • It's too much to explain in an itty-bitty comment, so here is an article explaining the dangers of mixing commands and redstone. Repeaters are not too bad, but still should be avoided if possible. The biggest danger is redstone dust, which can cause lag and should be avoided at all costs. (Don't forget to @mention me when replying. Thank goodness I checked for replies, because I didn't get notified!) – ExpertCoder14 Jul 25 at 3:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.