Updated interact

This commit is contained in:
DaanV2
2022-02-09 13:33:20 +01:00
parent 06b9557f50
commit f05f6179c4

View File

@@ -4,7 +4,7 @@
"title": "Interact",
"description": "Defines interactions with this entity.",
"additionalProperties": false,
"examples": [{ "interactions": [] }],
"examples": [{ "interactions": [{}] }],
"definitions": {
"interaction_spec": {
"type": "object",
@@ -30,6 +30,12 @@
"description": "Time in seconds before this entity can be interacted with again.",
"title": "Cooldown"
},
"health_amount": {
"type": "number",
"default": 0,
"description": "Amount of health to add to the entity upon successful interaction.",
"title": "Health Amount"
},
"hurt_item": {
"type": "integer",
"default": 0,