Minecraft:Villager trade definition
From SAS Gaming Wiki
More actions
Villager Minecraft:trades are stored as Minecraft:JSON files within a Minecraft:data pack in the path Template:Cd. Despite their name, they also control the trades of Minecraft:wandering traders.
JSON format
- Template:Nbt: The root object.
- Template:Nbt: The item needed for the trade (i.e. the price)
- Template:Nbt: Secondary item needed for the trade
- Same format as Template:Nbt
- Template:Nbt: The item given by the trade
- Template:Nbt: Optional list of modifiers to apply to the item given by the trade
- Template:Nbt: An inline Minecraft:item modifier. The Template:Cd modifier is not supported.
- Template:NbtTemplate:NbtTemplate:Nbt: Optional Minecraft:number provider (defaults to Template:Cd, minimum Template:Cd) determining the maximum amount of uses of this trade.
- Template:NbtTemplate:NbtTemplate:Nbt: Optional Minecraft:number provider (defaults to Template:Cd, minimum Template:Cd) determining how much reputation (such as discounts and penalties) affect the count of Template:Nbt. Template:More info
- Template:NbtTemplate:NbtTemplate:Nbt: Optional Minecraft:number provider (defaults to Template:Cd, minimum Template:Cd) determining how much xp the merchant gets when the trade is done.
- Template:NbtTemplate:Nbt: Optional Minecraft:predicate on the merchant that needs to pass for this trade to be offered. The Template:Cd predicate is not supported.
- Template:NbtTemplate:Nbt: Optional — Template:Json ref that when present after Template:Nbt is run double the count of the Template:Nbt item (when the Template:Cd Minecraft:item component is present).
History
Template:Navbox Java Edition technical
Minecraft:de:Handelsdefinition Minecraft:ja:取引のカスタマイズ Minecraft:pt:Definição de comércio do aldeão Minecraft:zh:村民交易定义格式