Procedure Block Idea

Started by vfran2 on

Topic category: Feature requests and ideas for MCreator

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Procedure Block Idea

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.

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This would be useful but…
Mon, 04/17/2023 - 00:46

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.