Added is_waterlogged filter
This commit is contained in:
@@ -138,6 +138,7 @@
|
|||||||
{ "if": { "properties": { "test": { "const": "is_underwater" } } }, "then": { "$ref": "./filters/is_underwater.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_variant" } } }, "then": { "$ref": "./filters/is_variant.json" } },
|
||||||
{ "if": { "properties": { "test": { "const": "is_visible" } } }, "then": { "$ref": "./filters/is_visible.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" } },
|
{ "if": { "properties": { "test": { "const": "light_level" } } }, "then": { "$ref": "./filters/light_level.json" } },
|
||||||
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "./filters/moon_intensity.json" } },
|
{ "if": { "properties": { "test": { "const": "moon_intensity" } } }, "then": { "$ref": "./filters/moon_intensity.json" } },
|
||||||
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "./filters/moon_phase.json" } },
|
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "./filters/moon_phase.json" } },
|
||||||
|
|||||||
31
source/behavior/entities/filters/filters/is_waterlogged.json
Normal file
31
source/behavior/entities/filters/filters/is_waterlogged.json
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"$id": "blockception.minecraft.behavior.entities.filters.is_waterlogged",
|
||||||
|
"type": "object",
|
||||||
|
"title": "Is Waterlogged",
|
||||||
|
"description": "Tests if the subject block is submerged in water.",
|
||||||
|
"required": ["value"],
|
||||||
|
"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",
|
||||||
|
"title": "Value"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"test": "light_level",
|
||||||
|
"value": 0
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user