How to make loops??

Started by Reedomu on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make loops??

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?

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or you can do While True
Tue, 02/14/2023 - 17:20

Or you can do While True