2022-06-07 20:42:18 +02:00
|
|
|
{
|
2022-07-20 21:25:32 +02:00
|
|
|
"$id": "blockception.minecraft.behavior.items.minecraft:on_use",
|
2022-06-07 20:42:18 +02:00
|
|
|
"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": {
|
2023-08-17 11:04:39 -07:00
|
|
|
"event": { "type": "string", "title": "Event", "description": "Event trigger for when the item is used."},
|
|
|
|
|
"target": { "type": "string", "title": "Target", "description": "Event Target.", "enum": ["self"] }
|
2022-06-07 20:42:18 +02:00
|
|
|
}
|
|
|
|
|
}
|
2023-08-17 11:04:39 -07:00
|
|
|
},
|
|
|
|
|
"examples": [
|
|
|
|
|
{
|
|
|
|
|
"on_use": "minecraft:entity_transformed"
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-06-07 20:42:18 +02:00
|
|
|
}
|