UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

120 lines 3.2 kB
{ "fields": [ { "id": "cooldown", "title": "Cooldown", "description": "An optional cool down in seconds to prevent spamming interactions.", "defaultValue": 0, "dataType": 3 }, { "id": "items", "title": "Items", "description": "The list of items that can be given to the entity to place in their inventory.", "dataType": 17 }, { "id": "on_give", "title": "On Give", "description": "Event to fire when the correct item is given.", "dataType": 22 }, { "id": "triggers", "title": "Triggers", "dataType": 16, "subForm": { "id": "triggers", "title": "Triggers", "fields": [ { "id": "cooldown", "title": "Cooldown", "dataType": 7, "samples": { "/vanilla/behavior_pack/entities/panda.json": [ { "path": "cooldown", "content": 3 } ] } }, { "id": "items", "title": "Items", "dataType": 2, "samples": { "/vanilla/behavior_pack/entities/panda.json": [ { "path": "items", "content": [ "bamboo", "cake" ] } ] } }, { "id": "on_give", "title": "On_give", "dataType": 2, "samples": { "/vanilla/behavior_pack/entities/panda.json": [ { "path": "on_give", "content": { "event": "minecraft:on_calm", "target": "self" } } ] } } ] }, "samples": { "/vanilla/behavior_pack/entities/panda.json": [ { "path": "/minecraft:entity/components/minecraft:giveable/", "content": { "cooldown": 3, "items": [ "bamboo", "cake" ], "on_give": { "event": "minecraft:on_calm", "target": "self" } } } ] } } ], "description": "Defines sets of items that can be used to trigger events when used on this entity. The item will also be taken and placed in the entity's inventory.", "title": "Giveable", "samples": { "/vanilla/behavior_pack/entities/panda.json": [ { "path": "/minecraft:entity/components/minecraft:giveable/", "content": { "triggers": { "cooldown": 3, "items": [ "bamboo", "cake" ], "on_give": { "event": "minecraft:on_calm", "target": "self" } } } } ] }, "id": "minecraft:giveable" }