Loot Conditions
Thermoo defines some custom types of loot conditions (also known as predicates). There is one for temperature, and one for wet ticks.
Tip
You can generate Predicate definitions using Misode's Datapack Generator at: https://misode.github.io/thermoo/predicate/
Temperature Loot Condition
{}
: The root tag."
condition: Must bethermoo:temperature
I
{}
value: Integer range. Either an exact temperature value or a temperature value range compound withI
min andI
max keys.D
{}
scale: Integer range. Either an exact temperature scale or a temperature scale range compound withD
min andD
max keys.
Requires a 'this' entity loot context variable.
If the 'this' entity is not temperature aware, returns false.
Both scale and value must pass to return true.
Soaked loot condition
{}
: The root tag."
condition: Must bethermoo:soaked
I
{}
value: Integer range. Either an exact soaked value or a soaked value range compound withI
min andI
max keys.D
{}
scale: Integer range. Either an exact soaked scale or a soaked scale range compound withD
min andD
max keys.
Requires a 'this' entity loot context variable.
If the 'this' entity is not soakable, returns false.
Both scale and value must pass to return true.
Examples
Is cold predicate:
{
"condition": "thermoo:temperature",
"value": {
"max": 0
}
}
Is warm predicate:
{
"condition": "thermoo:temperature",
"value": {
"min": 0
}
}
Is max temperature predicate:
{
"condition": "thermoo:temperature",
"scale": 1.0
}