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
Last seen on 12:29, 22. Dec 2021
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...

Last seen on 11:12, 13. Jul 2024
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

Last seen on 11:12, 13. Jul 2024
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

Last seen on 22:04, 2. Aug 2020
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

 

Last seen on 23:35, 30. Oct 2023
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

Last seen on 22:03, 23. Dec 2022
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tysm, it really helped
Fri, 12/23/2022 - 16:14

Tysm, it really helped