Custom-Item-Data in Config
Last updated
Last updated
It is possible to set the item data
(like wool color) and NBT data
(like enchantments, name and lore) for items in the MyPet config.
You have to provide the Item properties in this order:
1.13-Item-ID
NBT-Data
Example:
beef {display:{Name:"Wolf Food",Lore:["Tasty wolf food","Tastes like banana"]}}
When you set the food of the wolf to this, a player needs an item that is like in this picture:
This will allow server owners to set the food and leash items (and some other items used by MyPet) to items that can only be obtained by shops etc.
You can create any item you want but sometimes MyPet will not recognize these items. This happens because the item comparison is very harsh in MyPet. To make it easier to setup config items the plugin now has the /petadmin info item
command. This command will output the item you are currently holding in your main hand to the server logs (don't copy from console). Copy and paste this output to your config and it should work fine.
You can use item generators from various site like these:
Just copy the generated command and remove the /give @a
.
The syntax for the NBT data is the same like in the /give
command in Minecraft. You can find all possible NBT properties here or just use one of the generators from above.