Started by
Kent15
on
Topic category: Troubleshooting, bugs, and solutions
Well from the previous version of MCreator, I used the Random possibility feature for growing plants. So at a random possibility of 5%, it will update the plant to the next stage.
This is the ONLY way I could get a plant to grow using MCreator. Now my mod is broken until this gets put in, or a work around is found in the Procedures.
Please help.
Thanks ;)
I think there is a feature for randomizing a variable. With a randomized variable you can use an "if" condition that checks if the variable is = to a number
Example: randomize variable Growing 1~100
If variable Growing = 100 - > Add Block
But I think there is this feature, I'm not sure
Anyways, in vanilla minecraft things grow by game ticks, not random conditions
There is a random block in math.
I created a forum post explaining it.
Here is the link to it https://mcreator.net/forum/42039/how-create-growing-plant
The Random Block is stuck at 0,1
You can multiply it with 5 for example to get the 0,5 range. Check the Template library as there is one example on random numbers too.
if you want a 5% chance that something happens then do this:
if random[0,1] < 0,05
do something
- smyril