Hello, I need help with the new version of MCPE and PocketMine. In 0.12.1 is added armor and item in hand to entities, usually zombies. I found Human entity with armor and item in hand on one server. How to do this, and this is possible in 1.13.0 API, or only 2.0.0? Here is the screenshot.
Im not too sure about the zombies and skeletons but to set a humans armour PHP: $huuman->getInventory()->setHelmet($helmet);$huuman->getInventory()->setChestplate($chestplate);/*etc...*/
PHP: $huuman->getInventory()->sendArmorContents($huuman); Yes? And... PHP: $huuman->getInventory()->setItemInHand(Item::get(id,dmg,count)); Yes?
Actually, that is pointless. But some pm bug makes that necessary to do so in previous versions, not sure if it still hapepns now.
For the item on hand on a human I had to set the held item slot too ( PHP: $human->getInventory()->setHeldItemSlot($number); )