trades:trade_modifiers:item_from_type
Table of Contents
minecraft:item_from_type
Picks an item to use for the given item instead from the specified Villager type. It will copy the count and components to the new item stack. If the Villager type is not present in the map, it will use the existing item stack instead.
Fields
Name | Description | Type | Default Value |
---|---|---|---|
types | The item to pick depending on the Villager's type | A map of Villager types to items |
Example
{ "type": "minecraft:item_from_type", "types": { "minecraft:desert": "minecraft:jungle_boat", "minecraft:jungle": "minecraft:jungle_boat", "minecraft:plains": "minecraft:oak_boat", "minecraft:savanna": "minecraft:acacia_boat", "minecraft:snow": "minecraft:spruce_boat", "minecraft:swamp": "minecraft:dark_oak_boat", "minecraft:taiga": "minecraft:spruce_boat" } }
trades/trade_modifiers/item_from_type.txt · Last modified: 2024/05/14 21:53 by errorcraft