Files
minecraft-bedrock-json-schemas/source/behavior/items/format/events.json

85 lines
2.9 KiB
JSON
Raw Normal View History

2022-06-07 20:42:18 +02:00
{
2022-07-20 21:25:32 +02:00
"$id": "blockception.minecraft.behavior.items.events",
2022-06-07 20:42:18 +02:00
"title": "Events",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"properties": { "on_consume": { "$ref": "#/definitions/event_base" } },
"additionalProperties": { "$ref": "#/definitions/event_base" },
"definitions": {
"event_base": {
"title": "Event",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"$ref": "#/definitions/event_functions",
"properties": {
"sequence": {
"title": "Sequence",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "array",
"items": {
"title": "Sequence",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"$ref": "#/definitions/event_functions"
}
},
"randomize": {
"title": "Randomize",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "array",
"items": {
"title": "Randomize",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"$ref": "#/definitions/event_functions",
"required": ["weight"],
"properties": {
2022-07-22 19:41:04 +02:00
"weight": { "title": "Weight", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "type": "integer", "minimum": 0 }
2022-06-07 20:42:18 +02:00
}
}
},
"run_command": {
"title": "Run Command",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"additionalProperties": false,
"properties": {
"command": {
"title": "Command",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "array",
2022-07-22 19:41:04 +02:00
"items": { "type": "string", "title": "Command", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" }
2022-06-07 20:42:18 +02:00
},
2022-07-22 19:41:04 +02:00
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "enum": ["other"] }
2022-06-07 20:42:18 +02:00
}
}
}
},
"event_functions": {
"title": "Event",
2022-07-22 19:41:04 +02:00
"description": "UNDOCUMENTED.",
2022-06-07 20:42:18 +02:00
"$comment": "UNDOCUMENTED",
"type": "object",
"properties": {
"add_mob_effect": { "$ref": "./events/add_mob_effect.json" },
"damage": { "$ref": "./events/damage.json" },
"decrement_stack": { "$ref": "./events/decrement_stack.json" },
"remove_mob_effect": { "$ref": "./events/remove_mob_effect.json" },
"shoot": { "$ref": "./events/shoot.json" },
"swing": { "$ref": "./events/swing.json" },
"teleport": { "$ref": "./events/teleport.json" },
"transform_item": { "$ref": "./events/transform_item.json" }
}
}
}
}