Added wheat worms as a possible drop when mining dirt

This commit is contained in:
Sollace 2019-03-05 13:11:33 +02:00
parent 68cbb4b57b
commit ff707b679e

View file

@ -79,6 +79,10 @@ public class BlockInteractions {
if (world.rand.nextInt(5000) == 0) {
drops.add(SpellRegistry.instance().enchantStack(new ItemStack(UItems.spell), "awkward"));
}
} else if (block == Blocks.DIRT || block == Blocks.CLAY || block == Blocks.GRASS_PATH || block == Blocks.GRASS || block == UBlocks.hive) {
if (world.rand.nextInt(25 / fortuneFactor) == 0) {
drops.add(new ItemStack(UItems.wheat_worms, 1 + fortune));
}
} else if (block instanceof BlockTallGrass) {
if (world.rand.nextInt(25 / fortuneFactor) == 0) {
for (int i = 0; i < 1 + fortune; i++) {