Skip to content

Commit

Permalink
Add new entity filters (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
stirante authored Dec 16, 2023
1 parent 27cc4b6 commit 054b3f1
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
31 changes: 31 additions & 0 deletions source/behavior/entities/filters/filters/is_panicking.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$id": "blockception.minecraft.behavior.entities.filters.is_panicking",
"type": "object",
"title": "Is Panicking",
"description": "Tests if the subject is executing \"behavior.panic\".",
"properties": {
"test": {
"type": "string",
"title": "Test",
"description": "The test property."
},
"operator": {
"$ref": "./types/operator.json"
},
"subject": {
"$ref": "./types/subject.json"
},
"value": {
"description": "True or false.",
"type": "boolean",
"default": true,
"title": "Value"
}
},
"examples": [
{
"test": "is_panicking",
"value": true
}
]
}
31 changes: 31 additions & 0 deletions source/behavior/entities/filters/filters/is_sprinting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"$id": "blockception.minecraft.behavior.entities.filters.is_sprinting",
"type": "object",
"title": "Is Sprinting",
"description": "Tests if the subject is sprinting.",
"properties": {
"test": {
"type": "string",
"title": "Test",
"description": "The test property."
},
"operator": {
"$ref": "./types/operator.json"
},
"subject": {
"$ref": "./types/subject.json"
},
"value": {
"description": "True or false.",
"type": "boolean",
"default": true,
"title": "Value"
}
},
"examples": [
{
"test": "is_sprinting",
"value": true
}
]
}

0 comments on commit 054b3f1

Please sign in to comment.