diff --git a/source/behavior/entities/filters/filters.json b/source/behavior/entities/filters/filters.json index 8606f244..776a2212 100644 --- a/source/behavior/entities/filters/filters.json +++ b/source/behavior/entities/filters/filters.json @@ -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" } }, diff --git a/source/behavior/entities/filters/filters/is_vehicle_family.json b/source/behavior/entities/filters/filters/is_vehicle_family.json new file mode 100644 index 00000000..c184b44d --- /dev/null +++ b/source/behavior/entities/filters/filters/is_vehicle_family.json @@ -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" + } + ] +} \ No newline at end of file