-
Ello I'm very new to pocketmine development and I'm just confused af... So in my main.php I have under OnEnable() CustomiesItemFactory::getInstance()->registerItem(Item::class, "customies:test", "TestItem"); and then in a TestItem.php I have
I have no clue how to execute this "component" part. I'm probally just being dumb but I'm only a few weeks into learning pocketmine and I'm confused... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I managed to get the blocks to work with textures, but I still don't know how to get the item components to work and add item textures |
Beta Was this translation helpful? Give feedback.
-
You can add components using Check out the wiki! https://github.com/CustomiesDevs/Customies/wiki/Custom-Items You can find a list of components over at https://bedrock.dev/docs/stable/Item. |
Beta Was this translation helpful? Give feedback.
You can add components using
$this->addComponent
after calling$this->initComponent
in the constructor.Check out the wiki! https://github.com/CustomiesDevs/Customies/wiki/Custom-Items
You can find a list of components over at https://bedrock.dev/docs/stable/Item.