Add new entity filters (#206)

This commit is contained in:
Piotr Brzozowski
2023-12-16 16:24:25 +01:00
committed by GitHub
parent 27cc4b615a
commit 054b3f13a3
2 changed files with 62 additions and 0 deletions

View File

@@ -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
}
]
}

View File

@@ -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
}
]
}