How to create a growing plant

Started by Darkster2512 on

Topic category: Advanced modding

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
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What do you mean exactly?…
Sat, 08/04/2018 - 21:57

What do you mean exactly? Just grab the "get" box with the right colour...

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the Set *insert variable*…
Tue, 10/09/2018 - 18:55

the Set *insert variable* doesn't allow me to choose my random number variable

Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
never mind the variable had…
Tue, 10/09/2018 - 18:58

never mind the variable had to be a number type

Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On your last step(s) image…
Sun, 06/23/2019 - 14:13

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

 

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much,…
Mon, 01/18/2021 - 19:54

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