UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

49 lines 1.49 kB
{ "description": "Enables the component to drop an item as a barter exchange.", "fields": [ { "id": "barter_table", "description": "Loot table that's used to drop a random item.", "dataType": 8, "lookupId": "lootTable", "samples": { "/vanilla/behavior_pack/entities/piglin.json": [ { "path": "/minecraft:entity/component_groups/piglin_adult/minecraft:barter/", "content": "loot_tables/entities/piglin_barter.json" } ] }, "title": "Barter Table" }, { "id": "cooldown_after_being_attacked", "description": "Duration, in seconds, for which mob won't barter items if it was hurt.", "dataType": 18, "maxValue": 60, "samples": { "/vanilla/behavior_pack/entities/piglin.json": [ { "path": "/minecraft:entity/component_groups/piglin_adult/minecraft:barter/", "content": 20 } ] }, "defaultValue": 0, "title": "Cooldown After Being Attacked" } ], "title": "Barter", "samples": { "/vanilla/behavior_pack/entities/piglin.json": [ { "path": "/minecraft:entity/component_groups/piglin_adult/minecraft:barter/", "content": { "barter_table": "loot_tables/entities/piglin_barter.json", "cooldown_after_being_attacked": 20 } } ] }, "id": "minecraft:barter" }