Files
minecraft-bedrock-json-schemas/source/behavior/loot_tables/conditions.json
2024-11-18 15:33:19 +01:00

44 lines
1.8 KiB
JSON

{
"$id": "blockception.minecraft.behavior.loot_tables.conditions",
"description": "A minecraft loot table condition.",
"title": "Condition",
"allOf": [
{
"if": { "properties": { "condition": { "type": "string", "const": "entity_properties" } } },
"then": { "$ref": "./conditions/entity_properties.json" }
},
{
"if": { "properties": { "condition": { "type": "string", "const": "has_mark_variant" } } },
"then": { "$ref": "./conditions/has_mark_variant.json" }
},
{
"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" }
},
{
"if": { "properties": { "condition": { "type": "string", "const": "killed_by_entity" } } },
"then": { "$ref": "./conditions/killed_by_entity.json" }
},
{
"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" }
}
]
}