{
    "pools": [
      {
        "rolls": 1,
        "entries": [
          {
            "type": "minecraft:item",
            "name": "minecraft:red_dye",
            "functions": [
              {
                "function": "set_name",
                "name": [
                  {
                    "text": "Epic Charm",
                    "color": "red",
                    "italic": false
                  }
                ],
                "target": "item_name"
              },
              {
                "function": "set_lore",
                "lore": [
                  {
                    "color": "gray",
                    "text": "Right click to increase ",
                    "italic": false
                  },
                  {
                    "color": "gray",
                    "text": "treasure spawning for ",
                    "italic": false
                  },
                  {
                    "color": "gray",
                    "text": "5 minutes ",
                    "italic": false
                  }
                ],
                "mode": "append"
              },
              {
                "function": "minecraft:set_components",
                "components": {
                  "use_cooldown": {
                    "seconds": 0.5,
                    "cooldown_group": "mt:charms"
                  },
                  "minecraft:enchantment_glint_override": true,
                  "minecraft:consumable": {
                    "consume_seconds": 0,
                    "sound": "intentionally_empty",
                    "has_consume_particles": false,
                    "on_consume_effects": [
                      {
                        "type": "minecraft:play_sound",
                        "sound": "entity.player.levelup"
                      }
                    ]
                  },
                  "minecraft:custom_data": {
                    "mt": "epic_charm"
                  },
                  "minecraft:max_stack_size": 16
                }
              }
            ]
          }
        ]
      }
    ]
  }
  