public function getDrops(Item $item) : array { if ($item->getEnchantmentLevel(Enchantment::TYPE_MINING_SILK_TOUCH) > 0) { return [[Item::MYCELIUM, 0, 1]]; } else { return [[Item::DIRT, 0, 1]]; } }