{
  "type": "minecraft:command",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:enchant_randomly",
              "enchantments": [
                "minecraft:knockback",
                "minecraft:efficiency",
                "minecraft:smite",
                "minecraft:depth_strider",
                "minecraft:projectile_protection",
                "minecraft:protection",
                "minecraft:fortune"
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{nitLibBook:1b}"
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:enchant_randomly",
              "enchantments": [
                "minecraft:fire_protection",
                "minecraft:feather_falling",
                "minecraft:blast_protection",
                "minecraft:aqua_affinity",
                "minecraft:sharpness",
                "minecraft:looting",
                "minecraft:unbreaking"
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{nitLibBook:2b}"
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:book",
          "functions": [
            {
              "function": "minecraft:enchant_randomly",
              "enchantments": [
                "minecraft:fire_aspect",
                "minecraft:silk_touch",
                "minecraft:unbreaking",
                "minecraft:infinity",
                "minecraft:loyalty",
                "minecraft:mending",
                "minecraft:luck_of_the_sea"
              ]
            },
            {
              "function": "minecraft:set_nbt",
              "tag": "{nitLibBook:3b}"
            }
          ]
        }
      ]
    }
  ]
}