{
  "tiers": [
    {
      "total_exp_required": 0,
      "groups": [
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:paper",
                  "quantity": 24,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1
                }
              ],
              "trader_exp": 1,
              "max_uses": 6,
              "reward_exp": true
            }
          ]
        },
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 6,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:bookshelf",
                  "quantity": 1
                }
              ],
              "trader_exp": 2,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 15,
                  "price_multiplier": 0.1
                },
                {
                  "item": "minecraft:book",
                  "quantity": 1
                }
              ],
              "gives": [
                {
                  "item": "minecraft:book",
                  "quantity": 1,
                  "functions": [
                    {
                      "function": "enchant_book_for_trading",
                      "base_cost": 2,
                      "base_random_cost": 5,
                      "per_level_random_cost": 10,
                      "per_level_cost": 3
                    }
                  ]
                }
              ],
              "trader_exp": 2,
              "max_uses": 2,
              "reward_exp": true
            }
          ]
        }
      ]
    },
    {
      "total_exp_required": 10,
      "groups": [
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:book",
                  "quantity": 4,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1
                }
              ],
              "trader_exp": 5,
              "max_uses": 5,
              "reward_exp": true
            }
          ]
        },
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:lantern",
                  "quantity": 1
                }
              ],
              "trader_exp": 10,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 3,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "legacy:contract",
                  "quantity": 1
                }
              ],
              "trader_exp": 10,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 15,
                  "price_multiplier": 0.1
                },
                {
                  "item": "minecraft:book",
                  "quantity": 1
                }
              ],
              "gives": [
                {
                  "item": "minecraft:book",
                  "quantity": 1,
                  "functions": [
                    {
                      "function": "enchant_book_for_trading",
                      "base_cost": 2,
                      "base_random_cost": 5,
                      "per_level_random_cost": 10,
                      "per_level_cost": 3
                    }
                  ]
                }
              ],
              "trader_exp": 10,
              "max_uses": 2,
              "reward_exp": true
            }
          ]
        }
      ]
    },
    {
      "total_exp_required": 60,
      "groups": [
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:dye:0",
                  "quantity": 5,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1
                }
              ],
              "trader_exp": 10,
              "max_uses": 5,
              "reward_exp": true
            }
          ]
        },
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:glass",
                  "quantity": 4
                }
              ],
              "trader_exp": 20,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 15,
                  "price_multiplier": 0.1
                },
                {
                  "item": "minecraft:book",
                  "quantity": 1
                }
              ],
              "gives": [
                {
                  "item": "minecraft:book",
                  "quantity": 1,
                  "functions": [
                    {
                      "function": "enchant_book_for_trading",
                      "base_cost": 2,
                      "base_random_cost": 5,
                      "per_level_random_cost": 10,
                      "per_level_cost": 3
                    }
                  ]
                }
              ],
              "trader_exp": 20,
              "max_uses": 2,
              "reward_exp": true
            }
          ]
        }
      ]
    },

    {
      "total_exp_required": 160,
      "groups": [
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:writable_book",
                  "quantity": 1
                }
              ],
              "gives": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 1
                }
              ],
              "trader_exp": 15,
              "max_uses": 2,
              "reward_exp": true
            }
          ]
        },
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 4,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:compass",
                  "quantity": 1
                }
              ],
              "trader_exp": 30,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 5,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:clock",
                  "quantity": 1
                }
              ],
              "trader_exp": 30,
              "max_uses": 5,
              "reward_exp": true
            },
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 15,
                  "price_multiplier": 0.1
                },
                {
                  "item": "minecraft:book",
                  "quantity": 1
                }
              ],
              "gives": [
                {
                  "item": "minecraft:book",
                  "quantity": 1,
                  "functions": [
                    {
                      "function": "enchant_book_for_trading",
                      "base_cost": 2,
                      "base_random_cost": 5,
                      "per_level_random_cost": 10,
                      "per_level_cost": 3
                    }
                  ]
                }
              ],
              "trader_exp": 30,
              "max_uses": 2,
              "reward_exp": true
            }
          ]
        }
      ]
    },
    {
      "total_exp_required": 310,
      "groups": [
        {
          "num_to_select": 1,
          "trades": [
            {
              "wants": [
                {
                  "item": "minecraft:emerald",
                  "quantity": 20,
                  "price_multiplier": 0.05
                }
              ],
              "gives": [
                {
                  "item": "minecraft:nametag",
                  "quantity": 1
                }
              ],
              "trader_exp": 0,
              "max_uses": 5,
              "reward_exp": true
            }
          ]
        }
      ]
    }
  ]
}