Wait Procedure

Started by Tijolinho Gamer on

Topic category: Help with modding (Java Edition)

Last seen on 21:32, 24. Jul 2023
Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wait Procedure

I want to know how I made a wait(block procedure) betwen a time like:

Wait Min:60ticks and Max:120ticks and then run the next blocks

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
from what I understand you,…
Thu, 09/16/2021 - 21:26

from what I understand you, I have 2 ideas, 1 and only for blocks, make Tick Update 120, and 2, which is more complex and should work for entities, items and blocks, on the Update Tick of your element, make an NBT tag called Timer (Needs to be a Number NBT Tag) and your procedure should look like:

Set Number NBT Timer to Get Number NBT Timer + 1

If get: Number NBT Timer = 120

 do (Your procedure)

Else if get: Number NBT Timer = 60 AND Local (Or Global) Variable (This should be the condition it takes so the timer takes less times) = True

    do (Your Procedure)

Last seen on 08:00, 11. Jul 2023
Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you might able to use a…
Thu, 09/16/2021 - 22:25

you might able to use a cooldown on the block for 60ticks

I suggest you check our…
Fri, 09/17/2021 - 15:50

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