Now it's work like a axe ? No it's not work I can't break woods i miss anything if not why it's not work ?
use customiesdevs\customies\item\component\HandEquippedComponent;
use customiesdevs\customies\item\CreativeInventoryInfo;
use customiesdevs\customies\item\ItemComponentsTrait;
use pocketmine\item\ItemIdentifier;
use pocketmine\item\ToolTier;
use pocketmine\nbt\tag\CompoundTag;
use pocketmine\nbt\tag\ListTag;
class axe_2 extends \pocketmine\item\Axe implements \customiesdevs\customies\item\ItemComponents{
use ItemComponentsTrait;
public function __construct(ItemIdentifier $identifier, string $name = "axe_2"){
parent::__construct($identifier, $name, ToolTier::DIAMOND());
$this->initComponent("axe_2", new CreativeInventoryInfo(CreativeInventoryInfo::CATEGORY_EQUIPMENT, CreativeInventoryInfo::GROUP_AXE));
$this->addComponent(new HandEquippedComponent(true));
}
public function getMaxDurability() : int{
return 2031;
}
protected function getBaseMiningEfficiency() : float{
return 12;
}
}
Now it's work like a axe ? No it's not work I can't break woods i miss anything if not why it's not work ?