From fc71a2ba60b1a4677f6f1b04ab23e3a328817cf7 Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Wed, 15 Sep 2021 11:12:30 +0200 Subject: [PATCH] Updating on_equip / on_unequip #6 --- .../entities/1.8.0/components/minecraft.equippable.json | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/behavior/entities/1.8.0/components/minecraft.equippable.json b/source/behavior/entities/1.8.0/components/minecraft.equippable.json index d4badea8..6dae8a3c 100644 --- a/source/behavior/entities/1.8.0/components/minecraft.equippable.json +++ b/source/behavior/entities/1.8.0/components/minecraft.equippable.json @@ -25,22 +25,19 @@ }, "title": "Accepted Items" }, - "item": { "type": "string", "default": 0, "description": "Identifier of the item that can be equipped for this slot", "title": "Item" }, + "item": { "type": "string", "description": "Identifier of the item that can be equipped for this slot", "title": "Item" }, "interact_text": { "type": "string", - "default": 0, "description": "Text to be displayed when the entity can be equipped with this item when playing with Touch-screen controls", "title": "Interact Text" }, "on_equip": { - "type": "string", - "default": 0, + "$ref": "../types/event.json", "description": "Event to trigger when this entity is equipped with this item", "title": "On Equip" }, "on_unequip": { - "type": "string", - "default": 0, + "$ref": "../types/event.json", "description": "Event to trigger when this item is removed from this entity", "title": "On Unequip" }