![]() |
VOOZH | about |
This template can only be used as an argument to {{TradeTable}}
This template is designed to be used inline, as an unnamed parameter to {{TradeTable}}.
You can copy the blank examples below to easily fill in commonly used parameters:
|{{TradeLine|lvl=|slot=|want=|wantQuant=|give=|giveQuant=|multi=|maxTrades=|xpGain=}}
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| level | level lvl | The name of the villager level this trade is offered by
| String | required |
| slot | slot | The Bedrock Edition slot this trade is part of | Number | required |
| slotDraws | slotDraws | The amount of trades to be drawn for a Bedrock slot, overriding the default value (1). Set to 2 for villager trades that are not bound to a single specific slot (e.g. cartographer's journeyman trades, which can appear in slots 5-6). | Number | optional |
| want | want want1 | The name of the item the villager wants in this trade
| Page name | optional |
| wantQuant | wantQuant wantQuant1 | The quantity wanted by the villager in this trade
| Number | optional |
| want2 | want2 | Second item wanted by the villager in this trade
| Page name | optional |
| wantQuant2 | wantQuant2 | The quantity of the second item wanted by the villager in this trade.
| Number | optional |
| wantNote | wantNote | The reference name. To apply the same reference to more than one trade in a table, set wantNote to the same value in each trade, and set wantNoteText on ''one'' trade.
| String | optional |
| wantNoteText | wantNoteText | The text for the reference. Must only be set once per reference. Use wantNote to apply the same text to multiple trades in a table. | String | optional |
| multi | multi | The price multiplier for the trade. Must be either 0.05, or 0.2
| Number | required |
| give | give | The name of the item given by the villager in this trade
| Page name | optional |
| giveQuant | giveQuant | The quantity of item given by villager in this trade
| Number | optional |
| giveNote | giveNote | The reference name. To apply the same reference to more than one trade in a table, set wantNote to the same value in each trade, and set wantNoteText on ''one'' trade. | String | optional |
| giveNoteText | giveNoteText | The text for the reference. Must only be set once per reference. Use wantNote to apply the same text to multiple trades in a table. | String | optional |
| maxTrades | maxTrades | The maximum number of trades that can be executed before the villager must restock
| Number | required |
| xpGain | xpGain | The xp gained by the villager for each trade
| Number | required |
| weight | weight | The number of villager trade choices this line represents. Currently only used by "All color" trades, where each trade is actually 16 distinct color trades represented as one.
| Number | optional |
| overrideProbability | overrideProbability | Text to be displayed instead of the automatically calculated probability. Meant to be used for trades which have a varying probability depending on factors such as the villager's biome outfit. | String | optional |
| overrideProbabilityJE | overrideProbabilityJE | Text to be displayed instead of the automatically calculated Java Edition probability | String | optional |
| overrideProbabilityBE | overrideProbabilityBE | Text to be displayed instead of the automatically calculated Bedrock Edition probability | String | optional |