From d781b2ed888a1e49709d4774a880aec1c54402af Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Mon, 11 Oct 2021 18:37:52 +0200 Subject: [PATCH] Added examples for filters --- .../entities/filters/filters/has_ability.json | 22 +++++-- .../filters/filters/has_biome_tag.json | 28 +++++++-- .../filters/filters/has_component.json | 28 +++++++-- .../filters/filters/has_container_open.json | 30 ++++++--- .../filters/filters/has_equipment.json | 32 ++++++++-- .../filters/filters/has_mob_effect.json | 28 +++++++-- .../filters/filters/has_ranged_weapon.json | 28 ++++++--- .../entities/filters/filters/has_tag.json | 29 +++++++-- .../entities/filters/filters/has_target.json | 28 ++++++--- .../filters/filters/has_trade_supply.json | 22 ++++--- .../filters/filters/hourly_clock_time.json | 16 ++++- .../entities/filters/filters/in_block.json | 14 ++++- .../entities/filters/filters/in_caravan.json | 28 ++++++--- .../entities/filters/filters/in_clouds.json | 28 ++++++--- .../filters/in_contact_with_water.json | 24 ++++--- .../entities/filters/filters/in_lava.json | 28 ++++++--- .../entities/filters/filters/in_nether.json | 28 ++++++--- .../entities/filters/filters/in_water.json | 28 ++++++--- .../filters/filters/in_water_or_rain.json | 28 ++++++--- .../filters/filters/inactivity_timer.json | 28 +++++++-- .../entities/filters/filters/is_altitude.json | 29 +++++++-- .../filters/filters/is_avoiding_mobs.json | 28 ++++++--- .../entities/filters/filters/is_biome.json | 22 +++++-- .../entities/filters/filters/is_block.json | 29 +++++++-- .../filters/filters/is_brightness.json | 24 +++++-- .../entities/filters/filters/is_climbing.json | 28 ++++++--- .../entities/filters/filters/is_color.json | 22 +++++-- .../entities/filters/filters/is_daytime.json | 28 ++++++--- .../filters/filters/is_difficulty.json | 22 +++++-- .../entities/filters/filters/is_family.json | 28 +++++++-- .../filters/filters/is_game_rule.json | 62 +++++++++++++++++-- .../entities/filters/filters/is_humid.json | 28 ++++++--- .../entities/filters/filters/is_immobile.json | 28 ++++++--- .../filters/filters/is_in_village.json | 28 ++++++--- .../entities/filters/filters/is_leashed.json | 28 ++++++--- .../filters/filters/is_leashed_to.json | 28 ++++++--- .../filters/filters/is_mark_variant.json | 28 +++++++-- .../entities/filters/filters/is_moving.json | 28 ++++++--- .../entities/filters/filters/is_owner.json | 28 ++++++--- .../filters/filters/is_persistent.json | 28 ++++++--- .../entities/filters/filters/is_riding.json | 22 +++++-- .../entities/filters/filters/is_skin_id.json | 28 +++++++-- .../entities/filters/filters/is_sleeping.json | 28 ++++++--- .../entities/filters/filters/is_sneaking.json | 28 ++++++--- .../filters/filters/is_snow_covered.json | 28 ++++++--- .../entities/filters/filters/is_target.json | 28 ++++++--- .../filters/filters/is_temperature_type.json | 24 +++++-- .../filters/filters/is_temperature_value.json | 30 +++++++-- .../filters/filters/is_underground.json | 28 ++++++--- .../filters/filters/is_underwater.json | 28 ++++++--- .../entities/filters/filters/is_variant.json | 28 +++++++-- .../entities/filters/filters/is_visible.json | 28 ++++++--- .../entities/filters/filters/light_level.json | 30 +++++++-- .../filters/filters/moon_intensity.json | 30 +++++++-- .../entities/filters/filters/moon_phase.json | 30 +++++++-- .../entities/filters/filters/on_ground.json | 28 ++++++--- .../entities/filters/filters/on_ladder.json | 28 ++++++--- .../filters/filters/random_chance.json | 28 +++++++-- .../entities/filters/filters/rider_count.json | 28 +++++++-- .../entities/filters/filters/surface_mob.json | 28 ++++++--- .../entities/filters/filters/trusts.json | 28 ++++++--- .../entities/filters/filters/weather.json | 29 +++++++-- .../filters/filters/weather_at_position.json | 29 +++++++-- 63 files changed, 1337 insertions(+), 406 deletions(-) diff --git a/source/behavior/entities/filters/filters/has_ability.json b/source/behavior/entities/filters/filters/has_ability.json index 91a14a60..04b6328e 100644 --- a/source/behavior/entities/filters/filters/has_ability.json +++ b/source/behavior/entities/filters/filters/has_ability.json @@ -5,14 +5,28 @@ "description": "Returns true when the subject entity has the named ability.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity has the named ability." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity has the named ability." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "type": "string", "description": "(Required) The Ability type to test", "enum": ["flySpeed", "flying", "instabuild", "invulnerable", "lightning", "mayfly", "mute", "noclip", "walkSpeed", "worldbuilder"], "title": "Value" } - } + }, + "examples": [ + { + "test": "has_ability", + "value": "flySpeed" + } + ] } diff --git a/source/behavior/entities/filters/filters/has_biome_tag.json b/source/behavior/entities/filters/filters/has_biome_tag.json index ab984680..b8504286 100644 --- a/source/behavior/entities/filters/filters/has_biome_tag.json +++ b/source/behavior/entities/filters/filters/has_biome_tag.json @@ -5,9 +5,27 @@ "description": "Tests whether the biome the subject is in has the specified tag.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Tests whether the biome the subject is in has the specified tag." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "(Required) The tag to look for", "type": "string", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "Tests whether the biome the subject is in has the specified tag." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "(Required) The tag to look for", + "type": "string", + "title": "Value" + } + }, + "examples": [ + { + "test": "has_biome_tag", + "value": "monster" + } + ] } diff --git a/source/behavior/entities/filters/filters/has_component.json b/source/behavior/entities/filters/filters/has_component.json index b4f78629..08ff79aa 100644 --- a/source/behavior/entities/filters/filters/has_component.json +++ b/source/behavior/entities/filters/filters/has_component.json @@ -5,9 +5,27 @@ "description": "Returns true when the subject entity contains the named component.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity contains the named component." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "string", "description": "(Required) The component name to look for", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity contains the named component." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "string", + "description": "(Required) The component name to look for", + "title": "Value" + } + }, + "examples": [ + { + "test": "has_component", + "value": "minecraft:explode" + } + ] } diff --git a/source/behavior/entities/filters/filters/has_container_open.json b/source/behavior/entities/filters/filters/has_container_open.json index 57fdfee8..4131dadb 100644 --- a/source/behavior/entities/filters/filters/has_container_open.json +++ b/source/behavior/entities/filters/filters/has_container_open.json @@ -4,16 +4,28 @@ "title": "Has Container Open", "description": "Returns true when the subject Player entity has opened a container.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "(Optional) true or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], - "title": "Value" + "title": "Value", + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "has_container_open", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/has_equipment.json b/source/behavior/entities/filters/filters/has_equipment.json index 514f8b54..ff9be78f 100644 --- a/source/behavior/entities/filters/filters/has_equipment.json +++ b/source/behavior/entities/filters/filters/has_equipment.json @@ -3,7 +3,9 @@ "type": "object", "title": "Has Equipment", "description": "Tests for the presence of a named item in the designated slot of the subject entity.", - "required": ["value"], + "required": [ + "value" + ], "properties": { "test": { "type": "string", @@ -14,16 +16,34 @@ "domain": { "description": "The equipment location to test", "default": "any", - "enum": ["any", "armor", "feet", "hand", "head", "leg", "torso"], + "enum": [ + "any", + "armor", + "feet", + "hand", + "head", + "leg", + "torso" + ], "title": "Domain" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "The item name to look for", "type": "string", "$ref": "../../../../general/item/identifier.json", "title": "Value" } - } -} + }, + "examples": [ + { + "test": "example", + "value": "example" + } + ] +} \ No newline at end of file diff --git a/source/behavior/entities/filters/filters/has_mob_effect.json b/source/behavior/entities/filters/filters/has_mob_effect.json index e918ca55..37ae441d 100644 --- a/source/behavior/entities/filters/filters/has_mob_effect.json +++ b/source/behavior/entities/filters/filters/has_mob_effect.json @@ -5,9 +5,27 @@ "description": "Tests whether the Subject has the specified mob effect.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Tests whether the Subject has the specified mob effect." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "string", "description": "The specified mob effect", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "Tests whether the Subject has the specified mob effect." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "string", + "description": "The specified mob effect", + "title": "Value" + } + }, + "examples": [ + { + "test": "has_mob_effect", + "value": "bad_omen" + } + ] } diff --git a/source/behavior/entities/filters/filters/has_ranged_weapon.json b/source/behavior/entities/filters/filters/has_ranged_weapon.json index 5e82fa0d..e98b9da7 100644 --- a/source/behavior/entities/filters/filters/has_ranged_weapon.json +++ b/source/behavior/entities/filters/filters/has_ranged_weapon.json @@ -4,16 +4,28 @@ "title": "Has Ranged Weapon", "description": "Returns true when the subject entity is holding a ranged weapon like a bow or crossbow.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "has_ranged_weapon", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/has_tag.json b/source/behavior/entities/filters/filters/has_tag.json index 1e57e334..47c324c6 100644 --- a/source/behavior/entities/filters/filters/has_tag.json +++ b/source/behavior/entities/filters/filters/has_tag.json @@ -5,9 +5,28 @@ "description": "Returns true if the subject entity has the tag provided.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true if the subject entity has the tag provided." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "string", "description": "The tag as a string", "pattern": "[a-zA-Z0-9_]+", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true if the subject entity has the tag provided." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "string", + "description": "The tag as a string", + "pattern": "[a-zA-Z0-9_]+", + "title": "Value" + } + }, + "examples": [ + { + "test": "has_tag", + "value": "example" + } + ] } diff --git a/source/behavior/entities/filters/filters/has_target.json b/source/behavior/entities/filters/filters/has_target.json index 9dec7355..e81ae2a3 100644 --- a/source/behavior/entities/filters/filters/has_target.json +++ b/source/behavior/entities/filters/filters/has_target.json @@ -4,16 +4,28 @@ "title": "Has Target", "description": "Returns true if the subject entity has a valid target.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "has_target", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/has_trade_supply.json b/source/behavior/entities/filters/filters/has_trade_supply.json index d5798f1e..5570e137 100644 --- a/source/behavior/entities/filters/filters/has_trade_supply.json +++ b/source/behavior/entities/filters/filters/has_trade_supply.json @@ -9,15 +9,23 @@ "title": "Test Property", "description": "Tests whether the target has any trade supply left. Will return false if the target cannot be traded with." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "has_trade_supply", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/hourly_clock_time.json b/source/behavior/entities/filters/filters/hourly_clock_time.json index 3c851c17..3a93e6a5 100644 --- a/source/behavior/entities/filters/filters/hourly_clock_time.json +++ b/source/behavior/entities/filters/filters/hourly_clock_time.json @@ -11,8 +11,12 @@ "description": "Compares the current 24 hour time with an int value in the range[0, 24000]", "const": "hourly_clock_time" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "type": "integer", "description": "(Required) An integer value set between 0 and 24000", @@ -20,5 +24,11 @@ "maximum": 24000, "title": "Value" } - } + }, + "examples": [ + { + "test": "hourly_clock_time", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/in_block.json b/source/behavior/entities/filters/filters/in_block.json index 049809f5..cad7e684 100644 --- a/source/behavior/entities/filters/filters/in_block.json +++ b/source/behavior/entities/filters/filters/in_block.json @@ -21,6 +21,16 @@ "default": "self", "title": "Subject" }, - "value": { "type": "string", "description": "(Optional) A string value.", "title": "Value" } - } + "value": { + "type": "string", + "description": "(Optional) A string value.", + "title": "Value" + } + }, + "examples": [ + { + "test": "in_block", + "value": "minecraft:water" + } + ] } diff --git a/source/behavior/entities/filters/filters/in_caravan.json b/source/behavior/entities/filters/filters/in_caravan.json index 1c5a506c..4067c253 100644 --- a/source/behavior/entities/filters/filters/in_caravan.json +++ b/source/behavior/entities/filters/filters/in_caravan.json @@ -4,16 +4,28 @@ "title": "In Caravan", "description": "Returns true if the subject entity is in a caravan.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true if the subject entity is in a caravan." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true if the subject entity is in a caravan." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_caravan", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_clouds.json b/source/behavior/entities/filters/filters/in_clouds.json index f145fa87..3f029149 100644 --- a/source/behavior/entities/filters/filters/in_clouds.json +++ b/source/behavior/entities/filters/filters/in_clouds.json @@ -4,16 +4,28 @@ "title": "In Clouds", "description": "Returns true when the subject entity is in the clouds.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity is in the clouds." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity is in the clouds." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_clouds", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_contact_with_water.json b/source/behavior/entities/filters/filters/in_contact_with_water.json index dcbe6968..9e54bbda 100644 --- a/source/behavior/entities/filters/filters/in_contact_with_water.json +++ b/source/behavior/entities/filters/filters/in_contact_with_water.json @@ -1,7 +1,7 @@ { "$id": "blockception.minecraft.behavior.entities.filters.in_contact_with_water", "type": "object", - "title": "In contact with water", + "title": "In Contact With Water", "description": "Returns true when the subject entity in contact with any water: water, rain, splash water bottle.", "properties": { "test": { @@ -9,15 +9,23 @@ "title": "Test Property", "description": "Returns true when the subject entity in contact with any water: water, rain, splash water bottle." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "(Optional) true or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_contact_with_water", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_lava.json b/source/behavior/entities/filters/filters/in_lava.json index 6ef12bd3..02910459 100644 --- a/source/behavior/entities/filters/filters/in_lava.json +++ b/source/behavior/entities/filters/filters/in_lava.json @@ -4,16 +4,28 @@ "title": "In Lava", "description": "Returns true when the subject entity is in lava.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity is in lava." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity is in lava." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_lava", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_nether.json b/source/behavior/entities/filters/filters/in_nether.json index 51c54fe0..ee26a7ed 100644 --- a/source/behavior/entities/filters/filters/in_nether.json +++ b/source/behavior/entities/filters/filters/in_nether.json @@ -4,16 +4,28 @@ "title": "In Nether", "description": "Returns true when the subject entity is in Nether.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "in_nether", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_water.json b/source/behavior/entities/filters/filters/in_water.json index 48f73334..97f346db 100644 --- a/source/behavior/entities/filters/filters/in_water.json +++ b/source/behavior/entities/filters/filters/in_water.json @@ -4,16 +4,28 @@ "title": "In Water", "description": "Returns true when the subject entity is in water.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity is in water." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity is in water." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_water", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/in_water_or_rain.json b/source/behavior/entities/filters/filters/in_water_or_rain.json index 3246d325..e6d8aeaf 100644 --- a/source/behavior/entities/filters/filters/in_water_or_rain.json +++ b/source/behavior/entities/filters/filters/in_water_or_rain.json @@ -4,16 +4,28 @@ "title": "In Water Or Rain", "description": "Returns true when the subject entity is in water or rain.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity is in water or rain." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity is in water or rain." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "in_water_or_rain", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/inactivity_timer.json b/source/behavior/entities/filters/filters/inactivity_timer.json index 598f95bb..0c94c416 100644 --- a/source/behavior/entities/filters/filters/inactivity_timer.json +++ b/source/behavior/entities/filters/filters/inactivity_timer.json @@ -5,9 +5,27 @@ "description": "Tests if the specified duration in seconds of inactivity for despawning has been reached.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Family name to look for", "type": "integer", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Family name to look for", + "type": "integer", + "title": "Value" + } + }, + "examples": [ + { + "test": "inactivity_timer", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_altitude.json b/source/behavior/entities/filters/filters/is_altitude.json index 6a89fc34..cce3aa45 100644 --- a/source/behavior/entities/filters/filters/is_altitude.json +++ b/source/behavior/entities/filters/filters/is_altitude.json @@ -3,15 +3,32 @@ "type": "object", "title": "Is Altitude", "description": "Tests the current altitude against a provided value. 0= bedrock elevation.", - "required": ["value"], + "required": [ + "value" + ], "properties": { "test": { "type": "string", "title": "Test Property", "description": "Tests the current altitude against a provided value. 0= bedrock elevation." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "integer", "description": "The altitude value to compare with", "minimum": 0, "title": "Value" } - } -} + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "integer", + "description": "The altitude value to compare with", + "minimum": 0, + "title": "Value" + } + }, + "examples": [ + { + "test": "example", + "value": 0 + } + ] +} \ No newline at end of file diff --git a/source/behavior/entities/filters/filters/is_avoiding_mobs.json b/source/behavior/entities/filters/filters/is_avoiding_mobs.json index d64fda52..81ae1460 100644 --- a/source/behavior/entities/filters/filters/is_avoiding_mobs.json +++ b/source/behavior/entities/filters/filters/is_avoiding_mobs.json @@ -4,16 +4,28 @@ "title": "Is Avoiding Mobs", "description": "Returns true if the subject entity is fleeing from other mobs.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true if the subject entity is fleeing from other mobs." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true if the subject entity is fleeing from other mobs." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "example", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_biome.json b/source/behavior/entities/filters/filters/is_biome.json index 477c9753..29788fe8 100644 --- a/source/behavior/entities/filters/filters/is_biome.json +++ b/source/behavior/entities/filters/filters/is_biome.json @@ -5,9 +5,17 @@ "description": "Tests whether the Subject is currently in the named biome.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Tests whether the Subject is currently in the named biome." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Tests whether the Subject is currently in the named biome." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "The Biome type to test", "type": "string", @@ -33,5 +41,11 @@ ], "title": "Value" } - } + }, + "examples": [ + { + "test": "is_biome", + "value": "beach" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_block.json b/source/behavior/entities/filters/filters/is_block.json index 43e7230f..41248d39 100644 --- a/source/behavior/entities/filters/filters/is_block.json +++ b/source/behavior/entities/filters/filters/is_block.json @@ -5,9 +5,28 @@ "description": "Returns true when the block has the given name.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Family name to look for", "type": "string", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Family name to look for", + "type": "string", + "title": "Value" + } + }, + "examples": [ + { + "test": "is_block", + "subject": "block", + "value": "minecraft:sweet_berry_bush" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_brightness.json b/source/behavior/entities/filters/filters/is_brightness.json index a76bf8f4..6b8c6780 100644 --- a/source/behavior/entities/filters/filters/is_brightness.json +++ b/source/behavior/entities/filters/filters/is_brightness.json @@ -10,8 +10,24 @@ "title": "Test Property", "description": "Tests the current brightness against a provided value in the range (0.0f, 1.0f)." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The brightness value to compare with.", "type": "number", "minimum": 0.0, "maximum": 1.0, "title": "Value" } - } + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The brightness value to compare with.", + "type": "number", + "minimum": 0.0, + "maximum": 1.0, + "title": "Value" + } + }, + "examples": [ + { + "test": "is_brightness", + "value": 0.0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_climbing.json b/source/behavior/entities/filters/filters/is_climbing.json index 24bf29e4..ff57a693 100644 --- a/source/behavior/entities/filters/filters/is_climbing.json +++ b/source/behavior/entities/filters/filters/is_climbing.json @@ -4,16 +4,28 @@ "title": "Is Climbing", "description": "Returns true if the subject entity is climbing.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true if the subject entity is climbing." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true if the subject entity is climbing." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_climbing", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_color.json b/source/behavior/entities/filters/filters/is_color.json index b05b5b7e..4cc78d12 100644 --- a/source/behavior/entities/filters/filters/is_color.json +++ b/source/behavior/entities/filters/filters/is_color.json @@ -5,9 +5,17 @@ "description": "Returns true if the subject entity is the named color.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true if the subject entity is the named color." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true if the subject entity is the named color." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "The Palette Color to test", "type": "string", @@ -31,5 +39,11 @@ ], "title": "Value" } - } + }, + "examples": [ + { + "test": "is_color", + "value": "black" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_daytime.json b/source/behavior/entities/filters/filters/is_daytime.json index 6b7dbc31..d16a5c2f 100644 --- a/source/behavior/entities/filters/filters/is_daytime.json +++ b/source/behavior/entities/filters/filters/is_daytime.json @@ -4,16 +4,28 @@ "title": "Is Daytime", "description": "Returns true during the daylight hours.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true during the daylight hours." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true during the daylight hours." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_daytime", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_difficulty.json b/source/behavior/entities/filters/filters/is_difficulty.json index de71fe7d..ce7ec5b1 100644 --- a/source/behavior/entities/filters/filters/is_difficulty.json +++ b/source/behavior/entities/filters/filters/is_difficulty.json @@ -5,14 +5,28 @@ "description": "Tests the current difficulty level of the game.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Tests the current difficulty level of the game." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Tests the current difficulty level of the game." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "The game's difficulty level to test", "type": "string", "enum": ["easy", "hard", "normal", "peaceful"], "title": "Value" } - } + }, + "examples": [ + { + "test": "is_difficulty", + "value": "easy" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_family.json b/source/behavior/entities/filters/filters/is_family.json index cac557b1..fae87094 100644 --- a/source/behavior/entities/filters/filters/is_family.json +++ b/source/behavior/entities/filters/filters/is_family.json @@ -5,9 +5,27 @@ "description": "Returns true when the subject entity is a member of the named family.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity is a member of the named family." }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Family name to look for", "type": "string", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "Returns true when the subject entity is a member of the named family." + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Family name to look for", + "type": "string", + "title": "Value" + } + }, + "examples": [ + { + "test": "is_family", + "value": "monster" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_game_rule.json b/source/behavior/entities/filters/filters/is_game_rule.json index b4d5f796..a632e7ce 100644 --- a/source/behavior/entities/filters/filters/is_game_rule.json +++ b/source/behavior/entities/filters/filters/is_game_rule.json @@ -3,11 +3,61 @@ "type": "object", "title": "Is Game Rule", "description": "Tests whether a named game rule is active.", - "required": ["domain"], + "required": ["domain", "value"], "properties": { - "domain": { "description": "The Game Rule to test.", "title": "Domain", "examples": ["domobspawning"] }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "Tests whether a named game rule is active.", "default": true, "type": "boolean", "title": "Value" } - } + "domain": { + "description": "The Game Rule to test.", + "title": "Domain", + "examples": [ + "commandBlockOutput", + "commandBlocksEnabled", + "doDaylightCycle", + "doEntityDrops", + "doFireTick", + "doImmediateRespawn", + "doInsomnia", + "doMobLoot", + "doMobSpawning", + "doTileDrops", + "doWeatherCycle", + "drowningDamage", + "fallDamage", + "fireDamage", + "freezeDamage", + "functionCommandLimit", + "keepInventory", + "maxCommandChainLength", + "mobGriefing", + "naturalRegeneration", + "pvp", + "randomTickSpeed", + "respawnblocksexplode", + "sendCommandFeedback", + "showCoordinates", + "showDeathMessages", + "showTags", + "spawnRadius", + "tntExplodes" + ] + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "Tests whether a named game rule is active.", + "default": true, + "type": "boolean", + "title": "Value" + } + }, + "examples": [ + { + "test": "is_game_rule", + "domain": "domobspawning", + "value": false + } + ] } diff --git a/source/behavior/entities/filters/filters/is_humid.json b/source/behavior/entities/filters/filters/is_humid.json index df759f7d..93295b20 100644 --- a/source/behavior/entities/filters/filters/is_humid.json +++ b/source/behavior/entities/filters/filters/is_humid.json @@ -4,16 +4,28 @@ "title": "Is Humid", "description": "Tests whether the Subject is in an area with humidity", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "Tests whether the Subject is in an area with humidity" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "Tests whether the Subject is in an area with humidity" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_humid", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_immobile.json b/source/behavior/entities/filters/filters/is_immobile.json index 1f2ee797..de2a69fd 100644 --- a/source/behavior/entities/filters/filters/is_immobile.json +++ b/source/behavior/entities/filters/filters/is_immobile.json @@ -4,16 +4,28 @@ "title": "Is Immobile", "description": "Returns true if the subject entity is immobile. An entity is immobile if it lacks AI goals, has just changed dimensions or if it is a mob and has no health.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_immobile", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_in_village.json b/source/behavior/entities/filters/filters/is_in_village.json index 41f43667..7ad93a1a 100644 --- a/source/behavior/entities/filters/filters/is_in_village.json +++ b/source/behavior/entities/filters/filters/is_in_village.json @@ -4,16 +4,28 @@ "title": "Is In Village", "description": "Tests whether the Subject is inside the bounds of a village.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_in_village", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_leashed.json b/source/behavior/entities/filters/filters/is_leashed.json index 45944b4d..fd50e3b9 100644 --- a/source/behavior/entities/filters/filters/is_leashed.json +++ b/source/behavior/entities/filters/filters/is_leashed.json @@ -4,16 +4,28 @@ "title": "Is Leashed", "description": "Returns true if the subject entity is leashed.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_leashed", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_leashed_to.json b/source/behavior/entities/filters/filters/is_leashed_to.json index 45ab5579..c8487a20 100644 --- a/source/behavior/entities/filters/filters/is_leashed_to.json +++ b/source/behavior/entities/filters/filters/is_leashed_to.json @@ -4,16 +4,28 @@ "title": "Is Leashed To", "description": "Returns true if the subject entity leashed to the calling entity.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "is_leashed_to", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_mark_variant.json b/source/behavior/entities/filters/filters/is_mark_variant.json index cb00ecb6..79aac260 100644 --- a/source/behavior/entities/filters/filters/is_mark_variant.json +++ b/source/behavior/entities/filters/filters/is_mark_variant.json @@ -3,11 +3,29 @@ "type": "object", "title": "Is Mark Variant", "description": "Returns true if the subject entity is the mark variant number provided.", + "additionalProperties": false, "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "integer", "description": "The altitude value to compare with", "title": "Value" } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "integer", + "description": "The altitude value to compare with", + "title": "Value" + } }, - "additionalProperties": false + "examples": [ + { + "test": "is_mark_variant", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_moving.json b/source/behavior/entities/filters/filters/is_moving.json index 4b6de612..36a6efa5 100644 --- a/source/behavior/entities/filters/filters/is_moving.json +++ b/source/behavior/entities/filters/filters/is_moving.json @@ -4,16 +4,28 @@ "title": "Is Moving", "description": "Returns true if the subject entity is moving.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_moving", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_owner.json b/source/behavior/entities/filters/filters/is_owner.json index aba7492e..3056491b 100644 --- a/source/behavior/entities/filters/filters/is_owner.json +++ b/source/behavior/entities/filters/filters/is_owner.json @@ -4,16 +4,28 @@ "title": "Is Owner", "description": "Returns true if the subject entity is the owner of the calling entity.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_owner", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_persistent.json b/source/behavior/entities/filters/filters/is_persistent.json index ddde54cd..d386b76d 100644 --- a/source/behavior/entities/filters/filters/is_persistent.json +++ b/source/behavior/entities/filters/filters/is_persistent.json @@ -4,16 +4,28 @@ "title": "Is Persistent", "description": "Tests if the subject's persistence matches the bool value passed in.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "is_persistent", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_riding.json b/source/behavior/entities/filters/filters/is_riding.json index c00e1ca3..01e35448 100644 --- a/source/behavior/entities/filters/filters/is_riding.json +++ b/source/behavior/entities/filters/filters/is_riding.json @@ -4,14 +4,28 @@ "title": "Is Riding", "description": "Returns true if the subject entity is riding on another entity.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", "type": "boolean", "default": true } - } + }, + "examples": [ + { + "test": "is_riding", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_skin_id.json b/source/behavior/entities/filters/filters/is_skin_id.json index 73550f44..72eeb5a9 100644 --- a/source/behavior/entities/filters/filters/is_skin_id.json +++ b/source/behavior/entities/filters/filters/is_skin_id.json @@ -4,9 +4,27 @@ "title": "Is Skin Id", "description": "Returns true if the subject entity is the skin id number provided.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "integer", "description": "The altitude value to compare with", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "integer", + "description": "The altitude value to compare with", + "title": "Value" + } + }, + "examples": [ + { + "test": "is_skin_id", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_sleeping.json b/source/behavior/entities/filters/filters/is_sleeping.json index d8da1349..80ba3a37 100644 --- a/source/behavior/entities/filters/filters/is_sleeping.json +++ b/source/behavior/entities/filters/filters/is_sleeping.json @@ -4,16 +4,28 @@ "title": "Is Sleeping", "description": "Tests whether the Subject is sleeping.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "is_sleeping", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_sneaking.json b/source/behavior/entities/filters/filters/is_sneaking.json index c5b99125..5dfb74cb 100644 --- a/source/behavior/entities/filters/filters/is_sneaking.json +++ b/source/behavior/entities/filters/filters/is_sneaking.json @@ -4,16 +4,28 @@ "title": "Is Sneaking", "description": "Returns true if the subject entity is sneaking.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_sneaking", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_snow_covered.json b/source/behavior/entities/filters/filters/is_snow_covered.json index 35198892..24313139 100644 --- a/source/behavior/entities/filters/filters/is_snow_covered.json +++ b/source/behavior/entities/filters/filters/is_snow_covered.json @@ -4,16 +4,28 @@ "title": "Is Snow Covered", "description": "Tests whether the Subject is in an area with snow cover", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_snow_covered", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_target.json b/source/behavior/entities/filters/filters/is_target.json index 8f3daf62..f6f92ecb 100644 --- a/source/behavior/entities/filters/filters/is_target.json +++ b/source/behavior/entities/filters/filters/is_target.json @@ -4,16 +4,28 @@ "title": "Is Target", "description": "Returns true if the subject entity is the target of the calling entity.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_target", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_temperature_type.json b/source/behavior/entities/filters/filters/is_temperature_type.json index 190ff15d..1d9c8b44 100644 --- a/source/behavior/entities/filters/filters/is_temperature_type.json +++ b/source/behavior/entities/filters/filters/is_temperature_type.json @@ -1,18 +1,32 @@ { - "$id": "blockception.minecraft.behavior.entities.filters.is_target", + "$id": "blockception.minecraft.behavior.entities.filters.is_temperature_type", "type": "object", "title": "Is Target", "description": "Tests whether the current temperature is a given type.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "The Biome temperature catagory to test", "type": "string", "enum": ["cold", "mild", "ocean", "warm"], "title": "Value" } - } + }, + "examples": [ + { + "test": "is_temperature_type", + "value": "cold" + } + ] } diff --git a/source/behavior/entities/filters/filters/is_temperature_value.json b/source/behavior/entities/filters/filters/is_temperature_value.json index d110c35b..91ba7fa3 100644 --- a/source/behavior/entities/filters/filters/is_temperature_value.json +++ b/source/behavior/entities/filters/filters/is_temperature_value.json @@ -5,9 +5,29 @@ "description": "Tests the current temperature against a provided value in the range (0.0, 1.0) where 0.0f is the coldest temp and 1.0f is the hottest.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Biome temperature value to compare with.", "type": "number", "minimum": 0.0, "maximum": 1.0, "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Biome temperature value to compare with.", + "type": "number", + "minimum": 0.0, + "maximum": 1.0, + "title": "Value" + } + }, + "examples": [ + { + "test": "is_temperature_value", + "value": 0.0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_underground.json b/source/behavior/entities/filters/filters/is_underground.json index f27602e3..2b7c9159 100644 --- a/source/behavior/entities/filters/filters/is_underground.json +++ b/source/behavior/entities/filters/filters/is_underground.json @@ -4,16 +4,28 @@ "title": "Is Underground", "description": "Returns true when the subject entity is underground. An entity is considered underground if there are non-solid blocks above it.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_underground", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_underwater.json b/source/behavior/entities/filters/filters/is_underwater.json index c0b6d838..579a03f0 100644 --- a/source/behavior/entities/filters/filters/is_underwater.json +++ b/source/behavior/entities/filters/filters/is_underwater.json @@ -4,16 +4,28 @@ "title": "Is Underwater", "description": "Returns true when the subject entity is under water. An entity is considered underwater if it is completely submerged in water blocks.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_underwater", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/is_variant.json b/source/behavior/entities/filters/filters/is_variant.json index 5be56686..4080623d 100644 --- a/source/behavior/entities/filters/filters/is_variant.json +++ b/source/behavior/entities/filters/filters/is_variant.json @@ -5,9 +5,27 @@ "description": "Returns true if the subject entity is the variant number provided.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "integer", "description": "The altitude value to compare with", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "integer", + "description": "The altitude value to compare with", + "title": "Value" + } + }, + "examples": [ + { + "test": "is_variant", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/is_visible.json b/source/behavior/entities/filters/filters/is_visible.json index 59691d34..720c4746 100644 --- a/source/behavior/entities/filters/filters/is_visible.json +++ b/source/behavior/entities/filters/filters/is_visible.json @@ -4,16 +4,28 @@ "title": "Is Visible", "description": "Returns true if the subject entity is visible.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "is_visible", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/light_level.json b/source/behavior/entities/filters/filters/light_level.json index aebdbe06..f64ae452 100644 --- a/source/behavior/entities/filters/filters/light_level.json +++ b/source/behavior/entities/filters/filters/light_level.json @@ -5,9 +5,29 @@ "description": "Tests is the mob is outside of the specified light level range (0, 16).", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "An integer value.", "type": "integer", "title": "Value", "minimum": 0, "maximum": 16 } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "An integer value.", + "type": "integer", + "title": "Value", + "minimum": 0, + "maximum": 16 + } + }, + "examples": [ + { + "test": "light_level", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/moon_intensity.json b/source/behavior/entities/filters/filters/moon_intensity.json index 48d31b3c..10abd762 100644 --- a/source/behavior/entities/filters/filters/moon_intensity.json +++ b/source/behavior/entities/filters/filters/moon_intensity.json @@ -5,9 +5,29 @@ "description": "Compares the current moon intensity with a float value in the range (0.0, 1.0)", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "A floating point value.", "type": "number", "minimum": 0, "maximum": 1, "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "A floating point value.", + "type": "number", + "minimum": 0, + "maximum": 1, + "title": "Value" + } + }, + "examples": [ + { + "test": "moon_intensity", + "value": 0.0 + } + ] } diff --git a/source/behavior/entities/filters/filters/moon_phase.json b/source/behavior/entities/filters/filters/moon_phase.json index 5d5ab238..a48f81e6 100644 --- a/source/behavior/entities/filters/filters/moon_phase.json +++ b/source/behavior/entities/filters/filters/moon_phase.json @@ -5,9 +5,29 @@ "description": "Compares the current moon phase with an integer value in the range (0, 7).", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "type": "integer", "description": "An integer value.", "minimum": 0, "maximum": 7, "title": "Value" } - } + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "type": "integer", + "description": "An integer value.", + "minimum": 0, + "maximum": 7, + "title": "Value" + } + }, + "examples": [ + { + "test": "moon_phase", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/on_ground.json b/source/behavior/entities/filters/filters/on_ground.json index afd692ef..f534a35c 100644 --- a/source/behavior/entities/filters/filters/on_ground.json +++ b/source/behavior/entities/filters/filters/on_ground.json @@ -4,16 +4,28 @@ "title": "On Ground", "description": "Returns true when the subject entity is on ground.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "on_ground", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/on_ladder.json b/source/behavior/entities/filters/filters/on_ladder.json index 8334be26..413ba36e 100644 --- a/source/behavior/entities/filters/filters/on_ladder.json +++ b/source/behavior/entities/filters/filters/on_ladder.json @@ -4,16 +4,28 @@ "title": "On Ladder", "description": "Returns true when the subject entity is on a ladder.", "properties": { - "test": { "type": "string", "title": "Test Property", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test Property", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "title": "Value", "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "default": "true", "enum": ["true", "false"] } - ] + "type": "boolean", + "default": true } - } + }, + "examples": [ + { + "test": "on_ladder", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/random_chance.json b/source/behavior/entities/filters/filters/random_chance.json index 86c1fc95..81ee367b 100644 --- a/source/behavior/entities/filters/filters/random_chance.json +++ b/source/behavior/entities/filters/filters/random_chance.json @@ -5,9 +5,27 @@ "description": "Returns true if the random chance rolls 0 out of a specified Maximum range.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "An integer value.", "type": "integer", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "An integer value.", + "type": "integer", + "title": "Value" + } + }, + "examples": [ + { + "test": "random_chance", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/rider_count.json b/source/behavior/entities/filters/filters/rider_count.json index af8ab4fa..4700a0e5 100644 --- a/source/behavior/entities/filters/filters/rider_count.json +++ b/source/behavior/entities/filters/filters/rider_count.json @@ -5,9 +5,27 @@ "description": "Returns the number of riders on this entity.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "An integer value.", "type": "integer", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "An integer value.", + "type": "integer", + "title": "Value" + } + }, + "examples": [ + { + "test": "rider_count", + "value": 0 + } + ] } diff --git a/source/behavior/entities/filters/filters/surface_mob.json b/source/behavior/entities/filters/filters/surface_mob.json index 6193cc6f..b0db6895 100644 --- a/source/behavior/entities/filters/filters/surface_mob.json +++ b/source/behavior/entities/filters/filters/surface_mob.json @@ -4,16 +4,28 @@ "title": "Surface Mob", "description": "Tests if the subject is a surface mob.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "surface_mob", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/trusts.json b/source/behavior/entities/filters/filters/trusts.json index 6da32430..315cbb9c 100644 --- a/source/behavior/entities/filters/filters/trusts.json +++ b/source/behavior/entities/filters/filters/trusts.json @@ -4,16 +4,28 @@ "title": "Trusts", "description": "Returns true if the subject is trusted by entity.", "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, "value": { "description": "True or false.", - "oneOf": [ - { "type": "boolean", "default": true }, - { "type": "string", "enum": ["true", "false"] } - ], + "type": "boolean", + "default": true, "title": "Value" } - } + }, + "examples": [ + { + "test": "trusts", + "value": true + } + ] } diff --git a/source/behavior/entities/filters/filters/weather.json b/source/behavior/entities/filters/filters/weather.json index 2c35206e..191c18ca 100644 --- a/source/behavior/entities/filters/filters/weather.json +++ b/source/behavior/entities/filters/filters/weather.json @@ -5,9 +5,28 @@ "description": "Tests for the current weather state the entity is experiencing.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Family name to look for", "type": "string", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Family name to look for", + "type": "string", + "title": "Value", + "examples": ["clear", "thunderstorm"] + } + }, + "examples": [ + { + "test": "weather", + "value": "clear" + } + ] } diff --git a/source/behavior/entities/filters/filters/weather_at_position.json b/source/behavior/entities/filters/filters/weather_at_position.json index 3ab88597..0fc58194 100644 --- a/source/behavior/entities/filters/filters/weather_at_position.json +++ b/source/behavior/entities/filters/filters/weather_at_position.json @@ -5,9 +5,28 @@ "description": "Tests the current weather, at the actor's position, against a provided weather value.", "required": ["value"], "properties": { - "test": { "type": "string", "title": "Test", "description": "The test property" }, - "operator": { "$ref": "./types/operator.json" }, - "subject": { "$ref": "./types/subject.json" }, - "value": { "description": "The Family name to look for", "type": "string", "title": "Value" } - } + "test": { + "type": "string", + "title": "Test", + "description": "The test property" + }, + "operator": { + "$ref": "./types/operator.json" + }, + "subject": { + "$ref": "./types/subject.json" + }, + "value": { + "description": "The Family name to look for", + "type": "string", + "title": "Value", + "examples": ["thunderstorm"] + } + }, + "examples": [ + { + "test": "weather_at_position", + "value": "thunderstorm" + } + ] }