Started by
Reedomu
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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.
On the command make sure you put its procedure as InitialiseRandomEvent as well.
also make sure the Call Procedure InitialiseRandomEvent on EventChooser is either inside every event or under your event list.
Or you can do While True