📝ItemFormat™

Mojang very like change material (item type), enchantment, potion and many other things's ID (or namespace key). For example, they changed sweeping enchantment ID to sweeping_edge in 1.21. So, before you update your server version, you need carefully check that whether new versions have changed something, otherwise it will break your shop or menu configs.

Hold a item then use command /shop generateitemformat to parse the ItemFormat of it. After execute this command, a new file called generated-item-format.yml wll be generated at plugins/UltimateShop folder. (or plugins/<pluginNameYouAreUsing>)

Hook Item

Hook Plugin

Possible Value: EcoItems, EcoArmor, MMOItems, ItemsAdder, Oraxen, MythicMobs, eco, NeigeItems, ExecutableItems, Nexo, CraftEngine.

hook-plugin: MMOItems

Hook Item

For EcoItems, Oraxen, MythicMobs, Nexo, you should write item id.

For ItemsAdder, eco, you should write namespace:item id.

  • eco's namespace id plugin name, like talismans. The item id follow below rules:

    • Talisman: Just type talisman ID here.

    • EcoArmor:

      • Armor: set_<setID>_<slotID>

      • Advanced Armor: set_<setID>_<slotID>_advanced

      • Upgrade Crystal: shard_<shardID>

    • Reforges: stone_<reforgeID>

For EcoArmor, you should write armor set id;;armor slot. armor slot can be set to BOOTS, CHESTPLATE, ELYTRA, HELMET, LEGGINGS.

For MMOItems, you should write item typeId;;item id.

For CraftEngine, you should write namespace;;item id.

Stop! If you are just trying to get items from custom item plugins, hook-plugin and hook-item option should be enough for you, if your custom item plugins are not supported, please use command instead, all things below is suit for vanilla items, if you set them here, we will replace the related to item attributes and this will lead to the item you get here is different from the item should be in custom item plugins.

Material

If you want to use saved item by plugin, just set this option value to saved item ID, like material: superior_sword.

If the value is empty or illegal, defaults to stone.

Do not use this option when you have hook-plugin option, it won't work if you insist on it!

Amount

Support use PlaceholderAPI or math calculate. For example, %player_health% * 5.

Min Amount/Max Amount - Only support in price/products

When you use dynamic value in amount option, you can use min-amount and max-amount option to limit it's min value and max value. Useful for dynamic price.

Component (1.21.5+, Requrie Paper) - Premium

Use Paper's DataComponent API instead of Spigot's ItemMeta API to modify item easily, also all 1.21.5+ item attribute will only be available in component option, like Weapon. For more info, please view this page.

Custom Name/Display Name

According to your configuration file, there are two formats, one is the old version color code used before version 1.9, or the Text Component used in later versions. The former uses a color code format we created, while the latter uses Mini Message format, as detailed here. Mini Message format require your server core is Paper.

Item Name (1.20.5+)

Item Name is a new item attribute added in 1.20.5, different from display name, item name can not be changed in anvil.

According to your configuration file, there are two formats, one is the old version color code used before version 1.9, or the Text Component used in later versions. The former uses a color code format we created, while the latter uses Mini Message format, as detailed here. Mini Message format require your server core is Paper.

Lore

You can use \n to represent line breaks.

According to your configuration file, there are two formats, one is the old version color code used before version 1.9, or the Text Component used in later versions. The former uses a color code format we created, while the latter uses Mini Message format, as detailed here. Mini Message format require your server core is Paper.

Max Stack (1.20.5+)

Food (1.20.5+)

Effects format: Potion Type ID, Duration, Amplifier, Ambient, Particles, Icon, Chance.

For Ambient, Particles, Icon is boolean type arg, and for Chance is a number from 0 to 1.

For convert is Item Format that the item will return to player after eaten this food (Require 1.21+, and this is optional).

Tool (1.21+)

Jukebox Playable (1.21+)

Fire Resistant (1.20.5+)

Hide Tool Tip (1.20.5+)

Unbreakable

Ratity (1.20.5+)

Flags

Enchants

Config section format is: Enchant ID: Enchant Level.

For enchantment book: You maybe need use stored-enchants instead of enchants.

For custom enchantments: Some enchantments plugins are not registered their enchantment into game, so this won't work for them.

You should use Minecraft enchantment ID instead of Spigot's after 1.20.5.

Glow (1.20.5+)

Custom Model Data

Attributes

Please note that 1.20.5 has changed attribute format, if you generated item before 1.20.5, you have to reconfig them into new format.

Config section format is Attribute ID and then has multi sub options.

Damageable

Represents an item that has durability and can take damage.

Damage

Max Damage (1.20.5+)

Similar to max durability.

Enchantment Storage

This is specific to items that can store enchantments, as opposed to being enchanted. Material.ENCHANTED_BOOK is an example of an item with enchantment storage.

Stored Enchants

Similar to Enchants.

Patterns

Config section format is: Pattern ID: Pattern Color.

Potion

Represents a potion or item that can have custom effects.

Base Effect (1.20.5+)

Base Effect (Before 1.20.5)

Format: Potion Type ID, Extended, Upgraded.

For Extended and Upgraded arg is boolean type.

Effects / Custom Effects

Effects format: Potion Type ID, Duration, Amplifier, Ambient, Particles, Icon.

For Ambient, Particles, Icon is boolean type arg.

Color

Color has 2 formats:

  • Red, Green, Blue

  • One number (like 0xff0000)

Armor

Represents armor that an entity can equip.

Trim (1.20+)

Config section format is 2 sub options.

Leather Armor

Color

Color has 2 formats:

  • Red, Green, Blue

  • One number (like 0xff0000)

Axolotl Bucket (1.17+)

Color

Possible value: LUCY, WILD, GOLD, CYAN, BLUE.

Tropical Fish Bucket (1.14+)

Color

Possible value: WHITE, ORANGE, MAGENTA, LIGHT_BLUE, YELLOW, LIME, PINK, GRAY, LIGHT_GRAY, CYAN, PURPLE, BLUE, BROWN, GREEN, RED, BLACK.

Pattern Color

Similar to Color above.

Pattern

Possible value: KOB, SUNSTREAK, SNOOPER, DASHER, BRINELY, SPOTTY, FLOPPER, STRIPEY, GLITTER, BLOCKFISH, BETTY, CLAYFISH.

Skull

Support 2 formats:

  • Base64: Like example below, only support 1.19+.

  • Player Name: Need online mode, support all versions. UltimateShop-Premium supports use PlaceholderAPI's placeholder here.

Firwork

Power

Firework Effect

Config section format is multi sub options.

For type possible value: BALL, BALL_LARGE, STAR, BURST, CREEPER.

Firework Star

Firework Effect

For type possible value: BALL, BALL_LARGE, STAR, BURST, CREEPER.

Suspicious Stew (1.14+)

Effects

Effects format: Potion Type ID, Duration, Amplifier, Ambient, Particles, Icon.

Bundle (1.17+)/Shulker

Contents

Config section format is slot ID and then with item format.

Brushable Blocks (1.20+)

Content

The loot item inside brushable blocks. Want custom brushable block? Consider buy our CustomArcheology plugin here!

Spawner

Only spawner option is required if you want spawner has mobs inside. Other options are optional.

Ominous Bottle (1.20.5+)

Power

Music Instrument (1.18+)

Music

Repairable

Enchantable (1.21.2+)

Glider (1.21.2+)

Item Model (1.21.2+)

Tooltip Style (1.21.2+)

Use Cooldowns (1.21.2+)

Equippable - Premium

Damage Resistant

Extra Item Format Options

Some additional ItemFormat options can be found on the Compatibility page. Their purpose is to hook with other plugins based on ItemFormat, so that other plugins can also participate in item generation.

Supported plugins at the moment:

  • MythicChanger

  • AdvancedEnchantments - Premium

  • NBTAPI - Premium

Last updated