Added examples for filters
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user