alvin0319 / CustomItemLoader

This is a plugin that brings the custom item to your server for PocketMine-MP!

Home Page:https://discord.com/invite/Py2vSwg3B3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't add custom armor

dotV3 opened this issue · comments

Describe the bug
Basically, I can't add a custom armor even when I simply just tried the "armor template"

Expected behavior
To add a new armor

Actual behavior
server crashes if any item has "armor: true" regardless of anything else

Hi, I don't understand your issue. Please describe it more.

I did the same steps to add a armor and followed the config and even the examples but it did not work and I tried removing in the config of the item

"armor: true"

and it worked which resulted in the conclusion of any item that has "armor: true" would not work or basically the example you've provided is not correct
which is

items:
<your_item_name>:
id:
meta:
namespace:
armor: true
armor_slot: chest
defence_points: 5 # Defence points of armor
armor_class: diamond # Default is diamond, feel free to send feedback to me

yes, I did change the item name and id and meta etc and still did not work

Any error messages on console?

the server doesn't crash because it doesn't load in the first place

"Failed to load some plugins"

all plugins do load except CustomItemLoader

and the moment I remove "armor: true" from the config, the server opens and works fine