public function getDrops(Item $item) : array { if ($item->getEnchantmentLevel(Enchantment::TYPE_MINING_SILK_TOUCH) > 0) { return [[Item::RED_MUSHROOM_BLOCK, SELF::RED, 1]]; } else { return [[Item::RED_MUSHROOM, 0, mt_rand(0, 2)]]; } }