Skip to content

Chest Config

Dylan Ryman edited this page Mar 29, 2014 · 2 revisions

This tutorial will explain in detail how to customize your chest's loot. First, let's take a look at the chests.yml file.

# Chest loot config file

# Note: you cannot currently add more chest levels

# Percentage chance that any given slot in a chest will be filled
# Chance out of 100
slot-probability: 20

# Percentage chance that a next level item will be selected to fill a slot
# Chance out of 100
lvlup-probability: 35

# Format:
# The acceptable item name, number of items possible to fill slot, item data value
# For a list of acceptable item names, refer to : http://jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
t1Chest:
     lvl1:
         - LIST
         - OF
         - ITEMS
         - GO
         - HERE
     lvl2:
         - LIST
         - OF
         - ITEMS
         - GO
         - HERE
     lvl3:
         - LIST
         - OF
         - ITEMS
         - GO
         - HERE
     lvl4:
         - LIST
         - OF
         - ITEMS
         - GO
         - HERE
     lvl5:
         - LIST
         - OF
         - ITEMS
         - GO
         - HERE

It's actually quite self explanatory. You can change the slot probability value to determine the likelihood for an item to occupy a slot, and the lvlup probability to determine how often the chest will contain a higher level loot. All of the items and amounts can e customized, saved, and will not be overwritten; therefore, if we change it here, you will have to delete the file and let it regen, or update it manually if you want to keep in in sync. You can only use valid Bukkit item names in the lists, they can be found at this link.