By looking at the code 0 means 99% chances of drop, if the chance is 81+ it will drop the first item, only one item each mob, if the chance is between 1 and 20 it will drop the last item in the list, if the chance is 0 there is no drop.
There is nothing to improve or fix, except a comments in the drop list like this:
Code: Select all
### Comments for mods by Zoey76#P datapack_developmentIndex: data/scripts/mods/eventmodElpies/eventmodElpies.java===================================================================--- data/scripts/mods/eventmodElpies/eventmodElpies.java (revision 7725)+++ data/scripts/mods/eventmodElpies/eventmodElpies.java (working copy)@@ -67,8 +67,10 @@ { 82048, 82940, 53240, 54126, -1490 } }; // Drop data+ // Higher the chance harder the item. private static final int[][] DROPLIST = {+ // ItemId, chance in percent, min amount, max amount { 1540, 80, 10, 15 }, // Quick Healing Potion { 1538, 60, 5, 10 }, // Blessed Scroll of Escape { 3936, 40, 5, 10 }, // Blessed Scroll of Ressurection@@ -81,6 +83,7 @@ }; private static final int[][] DROPLIST_CRYSTALS = {+ // ItemId, chance in percent, min amount, max amount { 1458, 80, 50, 100 }, // Crystal D-Grade { 1459, 60, 40, 80 }, // Crystal C-Grade { 1460, 40, 30, 60 }, // Crystal B-GradeIndex: data/scripts/mods/eventmodRabbits/eventmodRabbits.java===================================================================--- data/scripts/mods/eventmodRabbits/eventmodRabbits.java (revision 7725)+++ data/scripts/mods/eventmodRabbits/eventmodRabbits.java (working copy)@@ -59,8 +59,10 @@ public static final int _skill_magic_eye = 629; // Drop data+ // Higher the chance harder the item. private static final int[][] DROPLIST = {+ // ItemId, chance in percent, min amount, max amount { 1540, 80, 10, 15 }, // Quick Healing Potion { 1538, 60, 5, 10 }, // Blessed Scroll of Escape { 3936, 40, 5, 10 }, // Blessed Scroll of Ressurection