DUXPLIMA Documentation

Loot tables

One file per table: loot/<name>.conf, shown with treasure.conf as shipped.

A loot table.

Every file in loot/ is a loot table, named by the file: this one is treasure. A game mode fills a chest, a barrel or any container from a table by its name, the first time a player opens it.

A table is rolled a number of times. Each roll lands on a rarity, by weight, then on one of that rarity's entries, by weight. A rarity can name an entry of modules/effects.conf, which fires for the player who finds it.

An entry is one of three things:

item { ... }        an item, written as in any menu or shop file; amount is
                    a number or a span like "2-6", and slot puts it in that
                    slot when the slot is free
actions = [ ... ]   action lines, as in modules/effects.conf, run for the
                    player who finds it
vanilla = "..."     one of the server's own loot tables, the game's or a
                    datapack's, by its key

An entry with no rarity is common, and one with no weight weighs 1.

The file is plugins/uxmSkyblock/loot/treasure.conf. Every default below is the shipped value.

KeyDefaultWhat it does
rolls3-5
rarities.common.rare.entriesa list of 8 entries, below

rarities.common.rare.entries:

#weightamountitem.materialvanillararityitem.stored-enchants.mendingslot
1104-12BREAD }
282-6IRON_INGOT }
361-3GOLD_INGOT }
44minecraft:chests/simple_dungeon
551-2DIAMOND }rare
62ENCHANTED_BOOKrare1 }
71NETHERITE_SCRAP }legendary13
81legendary