Added is_waterlogged filter

This commit is contained in:
DaanV2
2022-06-07 20:01:37 +02:00
parent 619bcc85b4
commit c58ff8b4c7
2 changed files with 32 additions and 0 deletions

View File

@@ -138,6 +138,7 @@
{ "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_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": "moon_intensity" } } }, "then": { "$ref": "./filters/moon_intensity.json" } },
{ "if": { "properties": { "test": { "const": "moon_phase" } } }, "then": { "$ref": "./filters/moon_phase.json" } },

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