I need a delay block (timer)

Started by Slashgame on Mon, 11/11/2019 - 14:07

Topic category: Help with MCreator modding

Last seen on 18:19, 16. Nov 2019
Joined Nov 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I need a delay block (timer)
Mon, 11/11/2019 - 14:08 (edited)

 

hello I would like a block that allows to put a delay between each block as 10s

the pls help me 

 

: https: //www.casimages.com/i/191111030804536364.png.html

Edited by Slashgame on Mon, 11/11/2019 - 14:08
Last seen on 21:42, 5. Dec 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
You can create a delay by…
Mon, 11/11/2019 - 15:15

You can create a delay by playing the sound On Block Update Tick and using an NBT tag as a counter:

On Block Update Tick:

if Get logic NBT tag "PlaySound" = true

   if Get number NBT tag "Counter" < 200
   do Set number NBT tag "Counter" to Get number NBT tag "Counter" + 1
   else
   do Play at xyz level 1 pitch 1 sound: "the world le f"
      Set number NBT tag "Counter" to 0
      Set logic NBT tag "PlaySound" to false

Now simply set logic NBT tag "PlaySound" to TRUE whenever you want to sound to play with a delay:

Play at xyz level 1 pitch 1 sound: za1
Set Logic NBT tag "PlaySound" to True

Now sound "za1" will play instantly whenever the 2nd procedure is called and the "the world le f" will play at a (200) ticks delay.

I suggest you check our…
Mon, 11/11/2019 - 17:08

I suggest you check our tutorials collection playlist on our YouTube channel which contains many examples and tutorials that can help you get started with MCreator: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei

Last seen on 18:19, 16. Nov 2019
Joined Nov 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
StellaeLux can you show me a…
Mon, 11/11/2019 - 20:06

StellaeLux can you show me a version by block please ?