Started by
MGMac
on
Topic category: Help with modding (Java Edition)
I need to spawn an item above a block every 1 minute. I had used on block update tick with wait 1200 ticks then spawn gem but it waited 1 minute then started spawning gems every tick which is very bad. Please help, this relates to the modjam and is therefore very urgent
Here is an idea:
Go to the variables tab at the side and create a variable. Make it a number variable type and set the variable scope to GLOBAL_WORLD
Create a procedure.
The variable will go up every tick, and there will be an if statement below that looks like this.
I haven't tested this out, so make modifications if you need,
Wow this was very helpful, I'll have to test it out but thanks
Wouldn't this apply to all of the blocks? I would like each block of this type to still work
Use a while true to have a wait 1200 ticks then run?
Or have a ticker that goes up every tick and will summon a gem when it hits X before resetting to 0