Sapling Drop [Using Procedures]

Started by AOCAWOL on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sapling Drop [Using Procedures]

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

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If random 0,1 = 0,5 do spawn…
Sun, 11/04/2018 - 03:19

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

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thankyou :D <3
Sun, 11/04/2018 - 23:32

Thankyou :D <3

Joined Jun 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Be sure to make that the…
Mon, 11/05/2018 - 07:08

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

Joined Oct 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
To be honest I've been using…
Tue, 11/06/2018 - 00:18

To be honest I've been using 1.7.9 of Mcreator cuz 1.8.0 breaks all my biomes and trees so..

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to do this too but…
Sun, 11/18/2018 - 01:24

I want to do this too but the block code only lets me use Random [0,1)  How do I make Random [0,5)??

Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Logic of random block in…
Sat, 11/24/2018 - 01:28

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

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
sorry for the late post, but…
Wed, 11/28/2018 - 18:31

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