2021-06-06 10:07:19 +00:00
|
|
|
{
|
|
|
|
|
"$id": "blockception.minecraft.behavior.loot_tables.conditions",
|
2022-07-22 19:41:04 +02:00
|
|
|
"description": "A minecraft loot table condition.",
|
2021-06-06 10:07:19 +00:00
|
|
|
"title": "Condition",
|
|
|
|
|
"allOf": [
|
|
|
|
|
{
|
2025-10-15 19:48:05 +02:00
|
|
|
"if": { "properties": { "condition": { "const": "has_mark_variant" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/has_mark_variant.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "has_variant" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/has_variant.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "has_property" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/has_property.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "bool_property" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/bool_property.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "int_property" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/int_property.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "float_property" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/float_property.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "enum_property" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/enum_property.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "const": "match_tool" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/match_tool.json" }
|
2021-06-06 10:07:19 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "has_mark_variant" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/has_mark_variant.json" }
|
|
|
|
|
},
|
2025-02-13 18:38:27 +05:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "match_tool" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/match_tool.json" }
|
|
|
|
|
},
|
2021-06-06 10:07:19 +00:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "killed_by_player" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/killed_by_player.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "killed_by_player_or_pets" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/killed_by_player_or_pets.json" }
|
|
|
|
|
},
|
2024-11-18 19:33:19 +05:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "killed_by_entity" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/killed_by_entity.json" }
|
|
|
|
|
},
|
2025-06-02 17:48:10 +05:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "damaged_by_entity" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/damaged_by_entity.json" }
|
|
|
|
|
},
|
2025-10-15 19:48:05 +02:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "entity_killed" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/entity_killed.json" }
|
|
|
|
|
},
|
2021-06-06 10:07:19 +00:00
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "random_chance" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/random_chance.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "random_chance_with_looting" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/random_chance_with_looting.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "random_difficulty_chance" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/random_difficulty_chance.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "random_regional_difficulty_chance" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/random_regional_difficulty_chance.json" }
|
2025-09-08 07:01:39 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "passenger_of_entity" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/passenger_of_entity.json" }
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"if": { "properties": { "condition": { "type": "string", "const": "is_baby" } } },
|
|
|
|
|
"then": { "$ref": "./conditions/is_baby.json" }
|
2021-06-06 10:07:19 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|