41 public function onBreak(
Item $item, ?
Player $player =
null, array &$returnedItems = []) : bool{
42 if(($player === null || $player->isSurvival()) && !$item->hasEnchantment(
VanillaEnchantments::SILK_TOUCH())){
43 $this->position->getWorld()->setBlock($this->position, VanillaBlocks::WATER());
46 return parent::onBreak($item, $player, $returnedItems);