-
Notifications
You must be signed in to change notification settings - Fork 34
Items.yml
You can create a list of items that randomly generate in chests that you have placed in your arena.
# 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-type:SPEED:3600:1 1 x:2 name:&rPotion_of_Swiftness
- POTION potion-type:HEAL:1:1 1 x:2 name:&rPotion_of_Healing
- SPLASH_POTION potion-type:POISON:320:2 1 color:green name:&rSplash_Potion_of_Poison
- SPLASH_POTION potion-type:REGENERATION:660:1 1 x:2 name:&rSplash_Potion_of_Regeneration
- TIPPED_ARROW potion-base:long_poison
- TIPPED_ARROW potion-base:strong_slowness
- LINGERING_POTION potion-base:harming:false:false
- 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
- 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 listx: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"}'}}
- You can also run a handy little command to get the NBT of an item. Simply hold the item you want to retrieve data for in your hand, and run
/hg nbt
... HungerGames will print a line in console exactly how it should be used in the configs, here are a couple of examples:
- You can also run a handy little command to get the NBT of an item. Simply hold the item you want to retrieve data for in your hand, and run
# Here are some simple examples
[05:12:38 INFO]: NBT string from ShaneBee:
[05:12:38 INFO]: ENCHANTED_BOOK 1 data:{StoredEnchantments:[{id:"minecraft:loyalty",lvl:1s}]}
[05:18:00 INFO]: NBT string from ShaneBee:
[05:18:00 INFO]: POTION 1 data:{Potion:"minecraft:long_swiftness"}
[05:18:32 INFO]: NBT string from ShaneBee:
[05:18:32 INFO]: TIPPED_ARROW 1 data:{Potion:"minecraft:healing"}
[05:19:10 INFO]: NBT string from ShaneBee:
[05:19:10 INFO]: SUSPICIOUS_STEW 1 data:{Effects:[{EffectId:8b,EffectDuration:120}]}
# Here is a crazy one using a shulker box
[05:19:58 INFO]: NBT string from ShaneBee:
[05:19:58 INFO]: ORANGE_SHULKER_BOX 1 data:{BlockEntityTag:{Items:[{Slot:0b,id:"minecraft:potion",tag:{Potion:"minecraft:long_night_vision"},Count:1b},{Slot:1b,id:"minecraft:iron_boots",tag:{Damage:0},Count:1b},{Slot:2b,id:"minecraft:diamond_chestplate",tag:{Damage:0},Count:1b},{Slot:3b,id:"minecraft:diamond_sword",tag:{Damage:0},Count:1b}]}}
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}
- Same as the items section, except will generate randomly in trapped chests, shulker boxes and barrels.
- Introduced in version 4.7.0
- You can add potions to your item list. There are two options:
- Custom potions using potion effect types, duration and amplifiers
- Using base vanilla Minecraft potions (the ones seen in creative mode) They are done in the following fashion:
POTION_ITEM potion-type:POTION_EFFECT_TYPE:DURATION:AMPLIFIER
POTION_ITEM potion-base:POTION_BASE
POTION_ITEM potion-base:POTION_BASE:UPGRADED(boolean):EXTENDED(boolean)
--POTION ITEM: You can use POTION, SPLASH_POTION, LINGERING_POTION or TIPPED_ARROW
--POTION_EFFECT_TYPE: Represents potion effect types, used to create custom potions. You can use either Bukkit PotionEffectType Enums or Minecraft Effect Namespaces
--POTION_BASE: Represents the base vanilla potions in Minecraft, used to get an exact vanilla potion. You can use Bukkit PotionType Enums or the Minecraft Potion Namespaces. Can include "strong_" or "long_" to distinguish upgraded/extended potions, or you just use the upgraded/extended boolean options (see below).
--UPGRADED/EXTENDED(booleans): Used with potion-base to determine if the potion is the upgraded/extended version
--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-type:HEAL:60:2;LUCK:50:1
EXAMPLES:
- POTION potion-type:HEAL:60:2
- SPLASH_POTION potion-type:HARM:20:1
- POTION potion-type:HEAL:60:0 2 name:&bHealing_Potion color:1213666
- POTION potion-type:HEAL:60:0;LUCK:50:1 2 name:&bLucky_Healing_Potion color:1213666
- TIPPED_ARROW potion-type:POISON:320:2 1 name:&aPoisonous_Arrow color:green
- TIPPED_ARROW potion-base:long_poison
- TIPPED_ARROW potion-base:strong_slowness
- POTION potion-base:harming:true:false #represents a 'strong_harming' potion
- SPLASH_POTION potion-base:poison:false:true #represents a 'long_poison' potion