PocketMine-MP
PocketMine-MP copied to clipboard
Implemented smithing table functionality
Introduction
This PR adds working smithing tables to pocketmine. There are no known issues or problems
Changes
API changes
Amor->setTrim(ArmorTrim)
Armor->getTrim() : ?ArmorTrim
Armor->clearTrim()
SmithingTableInventory->getInput() : Item
SmithingTableInventory->getAddition() : Item
SmithingTableInventory->getTemplate() : Item
The new enums: ArmorTrimPattern
& ArmorTrimMaterial
(required to construct ArmorTrim
)
Tests
Tested ingame with the smithing table several times:
Tested the code
$player->getInventory()->addItem(VanillaItems::LEATHER_CAP()->setTrim(new ArmorTrim(ArmorTrimMaterial::QUARTZ, ArmorTrimPattern::EYE)));
There's not much more I can do at this point, everthing is fixed except for save ids.
how do I put this on my server?
Looks finished now :)
yeah, ready to be reviewed again.