MyPet - Wiki
WebsiteDownloadSpigotDiscord
3.0
3.0
  • MyPet - Wiki
  • MyPet 3.0
  • Setup
    • Update to 3.0
    • Permissions
    • Commands
    • Configurations
      • config.yml
      • pet-config.yml
      • pet-shops.yml
      • hooks-config.yml
      • exp-config.yml
      • worldgroups.yml
      • Custom-Item-Data in Config
  • Systems
    • Translation
    • Leash Flags / Requirements
    • Skilltrees
      • Skilltree Requirements
      • SkilltreeCreator - Tool
    • Experience
      • Experience-Script
    • Pet Storage
    • Hunger-System
    • World Groups
    • Auto Updater
  • Skill Overview
    • Backpack
    • Beacon
    • Behavior
    • Control
    • Damage
    • Fire
    • Heal
    • Knockback
    • Life
    • Lightning
    • Pickup
    • Poison
    • Slow
    • Ranged
    • Ride
    • Shield
    • Sprint
    • Stomp
    • Thorns
    • Wither
  • Tutorials
    • How to get a pet
    • File to MySQL
    • File to MongoDB
  • Plugin-Hooks
    • Hook Types
    • Citizens NPC
    • WG Region Flags
    • PlaceholderAPI
    • BossShopPro
  • Default Settings
    • Pet-Config
  • Misc
    • MyPet-Premium
    • Is MyPet EULA compliant?
    • FAQ
    • Changelog
Powered by GitBook
On this page
  • Item generators
  • NBT data

Was this helpful?

  1. Setup
  2. Configurations

Custom-Item-Data in Config

Previousworldgroups.ymlNextSystems

Last updated 5 years ago

Was this helpful?

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"]}}

beef {"display":{"Name":"[{\"text\":\"Wolf Food\"}]","Lore":["{\"text\":\"Tasty wolf food\"}","{\"text\":\"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.

Item generators

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.

NBT data

The syntax for the NBT data is the same like in the /give command in Minecraft. You can find all possible NBT properties or just use one of the generators from above.

here
http://mapmaking.fr/give/
https://ezekielelin.com/give/
https://minecraftcommand.science/de/custom-item-generator
Custom-Item-Example