58 if(!$blockReplace->canBeReplaced()){
59 return ItemUseResult::NONE;
63 $resultBlock = clone $this->liquid;
67 if(!$ev->isCancelled()){
68 $player->getWorld()->setBlock($blockReplace->getPosition(), $resultBlock->getFlowingForm());
69 $player->getWorld()->addSound($blockReplace->getPosition()->add(0.5, 0.5, 0.5), $resultBlock->getBucketEmptySound());
72 $returnedItems[] = $ev->getItem();
73 return ItemUseResult::SUCCESS;
76 return ItemUseResult::FAIL;