custom advancements not working (1.21.4)

(reposted using my "work" account) So I'm new to datapacks and I'm trying to make custom advancements, and I just can't get it to work. I have the files set up as datapacks>cactuar's magic>data>cactuars_magic>advancement>magic>root.json, that root.json looks like this and I can't get it to work,

{
  "display": {
    "icon": {
      "id": "minecraft:book",
      "count": 1
    },
    "title": "Magic",
    "description": "Magic stuff",
    "background": "minecraft:textures/block/diamond_block.png",
    "frame": "task",
    "show_toast": false,
    "announce_to_chat": false,
    "hidden": false
  },
  "criteria": {
    "Magic": {
      "trigger": "minecraft:tick"
    }
  }
}
Continue to help post