Update interact.json

Added properties
Updated titles
This commit is contained in:
ChibiMango
2022-07-13 22:09:39 +01:00
parent 0dada3bc48
commit c3ace0e25e

View File

@@ -11,9 +11,9 @@
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"add_items": { "add_items": {
"title": "Add Items",
"type": "object", "type": "object",
"description": "Loot table with items to add to the player's inventory upon successful interaction.", "description": "Loot table with items to add to the player's inventory upon successful interaction.",
"title": "Add Items",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"table": { "table": {
@@ -25,44 +25,58 @@
} }
}, },
"cooldown": { "cooldown": {
"title": "cooldown", "title": "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."
}, },
"admire": {
"title": "Admire",
"type": "boolean",
"default": false,
"description": "Allows entity to admire the item. Requires \"minecraft:admire_item\" and \"minecraft:behavior.admire_item\" to work.",
"$comment": "UNDOCUMENTED"
},
"barter": {
"title": "Barter",
"type": "boolean",
"default": false,
"description": "Allows entity to barter with the item. Requires \"minecraft:barter\" to work.",
"$comment": "UNDOCUMENTED"
},
"cooldown_after_being_attacked": { "cooldown_after_being_attacked": {
"title": "cooldown after being attacked", "title": "Cooldown After Being Attacked",
"type": "number", "type": "number",
"default": 0, "default": 0,
"description": "Time in seconds before this entity can be interacted with after being attacked." "description": "Time in seconds before this entity can be interacted with after being attacked."
}, },
"health_amount": { "health_amount": {
"title": "health amount", "title": "Health Amount",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "The amount of health this entity will recover or hurt when interacting with this item. Negative values will harm the entity." "description": "The amount of health this entity will recover or hurt when interacting with this item. Negative values will harm the entity."
}, },
"hurt_item": { "hurt_item": {
"title": "hurt item", "title": "Hurt Item",
"type": "integer", "type": "integer",
"default": 0, "default": 0,
"description": "The amount of damage the item will take when used to interact with this entity. A value of 0 means the item won't lose durability." "description": "The amount of damage the item will take when used to interact with this entity. A value of 0 means the item won't lose durability."
}, },
"interact_text": { "interact_text": {
"title": "interact text", "title": "Interact Text",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "Text to show when the player is able to interact in this way with this entity when playing with Touch-screen controls." "description": "Text to show when the player is able to interact in this way with this entity when playing with Touch-screen controls."
}, },
"on_interact": { "on_interact": {
"title": "On Interact",
"$ref": "../types/trigger.json", "$ref": "../types/trigger.json",
"description": "Event to fire when the interaction occurs.", "description": "Event to fire when the interaction occurs."
"title": "On Interact"
}, },
"particle_on_start": { "particle_on_start": {
"title": "Particle On Start",
"type": "object", "type": "object",
"description": "Particle effect that will be triggered at the start of the interaction.", "description": "Particle effect that will be triggered at the start of the interaction.",
"title": "Particle On Start",
"properties": { "properties": {
"particle_offset_towards_interactor": { "particle_offset_towards_interactor": {
"type": "boolean", "type": "boolean",
@@ -82,16 +96,16 @@
} }
}, },
"play_sounds": { "play_sounds": {
"title": "Play Sounds",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "List of sounds to play when the interaction occurs.", "description": "List of sounds to play when the interaction occurs."
"title": "Play Sounds"
}, },
"spawn_entities": { "spawn_entities": {
"title": "Spawn Entities",
"type": "string", "type": "string",
"default": "", "default": "",
"description": "List of entities to spawn when the interaction occurs.", "description": "List of entities to spawn when the interaction occurs."
"title": "Spawn Entities"
}, },
"spawn_items": { "spawn_items": {
"type": "object", "type": "object",
@@ -108,21 +122,21 @@
} }
}, },
"swing": { "swing": {
"title": "Swing",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, the player will do the `swing` animation when interacting with this entity.", "description": "If true, the player will do the \"swing\" animation when interacting with this entity."
"title": "Swing"
}, },
"transform_to_item": { "transform_to_item": {
"type": "string",
"title": "Transform To Item", "title": "Transform To Item",
"type": "string",
"description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue" "description": "The feed item used will transform to this item upon successful interaction. Format: itemName:auxValue"
}, },
"use_item": { "use_item": {
"title": "Use Item",
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description": "If true, the interaction will use an item.", "description": "If true, the interaction will use an item."
"title": "Use Item"
}, },
"vibration": { "vibration": {
"title": "Vibration", "title": "Vibration",
@@ -130,14 +144,14 @@
"description": "Vibration to emit when the interaction occurs. Admitted values are entity_interact (used by default), shear, and none (no vibration emitted)." "description": "Vibration to emit when the interaction occurs. Admitted values are entity_interact (used by default), shear, and none (no vibration emitted)."
}, },
"give_item": { "give_item": {
"type": "boolean",
"title": "Give Item", "title": "Give Item",
"type": "boolean",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"description": "UNDOCUMENTED Item to give to the player upon successful interaction." "description": "UNDOCUMENTED Item to give to the player upon successful interaction."
}, },
"take_item": { "take_item": {
"type": "boolean",
"title": "Take Item", "title": "Take Item",
"type": "boolean",
"$comment": "UNDOCUMENTED", "$comment": "UNDOCUMENTED",
"description": "UNDOCUMENTED Takes an item from the player" "description": "UNDOCUMENTED Takes an item from the player"
} }