Updated filters
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
"required": ["value"],
|
||||
"properties": {
|
||||
"test": { "type": "string", "title": "Test Property", "description": "Compares the distance to the nearest Player with a float value." },
|
||||
"operator": { "$ref": "./types/operator.json", "description": "(Optional) The comparison to apply with `value`.", "title": "Operator" },
|
||||
"subject": { "$ref": "./types/subject.json", "description": "(Optional) The subject of this filter test.", "title": "Subject" },
|
||||
"operator": { "$ref": "./types/operator.json" },
|
||||
"subject": { "$ref": "./types/subject.json" },
|
||||
"value": { "type": "number", "description": "(Required) A floating point value.", "title": "Value" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
"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": "UNDOCUMENTATED: value", "title": "Value" }
|
||||
"value": { "type": "string", "description": "(Required) The component name to look for", "title": "Value" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"operator": { "$ref": "./types/operator.json" },
|
||||
"subject": { "$ref": "./types/subject.json" },
|
||||
"value": {
|
||||
"description": "True or false.",
|
||||
"description": "(Optional) true or false.",
|
||||
"oneOf": [
|
||||
{ "type": "boolean", "default": true },
|
||||
{ "type": "string", "enum": ["true", "false"] }
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
"description": "The item name to look for",
|
||||
"type": "string",
|
||||
"$ref": "../../../../general/item/identifier.json",
|
||||
"title": "TODO Title"
|
||||
"title": "Value"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@
|
||||
"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": "UNDOCUMENTATED: value", "title": "Value" }
|
||||
"value": { "type": "string", "description": "The specified mob effect", "title": "Value" }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
},
|
||||
"operator": { "$ref": "./types/operator.json" },
|
||||
"subject": { "$ref": "./types/subject.json" },
|
||||
"value": { "type": "integer", "description": "An integer value.", "minimum": 0, "maximum": 24000, "title": "Value" }
|
||||
"value": {
|
||||
"type": "integer",
|
||||
"description": "(Required) An integer value set between 0 and 24000",
|
||||
"minimum": 0,
|
||||
"maximum": 24000,
|
||||
"title": "Value"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.filters.in_block",
|
||||
"type": "object",
|
||||
"title": "In block",
|
||||
"title": "In Block",
|
||||
"description": "Returns true when the subject entity is inside a specified Block type.",
|
||||
"properties": {
|
||||
"test": {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"enum": [
|
||||
"all",
|
||||
"anvil",
|
||||
"attack",
|
||||
"block_explosion",
|
||||
"charging",
|
||||
"contact",
|
||||
@@ -12,8 +13,8 @@
|
||||
"entity_attack",
|
||||
"entity_explosion",
|
||||
"fall",
|
||||
"fatal",
|
||||
"falling_block",
|
||||
"fatal",
|
||||
"fire",
|
||||
"fire_tick",
|
||||
"fireworks",
|
||||
@@ -27,6 +28,8 @@
|
||||
"override",
|
||||
"piston",
|
||||
"projectile",
|
||||
"stalactite",
|
||||
"stalagmite",
|
||||
"starve",
|
||||
"suffocation",
|
||||
"suicide",
|
||||
|
||||
Reference in New Issue
Block a user