MyPet - Wiki
WebsiteDownloadSpigotDiscord
Legacy
Legacy
  • MyPet - Wiki
  • MyPet-Premium
  • Setup
    • Permissions
    • Commands
    • Configurations
      • config.yml
      • pet-config.yml
      • pet-shops.yml
      • Custom-Item-Data in Config
  • Systems
    • Leash Flags / Requirements
    • Skilltrees
      • SkilltreeCreator - Tool
    • Experience
      • Experience-Script
    • MyPet 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
  • Misc
    • Is MyPet EULA compliant?
    • FAQ
    • Changelog
Powered by GitBook
On this page

Was this helpful?

  1. Setup
  2. Configurations

Custom-Item-Data in Config

Previouspet-shops.ymlNextSystems

Last updated 6 years ago

Was this helpful?

Since MyPet-1.1.4 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:

  • Item-ID/Item-Name Item-Data NBT-Data

Examples:

  • 363 0 {display:{Name:"Wolf Food",Lore:["Tasty wolf food","Tastes like banana"]}}

  • minecraft:beef 0 {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.

Item generators

You can also 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.

http://mapmaking.fr/give1.12/
https://ezekielelin.com/give/
https://minecraftcommand.science/de/custom-item-generator
here
CustomItemExample