Adding Procedures to the Game Loop

Started by GlitchLemon on Mon, 08/03/2020 - 15:59

Topic category: Help with modding (Java Edition)

Last seen on 14:30, 9. Aug 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Adding Procedures to the Game Loop
Mon, 08/03/2020 - 15:59

How do you add procedures that are supposed to execute every tick like grass spreading and water filling? Procedures like these seem to require X, Y, and Z values, but I don't know how to add those to a procedure that should execute everywhere.

Any help appreciated.

Last seen on 01:48, 23. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
So you have to create a new…
Mon, 08/03/2020 - 16:39

So you have to create a new procedure. There is a select option of the trigger. Click the dropdown menu, then select "player update tick". Then do your procedure

Last seen on 14:30, 9. Aug 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If I do that, won't the game…
Fri, 08/07/2020 - 15:58

If I do that, won't the game only update when I move?

Last seen on 01:48, 23. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
No, It will update every…
Fri, 08/07/2020 - 17:00

No, It will update every tick. You are still ticking when you don't move. It will only not tick when you are paused in singleplayer.

Last seen on 14:30, 9. Aug 2020
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes, but how do I specify…
Sat, 08/08/2020 - 13:58

Yes, but how do I specify the X, Y and Z values for a procedure that executes everywhere? For example, if I wanted end stone to convert cobblestone next to it into end stone, how would I make it happen everywhere?

Last seen on 01:48, 23. Aug 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You will have to create a…
Sat, 08/08/2020 - 16:52

You will have to create a custom block for that. So let's say you want an end stone grass type. You won't be able to do this in MCreator without using custom code or using both blocks as custom blocks. I also found a similar article that you can look at.

https://mcreator.net/forum/50384/grass-sprediang-procedure