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