- Added is_vehicle_family filter (#352)

This commit is contained in:
Xterionix
2025-06-03 15:57:17 +05:00
committed by GitHub
parent c7893c0d90
commit b8bc676bd0
2 changed files with 32 additions and 0 deletions

View File

@@ -154,6 +154,7 @@
{ "if": { "properties": { "test": { "const": "is_underground" } } }, "then": { "$ref": "./filters/is_underground.json" } },
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "./filters/is_underwater.json" } },
{ "if": { "properties": { "test": { "const": "is_variant" } } }, "then": { "$ref": "./filters/is_variant.json" } },
{ "if": { "properties": { "test": { "const": "is_vehicle_family" } } }, "then": { "$ref": "./filters/is_vehicle_family.json" } },
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "./filters/is_visible.json" } },
{ "if": { "properties": { "test": { "const": "is_waterlogged" } } }, "then": { "$ref": "./filters/is_waterlogged.json" } },
{ "if": { "properties": { "test": { "const": "light_level" } } }, "then": { "$ref": "./filters/light_level.json" } },

View File

@@ -0,0 +1,31 @@
{
"$id": "blockception.minecraft.behavior.entities.filters.is_vehicle_family",
"type": "object",
"title": "Is Vehicle Family",
"description": "Returns true when the subject entity's vehicle is a member of the named family.",
"required": ["value"],
"properties": {
"test": {
"type": "string",
"title": "Test Property",
"description": "The test property."
},
"operator": {
"$ref": "./types/operator.json"
},
"subject": {
"$ref": "./types/subject.json"
},
"value": {
"title": "Value",
"description": "The Family name to look for.",
"type": "string"
}
},
"examples": [
{
"test": "is_vehicle_family",
"value": "player"
}
]
}