diff --git a/source/behavior/entities/filters/filters.json b/source/behavior/entities/filters/filters.json index 60d336b5..281881b8 100644 --- a/source/behavior/entities/filters/filters.json +++ b/source/behavior/entities/filters/filters.json @@ -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" } }, diff --git a/source/behavior/entities/filters/filters/is_waterlogged.json b/source/behavior/entities/filters/filters/is_waterlogged.json new file mode 100644 index 00000000..5b09837d --- /dev/null +++ b/source/behavior/entities/filters/filters/is_waterlogged.json @@ -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 + } + ] +}