- Updated for 1.21.40 (#324)
This commit is contained in:
@@ -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" }
|
||||
|
||||
15
source/behavior/loot_tables/conditions/killed_by_entity.json
Normal file
15
source/behavior/loot_tables/conditions/killed_by_entity.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user