If I want to register items that aren't registered in PocketMine, how do I register them via plugin? Is it recommended? I want to register a map but I keep getting an empty object when constructing it. Is there a certain way that PocketMine registers items?
PHP: Item::$list[itemid] = ClassExtendingItem::class It never worked for me, but I don't see why it shouldn't be working.
The problem is that I get an empty object with Item::get() even though I registered the item. If the item isn't registered I can still get the item with "/give" but with the same problem. Do I need to change anything in the item list?
This cannot be done with the current master branch. However, there is WIP API on the api3/blocks branch to allow you to register your own blocks and items. Note that there's a lot of mess on that branch currently, so some stuff might not work.