- Updated for 1.21.40 (#324)

This commit is contained in:
Xterionix
2024-11-18 19:33:19 +05:00
committed by GitHub
parent 31ad665f07
commit 32d6a0effb
17 changed files with 300 additions and 97 deletions

View File

@@ -19,6 +19,10 @@
"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" }

View File

@@ -0,0 +1,15 @@
{
"$id": "blockception.minecraft.behavior.condition.killed_by_entity",
"type": "object",
"additionalProperties": false,
"description": "Returns the condition true if the actor of the loot table is killed by a specific entity type.",
"title": "Killed By Entity",
"properties": {
"condition": { "type": "string", "title": "Condition", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"entity_type": {
"title": "Entity Type",
"description": "The entity type to match",
"type": "string"
}
}
}