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.
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.