trades:trade_entries
Table of Contents
Trade Entries
A trade entry determines what item stack to use in a trade.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
item | The item for the item stack. | An item | |
count | The count for the item stack. The actual count is picked randomly between the minimum and maximum and respects the item's minecraft:max_stack_size item component. | An optional integer range | 1 |
item_modifier | The item modifier to apply to the item stack. The item modifier uses the minecraft:trade loot context type. | An optional item modifier |
Example
{ "item": "minecraft:suspicious_stew", "item_modifier": { "function": "minecraft:set_stew_effect", "effects": [ { "type": "minecraft:saturation", "duration": 7.0 } ] } }
trades/trade_entries.txt · Last modified: 2024/05/15 15:14 by errorcraft