From 31410166b8ecb27add56b4a93c0c17594373c5bd Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Tue, 7 Jun 2022 20:13:16 +0200 Subject: [PATCH] Added vibration to the interact component --- .../entities/format/components/interact.json | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/source/behavior/entities/format/components/interact.json b/source/behavior/entities/format/components/interact.json index 622e1bb4..d2d323c6 100644 --- a/source/behavior/entities/format/components/interact.json +++ b/source/behavior/entities/format/components/interact.json @@ -24,12 +24,30 @@ } } }, + "admire": { + "type": "boolean", + "default": false, + "description": "Enables the mob to admire the item", + "title": "Admire Item" + }, + "barter": { + "type": "boolean", + "default": false, + "description": "Enables the component to drop an item as a barter exchange.", + "title": "Barter" + }, "cooldown": { "type": "number", "default": 0, "description": "Time in seconds before this entity can be interacted with again.", "title": "Cooldown" }, + "cooldown_after_being_attacked": { + "type": "number", + "default": "", + "description": "Duration, in seconds, for which mob won't barter items if it was hurt", + "title": "Cooldown After Being Attacked" + }, "health_amount": { "type": "number", "default": 0, @@ -118,23 +136,10 @@ "description": "If true, the interaction will use an item.", "title": "Use Item" }, - "barter": { - "type": "boolean", - "default": false, - "description": "Enables the component to drop an item as a barter exchange.", - "title": "Barter" - }, - "admire": { - "type": "boolean", - "default": false, - "description": "Enables the mob to admire the item", - "title": "Admire Item" - }, - "cooldown_after_being_attacked": { - "type": "number", - "default": "", - "description": "Duration, in seconds, for which mob won't barter items if it was hurt", - "title": "Cooldown After Being Attacked" + "vibration": { + "title": "Vibration", + "type": "string", + "description": "Vibration to emit when the interaction occurs. Admitted values are entity_interact (used by default), shear, and none (no vibration emitted)." } } }