What is a Loot Table?
A loot table is a configuration that defines:- What items can drop
- How rare each item is
- How many items to select
- Where items can appear (slot types)
Creating a Loot Table
Loot Table Configuration
Basic Properties
| Field | Type | Default | Description |
|---|---|---|---|
name | String | - | Human-readable name (required) |
rarity | Integer | 1 | Table selection weight (1 in X chance) |
minPicked | Integer | 1 | Minimum items to select |
maxPicked | Integer | 5 | Maximum items to select |
maxTries | Integer | 10 | Max attempts to generate loot |
How Tables Work
- Iris randomly picks between
minPickedandmaxPickeditems - For each pick, tries up to
maxTriestimes to select valid loot - Each loot entry has a
rarity(higher = less common) - Only items matching the slot type are selected
Loot Entries
Each item in theloot array is an IrisLoot object:
Basic Loot Entry
Loot Properties
| Field | Type | Description |
|---|---|---|
item | String | Minecraft item ID |
minAmount | Integer | Minimum stack size |
maxAmount | Integer | Maximum stack size |
rarity | Integer | Drop rarity (higher = rarer) |
slotTypes | Enum | Where item can appear |
Slot Types
Control where items can appear:CHEST: Regular chest slotsARMOR: Armor slots (for mobs)HAND: Hand/weapon slots (for mobs)ANY: Any slot type
Advanced Loot Properties
Enchantments:Example Loot Tables
Common Dungeon Loot
Treasure Hoard
Fishing Rewards
Desert Temple Loot
Wizard Tower Loot
Shipwreck Loot
Loot References
In Dimensions
In Regions
In Biomes
In Objects
Loot is automatically applied to chests in objects when they’re placed.Rarity System
Table Rarity
Item Rarity
Weighted Selection
Iris uses weighted random selection:- Item with rarity 1 = weight 100%
- Item with rarity 2 = weight 50%
- Item with rarity 5 = weight 20%
- Item with rarity 10 = weight 10%
Tips & Best Practices
Balance Rarity
- Common items: rarity 1-3
- Uncommon items: rarity 4-8
- Rare items: rarity 9-15
- Very rare items: rarity 16-30
- Legendary items: rarity 30+
Set Appropriate Amounts
- Treasure chests: 5-10 items
- Common chests: 3-7 items
- Bonus chests: 1-3 items
Layer Your Tables
Combine multiple tables for variety:Theme Your Loot
Match loot to location:- Desert: Gold, sand, dead bushes, cactus
- Ocean: Prismarine, kelp, fish, nautilus shells
- Nether: Netherite scraps, ancient debris, fire charges
- Magic: Enchanted books, potions, ender pearls
Enchantment Ranges
Damaged Items
FAQ
FAQ
Can I have multiple loot tables in one area?
Can I have multiple loot tables in one area?
Yes! List multiple tables in the
tables array. Each has its own rarity for selection.How do I make super rare items?
How do I make super rare items?
Use high rarity values (30+) and low
maxPicked values. Also reference the table with high rarity in configs.Do loot tables work with vanilla structures?
Do loot tables work with vanilla structures?
Iris loot tables are for Iris objects. Vanilla structures use vanilla loot tables.
Can I add custom items from plugins?
Can I add custom items from plugins?
Yes, if the plugin registers items properly with Bukkit. Use the item’s namespaced ID.
What happens if maxTries runs out?
What happens if maxTries runs out?
Iris stops trying to add more items to that container. You may end up with fewer items than
maxPicked.Next Steps
- Place chests in Objects to use loot tables
- Configure Entity Spawners for mob equipment
- Learn about Biomes to add thematic loot