Started by
Tijolinho Gamer
on
Topic category: Help with Minecraft modding (Java Edition)
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
Topic category: Help with Minecraft modding (Java Edition)
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
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)
you might able to use a cooldown on the block for 60ticks
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