Refactoring
This commit is contained in:
84
source/behavior/items/format/events.json
Normal file
84
source/behavior/items/format/events.json
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.items.events",
|
||||
"title": "Events",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"properties": { "on_consume": { "$ref": "#/definitions/event_base" } },
|
||||
"additionalProperties": { "$ref": "#/definitions/event_base" },
|
||||
"definitions": {
|
||||
"event_base": {
|
||||
"title": "Event",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"$ref": "#/definitions/event_functions",
|
||||
"properties": {
|
||||
"sequence": {
|
||||
"title": "Sequence",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Sequence",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/event_functions"
|
||||
}
|
||||
},
|
||||
"randomize": {
|
||||
"title": "Randomize",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Randomize",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"$ref": "#/definitions/event_functions",
|
||||
"required": ["weight"],
|
||||
"properties": {
|
||||
"weight": { "title": "Weight", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "type": "integer", "minimum": 0 }
|
||||
}
|
||||
}
|
||||
},
|
||||
"run_command": {
|
||||
"title": "Run Command",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"command": {
|
||||
"title": "Command",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$comment": "UNDOCUMENTED",
|
||||
"type": "array",
|
||||
"items": { "type": "string", "title": "Command", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" }
|
||||
},
|
||||
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["other"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"event_functions": {
|
||||
"title": "Event",
|
||||
"description": "UNDOCUMENTED",
|
||||
"$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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user