Skip to content

Instantly share code, notes, and snippets.

@kahomayo
Created November 21, 2020 10:33
Show Gist options
  • Save kahomayo/7f668a0144369a7e968f583f175dba04 to your computer and use it in GitHub Desktop.
Save kahomayo/7f668a0144369a7e968f583f175dba04 to your computer and use it in GitHub Desktop.
A list of all trades in 12w21a

21w21a Trades

By Profession

Profession Table Item Chance of being added
0 A wheat 0.9
0 A cloth 0.5
0 A chickenRaw 0.5
0 B bread 0.9
0 B melon 0.3
0 B apple 0.3
0 B cookie 0.3
0 B shears 0.3
0 B flintAndSteel 0.3
0 B chickenCooked 0.3
1 A paper 0.8
1 A book 0.8
1 B bookshelf 0.8
1 B glass 0.2
1 B compass 0.2
2 A eyeOfEnder 0.5
2 A rottenFlesh 0.5
2 B expBottle 0.2
2 B redstone 0.4
2 B lightgem 0.3
3 A coal 0.7
3 A ingotIron 0.5
3 A ingotGold 0.5
3 A diamond 0.5
3 B swordIron 0.5
3 B swordDiamond 0.5
3 B hatchetIron 0.3
3 B hatchetDiamond 0.3
3 B pickaxeIron 0.5
3 B pickaxeDiamond 0.5
3 B shovelIron 0.2
3 B shovelDiamond 0.2
3 B hoeIron 0.2
3 B hoeDiamond 0.2
3 B bootsIron 0.2
3 B bootsDiamond 0.2
3 B helmetIron 0.2
3 B helmetDiamond 0.2
3 B chestplateIron 0.2
3 B chestPlateDiamond 0.2
3 B leggingsIron 0.2
3 B leggingsDiamond 0.2
3 B bootsChain 0.1
3 B helmetChain 0.1
3 B chestplateChain 0.1
3 B leggingsChain 0.1
4 A coal 0.7
4 A porkchopRaw 0.5
4 A beefRaw 0.5
4 B saddle 0.1
4 B chestplateCloth 0.3
4 B bootsCloth 0.3
4 B helmetCloth 0.3
4 B leggingsCloth 0.3
4 B porkchopCooked 0.3
4 B beefCooked 0.3

If no trades were added:

Profession Table Item Chance of being added
* A ingotGold 1.0

The set of trades is then shuffled and the first trade is unlocked.

By Table

Table A

If otem is not in table: quantity is 1. If minimum is greater maximum: quantity is minimum. Otherwise: quantity is uniformly distributed in [minimum, maximum) (i.e. maximum is not a possible value).

Villager sells quantity of item for 1 emerald.

Item Minimum Maximum
coal 16 24
ingotIron 8 10
ingotGold 8 10
diamond 4 6
paper 22 30
book 12 15
enderPearl 3 4
eyeOfEnder 2 3
porkchopRaw 14 18
beefRaw 14 18
chickenRaw 14 18
seeds 34 48
seeds_melon 30 38
seeds_pumpkin 30 38
wheat 18 22
cloth 14 22
rottenFlesh 36 64

Table B

If Item is not in table: quantity is 1. If minimum is greater maximum: quantity is minimum. Otherwise: quantity is uniformly distributed in [minimum, maximum) (i.e. maximum is not a possible value).

If quantity is negative: villager buys -quantity items for one emerald. Else: villager sells 1 Item for quentity emeralds.

Item Minimum Maximum
flintAndSteel 3 4
shears 3 4
swordIron 7 11
swordDiamond 12 14
hatchetIron 6 8
hatchetDiamond 9 12
pickaxeIron 7 9
pickaxeDiamond 10 12
shovelIron 4 6
shovelDiamond 7 8
hoeIron 4 6
hoeDiamond 7 8
bootsIron 4 6
bootsDiamond 7 8
helmetIron 4 6
helmetDiamond 7 8
chestplateIron 10 14
chestPlateDiamond 16 19
leggingsIron 8 10
leggingsDiamond 11 14
bootsChain 5 7
helmetChain 5 7
chestplateChain 11 15
leggingsChain 9 11
bread -4 -2
melon -8 -4
apple -8 -4
cookie -10 -7
glass -5 -3
bookshelf 3 4
chestplateCloth 4 5
bootsCloth 2 4
helmetCloth 2 4
leggingsCloth 2 4
saddle 6 8
expBottle -4 -1
redstone -4 -1
compass 10 12
lightgem -3 -1
porkchopCooked -7 -5
beefCooked -7 -5
chickenCooked -8 -6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment