Sapling Drop [Using Procedures]

Started by AOCAWOL on Sun, 11/04/2018 - 02:47

Topic category: Help with modding (Java Edition)

Last seen on 22:53, 18. Oct 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sapling Drop [Using Procedures]
Sun, 11/04/2018 - 02:47

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

Last seen on 22:00, 27. Sep 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 :)

Last seen on 22:53, 18. Oct 2020
Joined Oct 2014
User points:

User statistics:

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

Thankyou :D <3

Last seen on 19:10, 28. Oct 2020
Joined Jun 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 22:53, 18. Oct 2020
Joined Oct 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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..

Last seen on 21:12, 23. Nov 2018
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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)??

Last seen on 22:00, 27. Sep 2020
Joined Apr 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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

Last seen on 21:31, 3. Sep 2020
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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