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.
Very nice tutorial! I hope it will help users to better understand procedures. If you are ready to do more such posts, you can become a wiki contributor and post them on the wiki :)
https://mcreator.net/page/wiki-contributors
Ok I will try it out :D
NICE ! thanks you so much :3
What program is that? I don't see that page.
This is the newest version of MCreator (1.7.9).
Oh I see! After that comment I checked and downloaded the new version
Very nice
It seems more complicated than it needs to be - couldn't you just have done, IF Random[0,1) < 0.05?
I think it's brilliant (think of it as training wheels) It sets you up to think Object oreinted-ly The only thing is you can call only one procedure which is going to be hard to get used to. Maybe later they will allow you to have more than one. Not sure
I know a way to make the randomizer a lot shorter, and how do you post or take images
And the funny thing is we both do that for plants
https://imgur.com/ < I use this and then click the add Image icon where it asks for a link to the image you uploaded to that web page
THANK YOU SO MUCH !
This couldnt help me, as the one colour "get" box didn't go wit the other. im sad.