Refactored item
This commit is contained in:
20
source/behavior/items/format/components/on_use.json
Normal file
20
source/behavior/items/format/components/on_use.json
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.1.16.200.items.minecraft:on_use",
|
||||
"title": "On Use",
|
||||
"description": "The on_use item component allows you to receive an event when the item is used.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["on_use"],
|
||||
"properties": {
|
||||
"on_use": {
|
||||
"title": "On Use",
|
||||
"description": "Event trigger for when the item is used.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
|
||||
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user