How to add or reduce damage on a tool or armor? It doesn't seem to work $item->setDamage($item->getDamage() + 2); is 2 less?
Try This, this will give item to player's inventory with 2 more damage, if you want to reduce it, then use - 2 PHP: $item = Item::get(276, 0, 1);$item->setDamage($item->getDamage() + 2);$inventory = $player->getInventory()$inventory->addItem($item);