Skip to content

Loot Tables

Alex_qp edited this page Apr 15, 2020 · 4 revisions

Loot Tables

Loot Tables are needed to specify a giant phantom's loot. The following will explain how to configure them properly. For information about utilizing them to change a giant phantom's loot, please see Giant Phantoms.

All loaded and saved data is stored in giantPhantomLootTables.yml. Although it is theoretically possible to change data by manually changing the file if the server is stopped, it is not recommended. Please make use of the provided commands (see below).

Configuration

A Loot Table has the following attributes:

Name Type Special Properties* Description
Name String final, unique the name of this loot Table
Loot List of ItemStacks -/- the loot directly assigned to this loot Table
Children Set of Strings a parent's child cannot be its parent all children of which the loot will be inherited

*final = cannot be changed; unique = is unique among all other loot Tables.

For information about changing those attributes via commands (recommended), please see the commands section.

Children Attribute

Unlike other attributes this one might not be so self explaining. If a loot table is asked to populate its loot it will not only drop its own loot but also the loot of all its children.

Usage example: You assign two loot tables to a giant phantom and one of them is a child of the other one. Lets call them parent and child. Unlike the child the parent has some more valuable loot directly assigned to it. Now if the giant phantom gets killed either the parent or the child loot table will be populated but in case of the parent it will also drop the child's loot because it is the child of the chosen loot table.

Commands

All commands support tab completion and have their own help command. Just type "help" as first parameter of the command. Parameter surrounded by [] are optional.

The following is a list of all sub commands of the command /phantomspawncontrol lootTables <subCmd>

Sub-Command Description Note
list lists all added loot tables -/-
add adds a loot table The loot will be copied from the chest you are looking at
remove removes a loot table -/-
edit loot re-sets a loot tables own loot The loot will be copied from the chest you are looking at
edit children add adds a child to a loot table Parents children cannot be their parents again
edit children remove removes a child from a loot table -/-
populate opens an inventory containing the loot this loot table will drop (including children!) -/-

Clone this wiki locally