Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Villager trade definition: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
 
Line 14: Line 14:
** {{nbt|compound|gives}}: The item given by the trade
** {{nbt|compound|gives}}: The item given by the trade
*** {{nbt inherit/itemnoslot}}
*** {{nbt inherit/itemnoslot}}
** {{nbt|list|given_item_modifiers}}: Optional list of modifiers to apply to the item given by the trade
** {{nbt|list|given_item_modifier}}: Optional list of modifiers to apply to the item given by the trade
*** {{nbt|compound}}: An inline [[Minecraft:item modifier]]. The {{cd|reference}} modifier is not supported.
*** {{nbt|compound}}: An inline [[Minecraft:item modifier]]. The {{cd|reference}} modifier is not supported.
** {{nbt|int}}{{nbt|float}}{{nbt|compound|max_uses}}: An inline value of a {{cd|context_int_provider}} (defaults to {{cd|4}}) determining the maximum amount of uses of this trade. Values below 1 are treated as 1.
** {{nbt|int}}{{nbt|float}}{{nbt|compound|max_uses}}: An inline value of a {{cd|context_int_provider}} (defaults to {{cd|4}}) determining the maximum amount of uses of this trade. Values below 1 are treated as 1.

Latest revision as of 11:24, 19 September 2026

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

History

Template:HistoryTable

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Handelsdefinition Minecraft:ja:取引のカスタマイズ Minecraft:pt:Definição de comércio do aldeão Minecraft:zh:村民交易定义格式