Skip to content

Commit

Permalink
- Add is_navigating filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Xterionix committed Sep 20, 2024
1 parent c895998 commit e4c7e37
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/behavior/entities/filters/filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" } },
Expand Down
31 changes: 31 additions & 0 deletions source/behavior/entities/filters/filters/is_navigating.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
1 change: 1 addition & 0 deletions source/behavior/entities/filters/filters/types/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"is_leashed",
"is_mark_variant",
"is_moving",
"is_navigating",
"is_owner",
"is_riding",
"is_skin_id",
Expand Down

0 comments on commit e4c7e37

Please sign in to comment.