How to create a growing plant

Started by Darkster2512 on

Topic category: Advanced modding

Last seen on 12:29, 22. Dec 2021
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create a growing plant
Sun, 05/06/2018 - 13:19 (edited)

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:

New Variable

 

After you did that, you can go over to the math section (1) and grab the [Pi] (2):

Grab it

 

Now, drop the [Pi] in your procedure (1) and change it to Random [0,1) (2):

Drop it

 

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.

The final procedure

 

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.

Edited by Darkster2512 on Sun, 05/06/2018 - 13:19
Very nice tutorial! I hope…
Sun, 05/06/2018 - 13:56

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 :)

Last seen on 12:29, 22. Dec 2021
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok I will try it out :D
Sun, 05/06/2018 - 15:31

Ok I will try it out :D

Last seen on 21:06, 23. Nov 2021
Joined Sep 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NICE ! thanks you so much :3
Wed, 05/09/2018 - 15:39

NICE ! thanks you so much :3

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What program is that? I don…
Fri, 05/18/2018 - 00:50

What program is that? I don't see that page.

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh I see!  After that…
Fri, 05/18/2018 - 16:23

Oh I see!  After that comment I checked and downloaded the new version

Very nice

Last seen on 17:08, 7. Nov 2021
Joined Aug 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It seems more complicated…
Sat, 05/19/2018 - 02:02

It seems more complicated than it needs to be - couldn't you just have done, IF Random[0,1) < 0.05?

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think it's brilliant …
Sat, 05/19/2018 - 15:59

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

Last seen on 04:34, 12. Dec 2022
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know a way to make the…
Sun, 05/20/2018 - 00:49

I know a way to make the randomizer a lot shorter, and how do you post or take images

Last seen on 04:34, 12. Dec 2022
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And the funny thing is we…
Sun, 05/20/2018 - 00:51

And the funny thing is we both do that for plants

Last seen on 20:19, 16. Apr 2020
Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
https://imgur.com/ &nbsp; <…
Sun, 05/20/2018 - 01:46

https://imgur.com/ &nbsp; < 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

Last seen on 03:42, 22. Sep 2018
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THANK YOU SO MUCH !
Tue, 06/19/2018 - 18:31

THANK YOU SO MUCH !

Last seen on 08:33, 15. Jul 2021
Joined Mar 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This couldnt help me, as the…
Sat, 08/04/2018 - 19:10

This couldnt help me, as the one colour "get" box didn't go wit the other. im sad.