Wiki

Clone wiki

HungerGames / Items.yml

HOME

ITEMS.YML

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

Ex: (Default)

# Regular chest items (will generate in chests and chest drops)
items:
- STONE_SWORD 1 x:5
- GOLDEN_SWORD 1
- MUSHROOM_STEW 1 x:2
- STONE_HOE 1
- LEATHER_HELMET 1 x:2
- LEATHER_CHESTPLATE 1 x:2
- LEATHER_LEGGINGS 1 x:2
- IRON_HELMET 1 x:2
- IRON_CHESTPLATE 1 x:2
- IRON_LEGGINGS 1 x:2
- IRON_BOOTS 1 x:2
- BOW 1 x:3
- ARROW 20 x:2
- MILK_BUCKET 1 x:2
- FISHING_ROD 1
- COMPASS 1
- STICK 1 name:&6TrackingStick_&aUses:_5
- GOLDEN_HELMET 1
- GOLDEN_CHESTPLATE 1
- BONE 1 x:2
- GOLDEN_LEGGINGS 1
- GOLDEN_BOOTS 1
- DIAMOND_SWORD 1 name:&6Death_Dealer
- GOLDEN_APPLE 1
- CHAINMAIL_CHESTPLATE 1 x:1
- CHAINMAIL_LEGGINGS 1 x:1
- COOKIE 2 x:3
- MELON_SLICE 1 x:4
- COOKED_BEEF 1 x:2
- ENDER_PEARL 1 x:2
- POTION potion:SPEED:3600:1 1 x:2
- POTION potion:HEAL:1:1 1 x:2
- SPLASH_POTION potion:POISON:320:2 1
- SPLASH_POTION potion:REGENERATION:660:1 1 x:2
- APPLE 2 x:5
# Bonus chest items (Will generate in trapped chests, shulker boxes and barrels)
bonus:
- DIAMOND_SWORD 1 enchant:sharpness:5 name:&3Power_Sword
- DIAMOND_CHESTPLATE 1 enchant:protection:3 name:&aLife_Saver

SETUP:

ITEMS:

  • You can add items to this list, which will generate randomly in the chests within your arena.
  • Supports items, stack size, names, lore, enchants, and chance
    --ITEM - Items must be SpigotAPI enum names found HERE these are also the same names that show up when you are holding the item, in the items lore
    --STACK SIZE - This will be the amount in each stack
    --NAME - Supports color codes. Use underscores for spaces.
    --LORE - Supports color codes. Use underscores for spaces. Use colons to separate new lines of lore.
    --ENCHANTS - You can use Minecraft enchantment namespaces here, check out our Enchantment Cheat Sheet, you can also add the level of the enchantment.
    --COLOR - You can dye certain items including potions, tipped arrows and leather armor. Use the Bukkit Dye Colors or RGB color codes. You can use these websites to get potion color codes or leather armor color codes
    --CHANCE - The optional amount of times this item is added to the list x:2 <-- means this item has 2 chances of being added to the list.
    --DATA - You can add any NBT string, the same as you would with the Minecraft /give command. (spaces must be replaced with ~) ex: data:{Unbreakable:1b,display:{Name:'{"text":"Bob\'s_Sword"}'}}

EX:

- DIAMOND_SWORD 1 name:&3Mr_Sharpy lore:&7Super_sharp_sword:&7Be_very_careful enchant:sharpness:2 x:2
- DIAMOND_SWORD 1 data:{Unbreakable:1b,display:{Name:'{"text":"Bob\'s_Sword"}'},Damage:500}
- DIAMOND_PICKAXE 1 data:{CustomModelData:575757}

BONUS:

  • Same as the items section, except will generate randomly in trapped chests, shulker boxes and barrels.
  • Introduced in version 4.7.0

POTIONS (as items):

  • You can add potions to your item list, they are done in this fashion:
POTION_ITEM potion:POTION_EFFECT_TYPE:DURATION:AMPLIFIER

--POTION ITEM: You can use POTION, SPLASH_POTION, LINGERING_POTION or TIPPED_ARROW
--POTION_EFFECT_TYPE: You need to use the SpigotAPI enums for this, found HERE
--DURATION: Time in ticks the potion will apply to the player
--AMPLIFIER: 0 = normal potion (Strength 1), 1 = stronger potion (Strength 2), 2 = strongest (Strength 3) (I dunno what happens when it goes higher)
--COLOR: Add different colours to your potions using RGB color codes or Bukkit Dye Colors. You can use THIS website to get potion color codes.
--MULTIPLE EFFECTS: You can add multiple effects, separated by a semi-colon ; - ex: potion:HEAL:60:2;LUCK:50:1
EXAMPLES:

- POTION potion:HEAL:60:2
- SPLASH_POTION potion:HARM:20:1
- POTION potion:HEAL:60:0 2 name:&bHealing_Potion color:1213666
- POTION potion:HEAL:60:0;LUCK:50:1 2 name:&bLucky_Healing_Potion color:1213666
- TIPPED_ARROW potion:POISON:320:2 1 name:&aPoisonous_Arrow color:green

Updated