Actions
Actions tell the mod how a matched loot table, pool or entry should be modified.
Actions are json objects that consist of their identifier type
and then any other fields specific to each action.
Below is a list of all currently supported actions:
loot-table-modifier:pool_add | Adds the provided pools to matched tables |
loot-table-modifier:pool_remove | Removes matched pools |
loot-table-modifier:entry_add | Adds the provided entries to matched pools |
loot-table-modifier:entry_remove | Removes matched entries |
loot-table-modifier:entry_item_set | Sets the item in matched item entries |
Add pool
Section titled “Add pool”{ "type": "loot-table-modifier:pool_add", "pools": [ { /* Loot pool */ }, { /* Loot pool */ } ]}
This action adds the provided loot pools to matched tables.
See: Make Creepers and Zombies drop tnt
Remove pool
Section titled “Remove pool”{ "type": "loot-table-modifier:pool_remove"}
This action removes all matched pools.
Add entry
Section titled “Add entry”{ "type": "loot-table-modifier:entry_add", "entries": [ { /* Loot entry */ }, { /* Loot entry */ } ]}
This action adds the provided loot entries to matched pools.
See: Make Creepers and Zombies drop tnt
Remove entry
Section titled “Remove entry”{ "type": "loot-table-modifier:entry_remove"}
This action removes all matched entries.
See: Remove sticks, Remove glowstone and gunpowder from witches
Set item in item entry
Section titled “Set item in item entry”{ "type": "loot-table-modifier:entry_item_set", "name": /* Identifier of an item */,
"canReplaceEntry": false}
This action will replace the item in a matched item entry with the provided item.
If canReplaceEntry
is enabled, any other matched entry will be replaced with an item entry containing the provided item.
By default, it will not replace other types of entries, but that can be enabled by setting canReplaceEntry
to true.