Skip to content

File objects

srnyx edited this page May 10, 2023 · 20 revisions

Table of contents

Bold keys are REQUIRED, everything else is optional!

Item stacks ↑

Examples

item: # This is just the parent node, it won't always be 'item'
  material: DIAMOND_PICKAXE # https://helpch.at/docs/MC_VERSION/org/bukkit/Material.html
  count: 1
  damage: 561 # Since Diamond Pickaxes have 1,561 durability, the new durability will be 1,000
  name: "&c&lGOD PICKAXE"
  lore:
    - "&7The most epic pickaxe in the game!"
    - "&7&oMake sure not to drop it..."
  unbreakable: true
  enchantments: # https://helpch.at/docs/MC_VERSION/org/bukkit/enchantments/Enchantment.html
    DIG_SPEED: 5 # Efficiency 5
    LOOT_BONUS_MOBS: 2 # Looting 2
  flags: # https://helpch.at/docs/MC_VERSION/org/bukkit/inventory/ItemFlag.html
    - HIDE_UNBREAKABLE
    - HIDE_ENCHANTS
  attribute-modifiers: # 1.13.2+, https://helpch.at/docs/MC_VERSION/org/bukkit/attribute/Attribute.html
    GENERIC_ATTACK_DAMAGE: 50
    GENERIX_MAX_HEALTH: 30
  custom-model-data: 4508 # 1.14+
item: # This is just the parent node, it won't always be 'item'
  material: APPLE # https://helpch.at/docs/MC_VERSION/org/bukkit/Material.html
  count: 32

Recipes ↑

  • ingredients: The character aliases and their corresponding materials (key is the character, value is the material) https://helpch.at/docs/MC_VERSION/org/bukkit/Material.html
  • shape: The shape the recipe should take, or, if shapeless, it will be used to get the amount of each ingredient. This should use the characters listed in ingredients and only be 3 rows
  • result: The end result of the recipe (see Item stacks above for more info)
  • shapeless: Whether the recipe requires a specific shape

Example

recipe: # This is just the parent node, it won't always be 'recipe'
  ingredients: # https://helpch.at/docs/MC_VERSION/org/bukkit/Material.html
    A: APPLE
    G: GOLD_BLOCK
  shape:
    - "GGG"
    - "GAG"
    - "GGG"
  shapeless: false
  result:
    material: ENCHANTED_GOLDEN_APPLE

Clone this wiki locally