getTypeId() === BlockTypeIds::AIR){ $world = $player->getWorld(); $world->setBlock($blockReplace->getPosition(), VanillaBlocks::FIRE()); $world->addSound($blockReplace->getPosition()->add(0.5, 0.5, 0.5), new FlintSteelSound()); $this->applyDamage(1); return ItemUseResult::SUCCESS(); } return ItemUseResult::NONE(); } public function getMaxDurability() : int{ return 65; } }