Skip to content

Predicates

Predicates tell the mod which loot tables, pools or entries should be modified.
Different predicates can be combined using invert, any_of and all_of.

Below is a list of all supported predicates:

loot-table-modifier:invertedInverts the result of the provided predicate
loot-table-modifier:any_ofMatches when any of the provided predicates match
loot-table-modifier:all_ofMatches when all of the provided predicates match
loot-table-modifier:entry_itemMatches an item entry based on its identifier
loot-table-modifier:tableMatches a table based on its identifier or type
{
"type": "loot-table-modifier:inverted",
"term": {
/* Predicate */
}
}

This predicate will match when the provided predicate doesn’t. A logical NOT operation.

{
"type": "loot-table-modifier:any_of",
"terms": [
{
/* Predicate */
},
{
/* Predicate */
}
]
}

This predicate will match when any of the provided predicates match. A logical OR operation.

{
"type": "loot-table-modifier:all_of",
"terms": [
{
/* Predicate */
},
{
/* Predicate */
}
]
}

This predicate will match when all of the provided predicates match. A logical AND operation.

{
"type": "loot-table-modifier:entry_item",
"name": /* RegexIdentifier */
}

This predicate will match item entries based on their identifiers.

{
"type": "loot-table-modifier:table",
"identifiers": /* RegexIdentifier */,
"types": /* RegexIdentifier */
}

This predicate will match loot tables based on their identifiers or types.