Key Configuration Examples

This page will show you a few examples of key configuration for you to get inspiration

keys.yml

key1:
  # The item material
  material: IRON_NUGGET
  # The item custom name
  display-name: "&bRusted Key"
  # The item lore
  lore:
  - ""
  - "&7A rusted key for a rusted chest"
  # The item enchants
  enchantments:
    unbreaking: 1
  # The item flags
  item-flags:
  - HIDE_ENCHANTS
  # The sources where the key should drop
  drops:
    # A Minecraft vanilla zombie
    ZOMBIE:
      amount: 1
      # 8% chance to drop
      chance: 0.08
    SKELETON:
      amount: 1-2
      # 12% chance to drop
      chance: 0.12
key2:
  material: GOLD_NUGGET
  display-name: "&dMaster Key"
  lore:
  - ""
  - "&7A master key for a master chest"
  enchantments:
    unbreaking: 1
  item-flags:
  - HIDE_ENCHANTS
  # Other drop sources
  drops:
    # A custom monster from MythicMobs
    SkeletalKnight:
      amount: 2-3
      chance: 0.5
    # A block of gold ore
    GOLD_ORE:
      amount: 1
      chance: 0.1

Last updated