Skip to content
Samuel Hollis edited this page May 26, 2024 · 11 revisions

Item Configs (ItemStackData)

Last updated on 07/04/2024

This is the standard format all (if not, most) fields follow when describing an item within Superheroes.

item: #This may vary
  type: STONE
  amount: 1
  metadata:
    ... #See Section on Metadata

Metadata

metadata:
  displayName: "<red>The name of the item in red using MiniMessage syntax"
  lore:
    - "<red>The lore of the item in red using MiniMessage syntax"
  isUnbreakable: false
  durability: 0 # Allows you to set the durability of the item, 0 = full durability
  customModelData: 0 # Custom model data id
  attributes: # Supports all attributes at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/Attribute.html (just ignore the GENERIC_)
    MAX_HEALTH: 
      value: 1
      equipmentslot: HAND # Supports all equipment slots at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/inventory/EquipmentSlot.html
      operation: ADD_NUMBER # Supports all operations at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/attribute/AttributeModifier.Operation.html
  enchants:
    protection: 4 # Generally, the sensible name for the enchant in english, separated by underscores
    pattern: EYE
    material: COPPER
  color: # Only works on Leather Armor, this specific RGB value would make it white
    red: 255
    green: 255
    blue: 255
  potion: # Only works on potion like items
    type: # Generally, the sensible name for the potion in english, separated by underscores (https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionType.html)
    extended: true/false # Whether it should be for the longer duration or not
    upgraded: true/false # Whether it should be potency I or II

List of all enchantment names

List of all trim patterns and materials