Template:TradeLine
Usage[edit source]
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=}}
- give/want default to Emerald
- give/wantQuant defaults to 1
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 |
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 |