Items Tutorial

All items on ConnectTheBlocks follow the same format, here you can find information of the properties of items.

An example of an item on the inventory.yml file:

selected_block_none:
  id: BARRIER
  name: "&eCurrent Selected Block"
  lore:
    - "&7Status: &8NONE"
    - ""
    - "&7Select a Wool Block!"

An example of an item on the easy category file:

level_completed:
  id: LIME_TERRACOTTA
  name: "&2Level %level%"
  lore:
    - "&7Type: &e%type%"
    - "&7Status: &a[COMPLETED]"
    - ""
    - "&7Completed in: &e%time%(s)"

Id

The id/material of the item. Latest Versions Material: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.htmlarrow-up-right Legacy Materials: https://helpch.at/docs/1.8/org/bukkit/Material.htmlarrow-up-right

Durability

Durability or data value of the item.

Name

Custom name of the item.

  • You can use any PlaceholderAPI variable.

Lore

Custom lore/description of the item.

  • You can use any PlaceholderAPI variable.

Amount

The number of items.

Custom Model Data

Custom model data value of the item. Only works on 1.16-1.21.3.

Custom Model Component Data

The new 1.21.4 custom model data. The flags, floats, colors and strings properties consist of a list of elements. More info here: https://minecraft.wiki/w/Data_component_format/custom_model_dataarrow-up-right

Enchants

Enchantments of the item. Use the following format: <name>;<level> You can find all enchantment names here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.htmlarrow-up-right

Item Flags

Item flags of this item. You can find all item flag names here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/ItemFlag.htmlarrow-up-right

Attributes

Attribute modifiers of this item. This is difficult to implement manually, so I suggest you not to modify this option unless you know what you are doing. Format: <attribute_name>;<operation>;<value>;<uuid>;<slot> Attribute names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.htmlarrow-up-right Operation names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.Operation.htmlarrow-up-right Slot names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EquipmentSlot.htmlarrow-up-right Generate a random uuid here: https://www.uuidgenerator.net/arrow-up-right

Color

Color of a leather armor.

Hide Tooltip

Whether the tooltip should be hidden or not. 1.20.6+

Tooltip Style

Style of the tooltip background for the item. 1.21.2+ More info here: https://minecraft.wiki/w/Data_component_format#tooltip_stylearrow-up-right Format: "<namespace>:<id>"

Model

Model of the item. 1.21.4+ More info here: https://minecraft.wiki/w/Items_model_definitionarrow-up-right Format: "<namespace>:<id>"

Skull Data

Information of a player head with texture. You can find heads with textures and their properties here: https://minecraft-heads.com/custom-headsarrow-up-right.

Potion Data

Information of a potion item. Works for these items IDs: POTION, SPLASH_POTION, LINGERING_POTION, TIPPED_ARROW. Potion Types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.htmlarrow-up-right Potion Effects: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.htmlarrow-up-right

Information of a banner or shield item. Use the following format for patterns: <color>;<type> Colors: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/DyeColor.htmlarrow-up-right Pattern Types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/banner/PatternType.htmlarrow-up-right

Firework Data

Information of a firework rocket or a firework star. Format for firework effects: <type>;<color1>,<color2>,...;<fade1>,<fade2>,...;<has flicker>;<has trail> Firework types: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/FireworkEffect.Type.htmlarrow-up-right Colors: https://minecraftcommand.science/armor-colorarrow-up-right

Book Data

Information of a written book. Pages are stored in JSON format so I suggest you not to modify this manually. Hover and click events are stored, but only on 1.12+.

Armor Trim Data

Information of armor trim smithing templates. Works only for armor items. Only works on 1.20+. Patterns: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/meta/trim/TrimPattern.htmlarrow-up-right Materials: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/meta/trim/TrimMaterial.htmlarrow-up-right

NBT

NBT data of this item. This is difficult to implement manually, so I suggest you not to modify this option. (Only works on 1.8-1.20.4, nbt compounds don't exist anymore in Minecraft 1.20.5+)

Last updated