- Updates for 1.20.80 (#281)
This commit is contained in:
@@ -94,6 +94,7 @@
|
||||
{ "if": { "properties": { "test": { "const": "has_container_open" } } }, "then": { "$ref": "./filters/has_container_open.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_damage" } } }, "then": { "$ref": "./filters/has_damage.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_equipment" } } }, "then": { "$ref": "./filters/has_equipment.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_damaged_equipment" } } }, "then": { "$ref": "./filters/has_damaged_equipment.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_mob_effect" } } }, "then": { "$ref": "./filters/has_mob_effect.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_nametag" } } }, "then": { "$ref": "./filters/has_nametag.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "has_property" } } }, "then": { "$ref": "./filters/has_property.json" } },
|
||||
@@ -141,6 +142,7 @@
|
||||
{ "if": { "properties": { "test": { "const": "is_sneak_held" } } }, "then": { "$ref": "./filters/is_sneak_held.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_sneaking" } } }, "then": { "$ref": "./filters/is_sneaking.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_snow_covered" } } }, "then": { "$ref": "./filters/is_snow_covered.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_sitting" } } }, "then": { "$ref": "./filters/is_sitting.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_target" } } }, "then": { "$ref": "./filters/is_target.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_temperature_type" } } }, "then": { "$ref": "./filters/is_temperature_type.json" } },
|
||||
{ "if": { "properties": { "test": { "const": "is_temperature_value" } } }, "then": { "$ref": "./filters/is_temperature_value.json" } },
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.filters.has_damaged_equipment",
|
||||
"type": "object",
|
||||
"title": "Has Damaged Equipment",
|
||||
"description": "Tests for the presence of a damaged named item in the designated slot of the subject entity.",
|
||||
"required": [ "value" ],
|
||||
"properties": {
|
||||
"test": {
|
||||
"type": "string",
|
||||
"const": "has_equipment",
|
||||
"description": "Tests for the presence of a damaged named item in the designated slot of the subject entity.",
|
||||
"title": "Test"
|
||||
},
|
||||
"domain": {
|
||||
"description": "The equipment location to test.",
|
||||
"default": "any",
|
||||
"enum": [ "any", "inventory", "armor", "feet", "hand", "head", "leg", "torso" ],
|
||||
"title": "Domain"
|
||||
},
|
||||
"operator": {
|
||||
"$ref": "./types/operator.json"
|
||||
},
|
||||
"subject": {
|
||||
"$ref": "./types/subject.json"
|
||||
},
|
||||
"value": {
|
||||
"description": "The item name to look for.",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/item/identifier.json",
|
||||
"title": "Value"
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"test": "has_damaged_equipment",
|
||||
"value": "example"
|
||||
}
|
||||
]
|
||||
}
|
||||
31
source/behavior/entities/filters/filters/is_sitting.json
Normal file
31
source/behavior/entities/filters/filters/is_sitting.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.filters.is_sitting",
|
||||
"type": "object",
|
||||
"title": "Is Sitting",
|
||||
"description": "Returns true if the subject entity is sitting",
|
||||
"properties": {
|
||||
"test": {
|
||||
"type": "string",
|
||||
"title": "Test Property",
|
||||
"description": "Returns true if the subject entity is sitting."
|
||||
},
|
||||
"operator": {
|
||||
"$ref": "./types/operator.json"
|
||||
},
|
||||
"subject": {
|
||||
"$ref": "./types/subject.json"
|
||||
},
|
||||
"value": {
|
||||
"title": "Value",
|
||||
"description": "True or false.",
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{
|
||||
"test": "is_sitting",
|
||||
"value": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -158,14 +158,48 @@
|
||||
"drop_item_slot": {
|
||||
"title": "Drop Item Slot",
|
||||
"type": "string",
|
||||
"description": "The entity's equipment slot to remove and drop the item from, if any, upon successful interaction.",
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet"]
|
||||
"examples": [
|
||||
"slot.armor.head",
|
||||
"slot.armor.chest",
|
||||
"slot.armor.legs",
|
||||
"slot.armor.feet"
|
||||
],
|
||||
"description": "The entity's equipment slot to remove and drop the item from, if any, upon successful interaction."
|
||||
},
|
||||
"equip_item_slot": {
|
||||
"title": "Equip Item Slot",
|
||||
"type": "string",
|
||||
"description": "The entity's slot to equip the item to, if any, upon successful interaction. Inventory slots are denoted by positive numbers.",
|
||||
"enum": ["slot.armor.head", "slot.armor.chest", "slot.armor.legs", "slot.armor.feet"]
|
||||
"description": "The entity's equipment slot to equip the item to, if any, upon successful interaction.",
|
||||
"examples": [
|
||||
"slot.armor.head",
|
||||
"slot.armor.chest",
|
||||
"slot.armor.legs",
|
||||
"slot.armor.feet"
|
||||
]
|
||||
},
|
||||
"repair_entity_item": {
|
||||
"title": "Repair Entity Item",
|
||||
"type": "object",
|
||||
"description": "Allows to repair one of the entity's items.",
|
||||
"properties": {
|
||||
"amount": {
|
||||
"title": "Amount",
|
||||
"description": "How much of the item durability should be restored upon interaction.",
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"slot": {
|
||||
"title": "Slot",
|
||||
"description": "The entity's slot containing the item to be repaired.",
|
||||
"type": "string",
|
||||
"examples": [
|
||||
"slot.armor.head",
|
||||
"slot.armor.chest",
|
||||
"slot.armor.legs",
|
||||
"slot.armor.feet"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user