Relates to #80
dropFewItems wasn't working for Fishy and Wyvern
Changes
For mobs that drop mocegg based on their type, use new function dropLegacyEgg which is more reliable than previous dropFewItems from Forge API. Includes Wyvern, Fishy, Snake.
Test Cases
Kill Wyvern, observe dropped eggs of correct type (33% drop rate to be expected for non-mother wyverns)
Kill Fishy mobs, observe dropped eggs of correct type (30% expected drop rate)
Kill other Aquatic or Animal mobs to ensure their drops still work as expected.
Issue
dropFewItems
wasn't working forFishy
andWyvern
Changes
mocegg
based on their type, use new functiondropLegacyEgg
which is more reliable than previousdropFewItems
from Forge API. IncludesWyvern
,Fishy
,Snake
.Test Cases
Wyvern
, observe dropped eggs of correct type (33% drop rate to be expected for non-mother wyverns)Fishy
mobs, observe dropped eggs of correct type (30% expected drop rate)Aquatic
orAnimal
mobs to ensure their drops still work as expected.Snake
, observe 0-2 eggs are dropped.