Topic category: Advanced modding
Hello everyone, I will now show you how to use the new procedure system to create a growing plant!
First, you have to create a new Variable in your procedure:
After you did that, you can go over to the math section (1) and grab the [Pi] (2):
Now, drop the [Pi] in your procedure (1) and change it to Random [0,1) (2):
As you can see I created the rest of the procedure already:
The first Block (1) will get you a value from 0 to 100. (Note: the Random [0,1) will give you a value from 0 to 1).
At (2) you can change your possibility. (Note: The possibility for the plant to grow is now 5% per Tick in my case, lower numbers = longer grow time (it's still random)).
And of course you can change the Place Block thing (3) to the next stage of your plant.
That's it!
This is a easy, but still random way to create growing plants!
I hope I could help ya ;D
Oh and before I forget it, you have to activate the procedure via the "Update Tick" option in your plant mod.
What do you mean exactly? Just grab the "get" box with the right colour...
the Set *insert variable* doesn't allow me to choose my random number variable
never mind the variable had to be a number type
On your last step(s) image you have the variable "Get L:RN x 100" attacthed to your if do string. Mine wont attach like yours does
Thank you very much, although this functionality this tutorial is intended for the creation of plants, it will serve me for the creation of a boss with multiple attacks
Tysm, it really helped