{
  "type": "minecraft:entity",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "value": "vb:items/gate_key"
        }
      ]
    },
    {
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "add": false,
              "count": {
                "type": "minecraft:uniform",
                "max": 2,
                "min": 0
              },
              "function": "minecraft:set_count"
            },
            {
              "count": {
                "type": "minecraft:uniform",
                "max": 1,
                "min": 0
              },
              "enchantment": "minecraft:looting",
              "function": "minecraft:enchanted_count_increase"
            }
          ],
          "name": "minecraft:prismarine_shard"
        }
      ],
      "rolls": 1
    },
    {
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "functions": [
            {
              "count": {
                "type": "minecraft:uniform",
                "max": 1,
                "min": 0
              },
              "enchantment": "minecraft:looting",
              "function": "minecraft:enchanted_count_increase"
            },
            {
              "conditions": [
                {
                  "condition": "minecraft:any_of",
                  "terms": [
                    {
                      "condition": "minecraft:entity_properties",
                      "entity": "this",
                      "predicate": {
                        "flags": {
                          "is_on_fire": true
                        }
                      }
                    },
                    {
                      "condition": "minecraft:entity_properties",
                      "entity": "direct_attacker",
                      "predicate": {
                        "equipment": {
                          "mainhand": {
                            "predicates": {
                              "minecraft:enchantments": [
                                {
                                  "enchantments": "#minecraft:smelts_loot"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              ],
              "function": "minecraft:furnace_smelt"
            }
          ],
          "name": "minecraft:cod",
          "weight": 3
        },
        {
          "type": "minecraft:item",
          "functions": [
            {
              "count": {
                "type": "minecraft:uniform",
                "max": 1,
                "min": 0
              },
              "enchantment": "minecraft:looting",
              "function": "minecraft:enchanted_count_increase"
            }
          ],
          "name": "minecraft:prismarine_crystals",
          "weight": 2
        },
        {
          "type": "minecraft:empty"
        }
      ],
      "rolls": 1
    },
    {
      "bonus_rolls": 0,
      "conditions": [
        {
          "condition": "minecraft:killed_by_player"
        }
      ],
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:wet_sponge"
        }
      ],
      "rolls": 1
    },
    {
      "bonus_rolls": 0,
      "conditions": [
        {
          "condition": "minecraft:killed_by_player"
        },
        {
          "condition": "minecraft:random_chance_with_enchanted_bonus",
          "enchanted_chance": {
            "type": "minecraft:linear",
            "base": 0.035,
            "per_level_above_first": 0.01
          },
          "enchantment": "minecraft:looting",
          "unenchanted_chance": 0.025
        }
      ],
      "entries": [
        {
          "type": "minecraft:loot_table",
          "functions": [
            {
              "conditions": [
                {
                  "condition": "minecraft:any_of",
                  "terms": [
                    {
                      "condition": "minecraft:entity_properties",
                      "entity": "this",
                      "predicate": {
                        "flags": {
                          "is_on_fire": true
                        }
                      }
                    },
                    {
                      "condition": "minecraft:entity_properties",
                      "entity": "direct_attacker",
                      "predicate": {
                        "equipment": {
                          "mainhand": {
                            "predicates": {
                              "minecraft:enchantments": [
                                {
                                  "enchantments": "#minecraft:smelts_loot"
                                }
                              ]
                            }
                          }
                        }
                      }
                    }
                  ]
                }
              ],
              "function": "minecraft:furnace_smelt"
            }
          ],
          "value": "minecraft:gameplay/fishing/fish"
        }
      ],
      "rolls": 1
    },
    {
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:empty",
          "weight": 4
        },
        {
          "type": "minecraft:item",
          "name": "minecraft:tide_armor_trim_smithing_template"
        }
      ],
      "rolls": 1
    }
  ],
  "random_sequence": "minecraft:entities/elder_guardian"
}