62 lines
1.8 KiB
JSON
62 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema",
|
|
"$id": "blockception.minecraft.behaviour.1.16.200.items.minecraft:weapon",
|
|
"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",
|
|
"description": "Trigger for letting you know when this item is used to hit a block",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"event": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED"
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED",
|
|
"enum": ["self"]
|
|
}
|
|
},
|
|
"on_hurt_entity": {
|
|
"title": "On hurt entity",
|
|
"description": "Trigger for letting you know when this item is used to hurt another mob",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"event": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED"
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED",
|
|
"enum": ["self", "holder"]
|
|
}
|
|
},
|
|
"on_not_hurt_entity": {
|
|
"title": "On not hurt entity",
|
|
"description": "Trigger for letting you know when this item hit another actor, but didn't do damage",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"event": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED"
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"title": "UNDOCUMENATED",
|
|
"description": "UNDOCUMENATED",
|
|
"enum": ["self"]
|
|
}
|
|
}
|
|
}
|
|
}
|