Group procedure delay

Started by NorthWestTrees on

Topic category: Feature requests and ideas for MCreator

Group procedure delay

I noticed that the only way to delay anything rate now is with blocks and tick rates. There is no support for items or other procedrue types and also makes it hard to delay a section of code in the procedure. In some cases, for example, you wanted to delay lightning to strike a location X amount of game ticks after say you right click a block or right-click the air of an item to do a section of code this would be handy. The best way I can think to do this would be something like an IF statement but instead of testing for a condition to have a number value to delay in ticks,

I don't know what do you guys think any extra ideas you want to add on to this one?

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
public waitTicks(int ticks;…
Mon, 05/06/2019 - 08:19
public waitTicks(int ticks; int maxTicks){
    if ticks < maxTicks{
        ticks++



    }else{

    //do something

    }





}




Maybe something like this?