Started by
vfran2
on
Topic category: Feature requests and ideas for MCreator
I'm thinking about a "For every tick in X ticks do" procedure block. Basically, you define a certain amount of ticks (X), and for every tick within X, a block/procedure is executed. If you set X to 20, for example, then the blocks you put in would be done 20 times, one time each tick. Think a loop block, but with a time limit.
This could be useful in a variety of ways, like custom potions, visual effects, and more. Maybe you'd set each tick to have a X% chance of death with a potion applied/expired. There are a lot of potential use cases for it, and I think it's at least a neat idea.
This would be useful but there are alternatives.
You could make a global variable or custom NBT tag and make it so every tick it adds 1 to the variable/tag, and in the same procedure, make an if block so if (variable/tag) >= 20, do the thing you want it to do once per second, and then set the variable/tag back to 0.