- Updated for 1.21.40 (#324)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"title": "Add Or Remove",
|
||||
"description": "The components groups to add or remove.",
|
||||
"type": "object",
|
||||
"examples": [{ "component_groups": ["self:variant1"] }],
|
||||
"examples": [ { "component_groups": [ "self:variant1" ] } ],
|
||||
"properties": {
|
||||
"component_groups": {
|
||||
"title": "Component Groups",
|
||||
@@ -23,23 +23,23 @@
|
||||
"event_base": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"examples": [{}, { "add": { "component_groups": [] } }, { "remove": { "component_groups": [] } }],
|
||||
"examples": [ { }, { "add": { "component_groups": [ ] } }, { "remove": { "component_groups": [ ] } } ],
|
||||
"defaultSnippets": [
|
||||
{ "label": "New Add Event", "body": { "add": { "component_groups": ["$1"] } } },
|
||||
{ "label": "New Remove Event", "body": { "remove": { "component_groups": ["$1"] } } },
|
||||
{ "label": "New Add Event", "body": { "add": { "component_groups": [ "$1" ] } } },
|
||||
{ "label": "New Remove Event", "body": { "remove": { "component_groups": [ "$1" ] } } },
|
||||
{
|
||||
"label": "New Random Event",
|
||||
"body": {
|
||||
"randomize": [
|
||||
{ "add": { "component_groups": ["$1"] }, "weight": 1 },
|
||||
{ "add": { "component_groups": ["$2"] }, "weight": 1 }
|
||||
{ "add": { "component_groups": [ "$1" ] }, "weight": 1 },
|
||||
{ "add": { "component_groups": [ "$2" ] }, "weight": 1 }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "New Sequence Events",
|
||||
"body": {
|
||||
"sequence": [{ "add": { "component_groups": ["$1"] } }, { "add": { "component_groups": ["$2"] } }]
|
||||
"sequence": [ { "add": { "component_groups": [ "$1" ] } }, { "add": { "component_groups": [ "$2" ] } } ]
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -68,7 +68,7 @@
|
||||
"items": {
|
||||
"description": "Randomly selects one of the following items based upon their weight and the total weights.",
|
||||
"title": "Randomize",
|
||||
"examples": [{ "add": { "component_groups": ["foo:example"] }, "weight": 1 }],
|
||||
"examples": [ { "add": { "component_groups": [ "foo:example" ] }, "weight": 1 } ],
|
||||
"$ref": "#/definitions/weighted_event_base"
|
||||
}
|
||||
},
|
||||
@@ -83,6 +83,26 @@
|
||||
"$ref": "#/definitions/event_base"
|
||||
}
|
||||
},
|
||||
"execute_event_on_home_block": {
|
||||
"title": "Execute Event On Home Block",
|
||||
"description": "Allows the entity to execute an event on the block at its home position",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"event": {
|
||||
"title": "Event",
|
||||
"description": "The event to execute",
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"reset_target": {
|
||||
"title": "Reset Target",
|
||||
"description": "Allows an entity to reset its target.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": { }
|
||||
},
|
||||
"emit_vibration": {
|
||||
"title": "Emit Vibration",
|
||||
"description": "UNDOCUMENTED",
|
||||
@@ -97,9 +117,9 @@
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{ "vibration": "shear"},
|
||||
{ "vibration": "entity_act"},
|
||||
{ "vibration": "entity_interact"}
|
||||
{ "vibration": "shear" },
|
||||
{ "vibration": "entity_act" },
|
||||
{ "vibration": "entity_interact" }
|
||||
]
|
||||
},
|
||||
"set_property": {
|
||||
@@ -108,9 +128,9 @@
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"title": "Property",
|
||||
"type": ["string", "number", "integer", "boolean"],
|
||||
"type": [ "string", "number", "integer", "boolean" ],
|
||||
"description": "The value to set the property to.",
|
||||
"examples": [false, 0, 0.0, "math.random(0, 10)"]
|
||||
"examples": [ false, 0, 0.0, "math.random(0, 10)" ]
|
||||
},
|
||||
"examples": [
|
||||
{ "example:property": false },
|
||||
@@ -130,14 +150,14 @@
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^[^/].*$",
|
||||
"examples": ["say Hello World"]
|
||||
"examples": [ "say Hello World" ]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "The command to execute.",
|
||||
"examples": ["say Hello World"],
|
||||
"examples": [ "say Hello World" ],
|
||||
"pattern": "^[^/].*$"
|
||||
}
|
||||
}
|
||||
@@ -150,23 +170,23 @@
|
||||
"weighted_event_base": {
|
||||
"additionalProperties": false,
|
||||
"type": "object",
|
||||
"examples": [{}, { "add": { "component_groups": [] } }, { "remove": { "component_groups": [] } }],
|
||||
"examples": [ { }, { "add": { "component_groups": [ ] } }, { "remove": { "component_groups": [ ] } } ],
|
||||
"defaultSnippets": [
|
||||
{ "label": "New Add Event", "body": { "add": { "component_groups": ["$1"] } } },
|
||||
{ "label": "New Remove Event", "body": { "remove": { "component_groups": ["$1"] } } },
|
||||
{ "label": "New Add Event", "body": { "add": { "component_groups": [ "$1" ] } } },
|
||||
{ "label": "New Remove Event", "body": { "remove": { "component_groups": [ "$1" ] } } },
|
||||
{
|
||||
"label": "New Random Event",
|
||||
"body": {
|
||||
"randomize": [
|
||||
{ "add": { "component_groups": ["$1"] }, "weight": 1 },
|
||||
{ "add": { "component_groups": ["$2"] }, "weight": 1 }
|
||||
{ "add": { "component_groups": [ "$1" ] }, "weight": 1 },
|
||||
{ "add": { "component_groups": [ "$2" ] }, "weight": 1 }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "New Sequence Events",
|
||||
"body": {
|
||||
"sequence": [{ "add": { "component_groups": ["$1"] } }, { "add": { "component_groups": ["$2"] } }]
|
||||
"sequence": [ { "add": { "component_groups": [ "$1" ] } }, { "add": { "component_groups": [ "$2" ] } } ]
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -195,7 +215,7 @@
|
||||
"items": {
|
||||
"description": "Randomly selects one of the following items based upon their weight and the total weights.",
|
||||
"title": "Randomize",
|
||||
"examples": [{ "add": { "component_groups": ["foo:example"] }, "weight": 1 }],
|
||||
"examples": [ { "add": { "component_groups": [ "foo:example" ] }, "weight": 1 } ],
|
||||
"$ref": "#/definitions/weighted_event_base"
|
||||
}
|
||||
},
|
||||
@@ -224,9 +244,9 @@
|
||||
}
|
||||
},
|
||||
"examples": [
|
||||
{ "vibration": "shear"},
|
||||
{ "vibration": "entity_act"},
|
||||
{ "vibration": "entity_interact"}
|
||||
{ "vibration": "shear" },
|
||||
{ "vibration": "entity_act" },
|
||||
{ "vibration": "entity_interact" }
|
||||
]
|
||||
},
|
||||
"set_property": {
|
||||
@@ -235,9 +255,9 @@
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"title": "Property",
|
||||
"type": ["string", "number", "integer", "boolean"],
|
||||
"type": [ "string", "number", "integer", "boolean" ],
|
||||
"description": "The value to set the property to.",
|
||||
"examples": [false, 0, 0.0, "math.random(0, 10)"]
|
||||
"examples": [ false, 0, 0.0, "math.random(0, 10)" ]
|
||||
},
|
||||
"examples": [
|
||||
{ "example:property": false },
|
||||
@@ -257,14 +277,14 @@
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^[^/].*$",
|
||||
"examples": ["say Hello World"]
|
||||
"examples": [ "say Hello World" ]
|
||||
},
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"description": "The command to execute.",
|
||||
"examples": ["say Hello World"],
|
||||
"examples": [ "say Hello World" ],
|
||||
"pattern": "^[^/].*$"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user