{
  "name": "fnar:loot_enchanting",
  "lootRules": [
    {"level": [0, 1, 2, 3, 4], "type": "ENCHANTING", "loot": [{"data": {"name": "minecraft:experience_bottle", "min": 0, "max": 3}, "weight": 5}], "each": true, "quantity": 3},
    {"level": [0, 1, 2, 3, 4], "type": "ENCHANTING", "loot": [{"data": {"name": "minecraft:dye", "meta": 4, "min": 1, "max": 3}, "weight": 1}], "each": true, "quantity": 1},
    {"level": [0, 1, 2, 3, 4], "type": "ENCHANTING", "loot": [{"data": {"name": "minecraft:book"}, "weight": 1}], "each": true, "quantity": 1},
    {
      "level": [0],
      "type": "ENCHANTING",
      "each": true,
      "quantity": 1,
      "loot": [
        {"data": {"type": "enchanted_book", "ench": 5}, "weight": 1},
        {"data": {"type": "enchanted_book", "ench": 10}, "weight": 1}
      ]
    },
    {
      "level": [1],
      "type": "ENCHANTING",
      "each": true,
      "quantity": 1,
      "loot": [
        {"data": {"type": "enchanted_book", "ench": 10}, "weight": 1},
        {"data": {"type": "enchanted_book", "ench": 15}, "weight": 1}
      ]
    },
    {
      "level": [2],
      "type": "ENCHANTING",
      "each": true,
      "quantity": 1,
      "loot": [
        {"data": {"type": "enchanted_book", "ench": 15}, "weight": 1},
        {"data": {"type": "enchanted_book", "ench": 20}, "weight": 1}
      ]
    },
    {
      "level": [3],
      "type": "ENCHANTING",
      "each": true,
      "quantity": 1,
      "loot": [
        {"data": {"type": "enchanted_book", "ench": 20}, "weight": 1},
        {"data": {"type": "enchanted_book", "ench": 25}, "weight": 1}
      ]
    },
    {
      "level": [4],
      "type": "ENCHANTING",
      "each": true,
      "quantity": 1,
      "loot": [
        {"data": {"type": "enchanted_book", "ench": 25}, "weight": 1},
        {"data": {"type": "enchanted_book", "ench": 30}, "weight": 1}
      ]
    }
  ]
}
