From e4c7e3774d9dca2104e8749dd65fb760a69c922e Mon Sep 17 00:00:00 2001 From: Xterionix Date: Fri, 20 Sep 2024 15:45:53 +0500 Subject: [PATCH] - Add is_navigating filter --- source/behavior/entities/filters/filters.json | 1 + .../filters/filters/is_navigating.json | 31 +++++++++++++++++++ .../entities/filters/filters/types/test.json | 1 + 3 files changed, 33 insertions(+) create mode 100644 source/behavior/entities/filters/filters/is_navigating.json diff --git a/source/behavior/entities/filters/filters.json b/source/behavior/entities/filters/filters.json index 43812cd6..28f77764 100644 --- a/source/behavior/entities/filters/filters.json +++ b/source/behavior/entities/filters/filters.json @@ -134,6 +134,7 @@ { "if": { "properties": { "test": { "const": "is_mark_variant" } } }, "then": { "$ref": "./filters/is_mark_variant.json" } }, { "if": { "properties": { "test": { "const": "is_missing_health" } } }, "then": { "$ref": "./filters/is_missing_health.json" } }, { "if": { "properties": { "test": { "const": "is_moving" } } }, "then": { "$ref": "./filters/is_moving.json" } }, + { "if": { "properties": { "test": { "const": "is_navigating" } } }, "then": { "$ref": "./filters/is_moving.json" } }, { "if": { "properties": { "test": { "const": "is_owner" } } }, "then": { "$ref": "./filters/is_owner.json" } }, { "if": { "properties": { "test": { "const": "is_persistent" } } }, "then": { "$ref": "./filters/is_persistent.json" } }, { "if": { "properties": { "test": { "const": "is_riding" } } }, "then": { "$ref": "./filters/is_riding.json" } }, diff --git a/source/behavior/entities/filters/filters/is_navigating.json b/source/behavior/entities/filters/filters/is_navigating.json new file mode 100644 index 00000000..2f9ad2a8 --- /dev/null +++ b/source/behavior/entities/filters/filters/is_navigating.json @@ -0,0 +1,31 @@ +{ + "$id": "blockception.minecraft.behavior.entities.filters.is_navigating", + "type": "object", + "title": "Is Navigating", + "description": "Returns true if the subject entity is navigating.", + "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": "True or false.", + "type": "boolean", + "default": true + } + }, + "examples": [ + { + "test": "is_navigating", + "value": true + } + ] +} diff --git a/source/behavior/entities/filters/filters/types/test.json b/source/behavior/entities/filters/filters/types/test.json index afaad586..3ac3092f 100644 --- a/source/behavior/entities/filters/filters/types/test.json +++ b/source/behavior/entities/filters/filters/types/test.json @@ -38,6 +38,7 @@ "is_leashed", "is_mark_variant", "is_moving", + "is_navigating", "is_owner", "is_riding", "is_skin_id",