Skip to content

Items.yml

Shane Bee edited this page Apr 12, 2025 · 20 revisions

HOME

ITEMS.YML

You can create a list of items that randomly generate in chests that you have placed in your arena.

Ex: (Default)

Default Items.yml Config
# Items.yml
# Default items that will populate in chests in your arena
# There are 3 categories:
# - 'regular' = Will populate in regular chests
# - 'bonus' = Will populate in bonus chests (you can change the chest type in the config.yml)
# - 'chest-drop' = Will populate in chest drops
#
# See wiki for more details: https://github.com/ShaneBeeStudios/HungerGames/wiki/Items.yml
items:
regular:
  '1':
    id: 'minecraft:stone_sword'
    count: 1
    weight: 5
  '2':
    id: 'minecraft:golden_sword'
    count: 1
  '3':
    id: 'minecraft:mushroom_stew'
    count: 1
    weight: 2
  '4':
    id: 'minecraft:stone_hoe'
    count: 1
  '5':
    id: 'minecraft:leather_helmet'
    count: 1
    weight: 2
  '6':
    id: 'minecraft:leather_chestplate'
    count: 1
    weight: 2
  '7':
    id: 'minecraft:leather_leggings'
    count: 1
    weight: 2
  '8':
    id: 'minecraft:iron_helmet'
    count: 1
    weight: 2
  '9':
    id: 'minecraft:iron_chestplate'
    count: 1
    weight: 2
  '10':
    id: 'minecraft:iron_leggings'
    count: 1
    weight: 2
  '11':
    id: 'minecraft:iron_boots'
    count: 1
    weight: 2
  '12':
    id: 'minecraft:bow'
    count: 1
    weight: 3
  '13':
    id: 'minecraft:arrow'
    count: 20
    weight: 2
  '14':
    id: 'minecraft:milk_bucket'
    count: 1
    weight: 2
  '15':
    id: 'minecraft:fishing_rod'
    count: 1
  '16':
    id: 'minecraft:compass'
    count: 1
  '17':
    id: 'minecraft:stick'
    count: 1
    custom_name: '<gold>TrackingStick'
    lore:
      - '<green>Uses: 5'
      - '<gray>Left click in the air'
      - '<gray>To find nearby players'
  '18':
    id: 'minecraft:golden_helmet'
    count: 1
  '19':
    id: 'minecraft:golden_chestplate'
    count: 1
  '20':
    id: 'minecraft:bone'
    count: 1
    weight: 2
  '21':
    id: 'minecraft:golden_leggings'
    count: 1
  '22':
    id: 'minecraft:golden_boots'
    count: 1
  '23':
    id: 'minecraft:diamond_sword'
    count: 1
    custom_name: '<gold>Death Dealer'
    enchantments:
      'minecraft:sharpness': 1
  '24':
    id: 'minecraft:golden_apple'
    count: 1
  '25':
    id: 'minecraft:chainmail_chestplate'
    count: 1
    weight: 1
  '26':
    id: 'minecraft:chainmail_leggings'
    count: 1
    weight: 1
  '27':
    id: 'minecraft:cookie'
    count: 2
    weight: 3
  '28':
    id: 'minecraft:melon_slice'
    count: 1
    weight: 4
  '29':
    id: 'minecraft:cooked_beef'
    count: 1
    weight: 2
  '30':
    id: 'minecraft:ender_pearl'
    count: 1
    weight: 2
  '31':
    id: 'minecraft:potion'
    count: 1
    custom_name: 'Potion of Swiftness'
    potion_effects:
      'minecraft:speed':
        duration: 3600
        amplifier: 1
    weight: 2
  '32':
    id: 'minecraft:potion'
    count: 1
    custom_name: 'Potion of Healing'
    potion_effects:
      'minecraft:instant_health':
        duration: 1
        amplifier: 1
    weight: 2
  '33':
    id: 'minecraft:splash_potion'
    count: 1
    custom_name: 'Splash Potion of Poison'
    potion_effects:
      'minecraft:poison':
        duration: 320
        amplifier: 2
  '34':
    id: 'minecraft:splash_potion'
    count: 1
    custom_name: 'Splash Potion of Regeneration'
    potion_effects:
      'minecraft:regeneration':
        duration: 660
        amplifier: 1
    weight: 2
  '35':
    id: 'minecraft:tipped_arrow'
    count: 1
    potion: 'minecraft:long_poison'
  '36':
    id: 'minecraft:tipped_arrow'
    count: 1
    potion: 'minecraft:strong_slowness'
  '37':
    id: 'minecraft:lingering_potion'
    count: 1
    potion: 'minecraft:harming'
  '38':
    id: 'minecraft:apple'
    count: 2
    weight: 5
bonus:
  '1':
    id: 'minecraft:diamond_sword'
    count: 1
    custom_name: '<dark_aqua>Power Sword'
    enchantments:
      'minecraft:sharpness': 5
  '2':
    id: 'minecraft:diamond_chestplate'
    count: 1
    custom_name: '<green>Life Saver'
    enchantments:
      'minecraft:protection': 3
  '3':
    id: 'minecraft:cooked_beef'
    count: 6
    weight: 3
  '4':
    id: 'minecraft:enchanted_golden_apple'
    count: 1
  '5':
    id: 'minecraft:suspicious_stew'
    count: 1
    nbt: '{"minecraft:suspicious_stew_effects":[{duration:1200,id:"minecraft:night_vision"}]}'
  '6':
    id: 'minecraft:suspicious_stew'
    count: 1
    nbt: '{"minecraft:suspicious_stew_effects":[{duration:1200,id:"minecraft:regeneration"}]}'
chest-drop:
  '1':
    id: 'minecraft:netherite_axe'
    enchantments:
      'minecraft:efficiency': 5
  '2':
    id: 'minecraft:netherite_chestplate'
    enchantments:
      'minecraft:blast_protection': 2
  '3':
    id: 'minecraft:cooked_mutton'
    custom_name: '<green>Power Mutton'
    nbt: '{"minecraft:food":{nutrition:15,saturation:10.0f}}'
  '4':
    id: 'minecraft:shield'
    nbt: '{"minecraft:banner_patterns":[{color:"red",pattern:"minecraft:cross"}],"minecraft:base_color":"cyan"}'

SETUP:

ITEMS:

  • You can add items to this list, which will generate randomly in the chests within your arena.
  • There are 3 sections:
    • Regular = These items will spawn in regular chests at the start of the game
    • Bonus = These items will spawn in bonus chests in the game
    • Chest Drops = These items will spawn in chests that drop
  • Supported options for items:
    • id = The ID of the item, supports a Minecraft namespace (ex: minecraft:diamond_sword) or without the namespace (ex: diamond_sword).
    • count = The amount of items in one stack
    • max_stack_size = The max amount of items in one stack
    • weight = How many times this item is added to the list
    • item_name = The base name of an item (think vanilla name, this cannot be changed in an anvil)
    • custom_name = A custom name applied on top of an item name (this can be changed in an anvil)
    • item_model = A custom model applied to the item, see Item Model on McWiki for more info.
    • lore = A list of lore applied to the item
    • enchantments = A list of enchantments, see Enchantments below for more info.
    • max_damage = The durability of this item
    • damage = The starting damage of this item
    • potion = The base potion of an item (think vanilla creative mode potions). You can find the IDs on McWiki
    • potion_effects = A list of custom potion effects, see Potion Effects below for more info.
    • dyed_color = An int color used to dye items such as leather armor
    • hidden_components = A string list of components that will be hidden on the item (See Tooltip Display Component on McWiki for more info).
    • nbt = A string of NBT to apply to an item. This is useful when no other methods are available for your specific needs. You can use the /hg nbt command in game to spit out an NBT string of the item you're holding to console.

Enchantments:

Format:

enchantments:
  'enchantment key': <level> # Key = the Minecraft enchantment key. Level = The level of the enchantment

Example:

enchantments:
  'minecraft:protection': 3

Potion Effects

Format:

potion_effects:
  'type': # The potion effect type, ex: `minecraft:night_vision`
    duration: <integer> # The ticks this item will last for, use `-1` for an infinite effect. Optional, defaults to 300 (15 seconds).
    amplifier: <integer> # The amplifier of the effect, with level I having value 0. Optional, defaults to 0.
    ambient:  <boolean> # Whether or not this is an effect provided by a beacon and therefore should be less intrusive on the screen. Optional, defaults to false.
    show_particles: <boolean> # Whether or not this effect produces particles. Optional, defaults to true.
    show_icon: <boolean> # Whether or not an icon should be shown for this effect. Optional, defaults to true.

Examples:

potion_effects:
  'minecraft:speed':
    duration: 3600
    amplifier: 1
    show_particles: false
    show_particles: true
  'minecraft:instant_health':
    duration: 1
    amplifier: 1

Clone this wiki locally