{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:recovery_compass",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:consumable": {
                  "consume_seconds": 999999,
                  "animation": "none"
                },
                "minecraft:food": {
                  "nutrition": 0,
                  "saturation": 0,
                  "can_always_eat": true
                },
                "minecraft:item_model": "magical_addons:sparkstone_orb",
                "minecraft:rarity": "uncommon",
                "minecraft:item_name": {
                  "translate": "item.magical_addons.sparkstone_orb"
                },
                "minecraft:custom_data": {
                  "magical_addons": {
                    "id": "sparkstone_orb"
                  }
                },
                "minecraft:max_damage": 50,
                "minecraft:damage": 0,
                "minecraft:tool": {
                  "rules": [],
                  "damage_per_block": 0
                },
                "minecraft:max_stack_size": 1
              }
            }
          ]
        }
      ],
      "functions": [
        {
          "function": "minecraft:set_damage",
          "damage": {
            "type": "minecraft:score",
            "target": "this",
            "score": "maddons.idamage",
            "scale": 0.02
          },
          "conditions": [
            {
              "condition": "minecraft:entity_properties",
              "entity": "this",
              "predicate": {
                "type": "minecraft:item_display",
                "nbt": "{Tags:[maddons.wizarding_table]}"
              }
            }
          ]
        }
      ]
    }
  ]
}