Drop Chance Percentage

Started by ModMCdl on Fri, 09/30/2016 - 20:28

Topic category: Advanced modding

Last seen on 20:18, 18. Apr 2017
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Drop Chance Percentage
Fri, 09/30/2016 - 20:28

Hello. Is there anyway to add a drop chance percetage (ie. 25% of dropping item x instead of item y) or similiar. Can this be done with event handling? 

If not, is there a specific line of code I can implemend directly into the class?

Last seen on 05:14, 22. Jul 2019
Joined Aug 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
https://www.youtube.com/watch
Fri, 09/30/2016 - 23:07

https://www.youtube.com/watch?v=3K1Jj1Ki82s

This vid is for an older version for minecrafr 1.7.10, but the code for drop percentages shouldnt have changed, so let me know if this helps.