getId() === BlockLegacyIds::AIR){ $world = $player->getWorld(); assert($world !== null); $world->setBlock($blockReplace, BlockFactory::get(BlockLegacyIds::FIRE)); $world->addSound($blockReplace->add(0.5, 0.5, 0.5), new FlintSteelSound()); $this->applyDamage(1); return ItemUseResult::SUCCESS(); } return ItemUseResult::NONE(); } public function getMaxDurability() : int{ return 65; } }