{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:spawner",
          "conditions": [
            {
              "condition": "minecraft:any_of",
              "terms": [
                {
                  "condition": "minecraft:all_of",
                  "terms": [
                    {
                      "condition": "minecraft:match_tool",
                      "predicate": {
                        "predicates": {
                          "minecraft:custom_data": "{spawnerchance:tag}"
                        }
                      }
                    },
                    {
                      "condition": "minecraft:entity_properties",
                      "entity": "this",
                      "predicate": {
                        "nbt": "{Tags:[salvagespawner]}"
                      }
                    },
                    {
                      "condition": "minecraft:random_chance",
                      "chance": 0.666
                    }
                  ]
                },
                {
                  "condition": "minecraft:all_of",
                  "terms": [
                    {
                      "condition": "minecraft:any_of",
                      "terms": [
                        {
                          "condition": "minecraft:entity_properties",
                          "entity": "this",
                          "predicate": {
                            "nbt": "{Tags:[salvagespawner]}"
                          }
                        },
                        {
                          "condition": "minecraft:match_tool",
                          "predicate": {
                            "predicates": {
                              "minecraft:custom_data": "{spawnerchance:tag}"
                            }
                          }
                        }
                      ]
                    },
                    {
                      "condition": "minecraft:inverted",
                      "term": {
                        "condition": "minecraft:all_of",
                        "terms": [
                          {
                            "condition": "minecraft:entity_properties",
                            "entity": "this",
                            "predicate": {
                              "nbt": "{Tags:[salvagespawner]}"
                            }
                          },
                          {
                            "condition": "minecraft:match_tool",
                            "predicate": {
                              "predicates": {
                                "minecraft:custom_data": "{spawnerchance:tag}"
                              }
                            }
                          }
                        ]
                      }
                    },
                    {
                      "condition": "minecraft:random_chance",
                      "chance": 0.333
                    }
                  ]
                }
              ]
            }
          ],
          "functions": [
            {
              "function": "minecraft:set_lore",
              "entity": "this",
              "lore": [
                {
                  "text": "Requires a Spawn Egg to operate",
                  "color": "gray",
                  "italic": false
                }
              ],
              "mode": "append"
            }
          ]
        }
      ]
    }
  ]
}