64 if($this->bites === 0 && $item instanceof
ItemBlock){
67 if($block->getTypeId() === BlockTypeIds::CANDLE){
68 $resultBlock = VanillaBlocks::CAKE_WITH_CANDLE();
70 $resultBlock = VanillaBlocks::CAKE_WITH_DYED_CANDLE()->setColor($block->getColor());
73 if($resultBlock !==
null){
74 $this->position->getWorld()->setBlock($this->position, $resultBlock);
80 return parent::onInteract($item, $face, $clickVector, $player, $returnedItems);