Started by
AOCAWOL
on
Topic category: Help with Minecraft modding (Java Edition)
Hi :)
So a heavily requested feature from my mod is saplings and its not that hard to do by default but my problem is i don't want ever leaf dropping a sapling, so my quesiton is:
How do I make a procedure that has a x% chance of dropping sapling from a block using procedures?
Appreciate the help in advance <3
If random 0,1 = 0,5
do spawn gem
This will give you 50% chance to drop sappling
0,1 = 10% 0,2 = 20% 0,37 = 37% etc
Check official MCreator wiki for more help :)
Thankyou :D <3
Be sure to make that the block can't be silk harvested and that it normally drops nothing.
However, when broken, it triggers a procedure that:
if the player is not holding shears it will rarely drop a sapling or a fruit
if the player is holding shears it will drop leaves
This is how it should be done in my opinion
To be honest I've been using 1.7.9 of Mcreator cuz 1.8.0 breaks all my biomes and trees so..
I want to do this too but the block code only lets me use Random [0,1) How do I make Random [0,5)??
Logic of random block in Procedure looks like this Random [0,1] which is a bit wrong because in fact game interprets it like this Random [0 to 1] that coma is wrong here
So it might be confusing when you see something like this 0,8 but in fact game reads this like that 0,80% chance, clearing this out we getting 80% and in Random [0,1] 0 is 0% and 1 is 100% also to make this more clear if we put 1,2 we will get 120%
sooo Conclusion is that you need to set something Between 0 and 1
sorry for the late post, but I was doing exactly what you said Wes, however in 1.8.1 the number slot will not allow me to put 0,5 I have a screenie
https://postimg.cc/ZW3dw36b
https://postimg.cc/ZW3dw36b
(sorry for double too)
You can enter 0.5, not 0,5 and it will work.