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

34 lines
1.7 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.minecraft:weapon",
2022-06-07 20:42:18 +02:00
"title": "Weapon",
"description": "Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.",
"type": "object",
"additionalProperties": false,
"properties": {
"on_hit_block": {
"title": "On Hit Block",
2022-07-22 19:41:04 +02:00
"description": "Trigger for letting you know when this item is used to hit a block.",
2022-06-07 20:42:18 +02:00
"type": "object",
"additionalProperties": false,
2022-07-22 19:41:04 +02:00
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "enum": ["self"] }
2022-06-07 20:42:18 +02:00
},
"on_hurt_entity": {
"title": "On Hurt Entity",
2022-07-22 19:41:04 +02:00
"description": "Trigger for letting you know when this item is used to hurt another mob.",
2022-06-07 20:42:18 +02:00
"type": "object",
"additionalProperties": false,
2022-07-22 19:41:04 +02:00
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "enum": ["self", "holder"] }
2022-06-07 20:42:18 +02:00
},
"on_not_hurt_entity": {
"title": "On Not Hurt Entity",
2022-07-22 19:41:04 +02:00
"description": "Trigger for letting you know when this item hit another actor, but didn't do damage.",
2022-06-07 20:42:18 +02:00
"type": "object",
"additionalProperties": false,
2022-07-22 19:41:04 +02:00
"event": { "type": "string", "title": "Event", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED.", "$comment": "UNDOCUMENTED", "enum": ["self"] }
2022-06-07 20:42:18 +02:00
}
}
}