Loot Table Stuff - SilentChaos512/ScalingHealth GitHub Wiki
Entity Properties
Scaling Health currently adds two entity properties for loot tables: scalinghealth:is_blight
and scalinghealth:difficulty
. Both were added in version 1.3.24.
is_blight
Simple boolean value, checks if the entity is a blight or not. If true, it evaluates to true if the entity is a blight. If false, it evaluates to true if the entity is not a blight.
"properties": {
"scalinghealth:is_blight": true
}
difficulty
Object with two int values, min
and max
. Both are optional, and default to 0
and Integer.MAX_VALUE
, respectively. This checks if the difficulty (before the blight multiplier) the entity spawned with is greater than or equal to min
and less than or equal to max
.
Since entities store their final difficulty value, which includes the "blight multiplier", the multiplier is divided out to get the original value. So if the multiplier config value is changed, existing entities may not return the correct difficulty.
"properties": {
"scalinghealth:difficulty": {
"min": 100,
"max": 200
}
}
Full Example
Here's a complete JSON file that uses both properties.
{
"pools": [
{
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"properties": {
"scalinghealth:is_blight": true
}
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:nether_star",
"weight": 1
}
]
},
{
"conditions": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"properties": {
"scalinghealth:difficulty": {
"min": 100,
"max": 200
}
}
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:glowstone",
"weight": 1
},
{
"type": "item",
"name": "minecraft:redstone_block",
"weight": 1
}
]
}
]
}
Mob Type Loot Tables
These are additional loot tables added by Scaling Health in Minecraft 1.13 and higher. The section above applies to 1.12.2 as well.
Scaling Health adds a few loot tables associated with different types of mobs. These types are boss, hostile, and peaceful. Bosses should include anything that normally displays a boss health bar. Hostiles should match all monsters, and peacefuls are everything else, like animals and villagers.
The loot tables can be found at data/scalinghealth/loot_tables/bonus_drops
. The default tables can be found here. To override them, just place files with the same names at the same location in your data pack.