Refactored item

This commit is contained in:
DaanV2
2022-06-07 20:49:57 +02:00
parent 10417c8ec2
commit bbd36afa70
27 changed files with 105 additions and 103 deletions

View File

@@ -0,0 +1,33 @@
{
"$id": "blockception.minecraft.behavior.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": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "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": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "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": "Event", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED" },
"target": { "type": "string", "title": "Target", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "enum": ["self"] }
}
}
}