Added vibration to the interact component

This commit is contained in:
DaanV2
2022-06-07 20:13:16 +02:00
parent 72ecf3bb95
commit 31410166b8

View File

@@ -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": { "cooldown": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "Time in seconds before this entity can be interacted with again.", "description": "Time in seconds before this entity can be interacted with again.",
"title": "Cooldown" "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": { "health_amount": {
"type": "number", "type": "number",
"default": 0, "default": 0,
@@ -118,23 +136,10 @@
"description": "If true, the interaction will use an item.", "description": "If true, the interaction will use an item.",
"title": "Use Item" "title": "Use Item"
}, },
"barter": { "vibration": {
"type": "boolean", "title": "Vibration",
"default": false, "type": "string",
"description": "Enables the component to drop an item as a barter exchange.", "description": "Vibration to emit when the interaction occurs. Admitted values are entity_interact (used by default), shear, and none (no vibration emitted)."
"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"
} }
} }
} }