How to make loops??

Started by Reedomu on Mon, 11/28/2022 - 03:39

Topic category: Help with modding (Java Edition)

Last seen on 03:52, 23. Jan 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make loops??
Mon, 11/28/2022 - 03:39

Hello, I'm trying to make a procedure where a random event happens every 30 seconds. I want to make this loop forever but I don't know how. If you know how can you please do a tutorial or send a helpful screenshot?

Last seen on 12:40, 26. Jan 2023
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First create a command…
Tue, 11/29/2022 - 09:56

First create a command called BeginRandomEvent. This will be used to call the initial procedure that will allow the events to occur. 

Then create a Procedure called InitialiseRandomEvent and use a "Wait x ticks then on server-side" procedure with x, the number of ticks, as 600.

Now create a new Procedure called EventChooser and within that procedure use the "Do with 70% chance" template to create your list of random events. Once you have created the list of events, scroll down to the Advanced section of the procedures tab and click "Call Procedure" and choose InitialiseRandomEvent. This will create your infinite loop of events.

Last seen on 12:40, 26. Jan 2023
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
On the command make sure you…
Tue, 11/29/2022 - 09:57

On the command make sure you put its procedure as InitialiseRandomEvent as well.

Last seen on 12:40, 26. Jan 2023
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
also make sure the Call…
Tue, 11/29/2022 - 10:23

also make sure the Call Procedure InitialiseRandomEvent on EventChooser is either inside every event or under your event list.