97 lines
2.8 KiB
JSON
97 lines
2.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.behaviour.1.16.200.items.events",
|
|
"title": "Events",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "object",
|
|
"properties": {
|
|
"on_consume": {
|
|
"$ref": "#/definitions/event_base"
|
|
}
|
|
},
|
|
"additionalProperties": {
|
|
"$ref": "#/definitions/event_base"
|
|
},
|
|
"definitions": {
|
|
"event_base": {
|
|
"title": "Event",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"$ref": "#/definitions/event_functions",
|
|
"properties": {
|
|
"sequence": {
|
|
"title": "Sequence",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "array",
|
|
"items": {
|
|
"title": "Sequence",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "object",
|
|
"$ref": "#/definitions/event_functions"
|
|
}
|
|
},
|
|
"randomize": {
|
|
"title": "Randomize",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "array",
|
|
"items": {
|
|
"title": "Randomize",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "object",
|
|
"$ref": "#/definitions/event_functions",
|
|
"required": ["weight"],
|
|
"properties": {
|
|
"weight": {
|
|
"title": "Weight",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "integer",
|
|
"minimum": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"run_command": {
|
|
"title": "Run command",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"command": {
|
|
"title": "Command",
|
|
"description": "UNDOCUMENTATED",
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"title": "Command",
|
|
"description": "UNDOCUMENTATED"
|
|
}
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"title": "Target",
|
|
"description": "UNDOCUMENTATED",
|
|
"enum": ["other"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"event_functions": {
|
|
"title": "Event",
|
|
"description": "UNDOCUMENTATED",
|
|
"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" }
|
|
}
|
|
}
|
|
}
|
|
}
|