{
  "type": "minecraft:chest",
  "pools": [
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 1,
        "max": 3
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:tag",
          "name": "sunlit_cobblemon:tr",
          "expand": true,
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:tag",
          "name": "sunlit_cobblemon:tm",
          "expand": true,
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              }
            }
          ]
        },
        {
          "type": "minecraft:item",
          "weight": 14,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "minecraft:iron_ingot"
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 8
              },
              "add": false
            }
          ],
          "name": "society:book_of_stars"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "paraglider:spirit_orb"
        },
        {
          "type": "minecraft:item",
          "weight": 14,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "minecraft:gold_ingot"
        },
        {
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 8
              },
              "add": false
            }
          ],
          "name": "create:zinc_ingot"
        },
        {
          "type": "minecraft:item",
          "weight": 12,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 32
              },
              "add": false
            }
          ],
          "name": "minecraft:redstone"
        },
        {
          "type": "minecraft:item",
          "weight": 14,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "minecraft:coal"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:enchant_randomly"
            }
          ],
          "name": "minecraft:book"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 3
              },
              "add": false
            }
          ],
          "name": "society:geode"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 8
              },
              "add": false
            }
          ],
          "name": "betterarcheology:artifact_shards"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 1
              },
              "add": false
            }
          ],
          "name": "sophisticatedstorage:upgrade_base"
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 1,
        "max": 1
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "society:util/common_coin_loot"
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 0,
        "max": 1
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "society:util/rare_coin_loot"
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 1,
        "max": 3
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              },
              "add": false
            }
          ],
          "name": "society:earth_crystal"
        },
        {
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              },
              "add": false
            }
          ],
          "name": "society:fire_quartz"
        },
        
        {
          "type": "minecraft:item",
          "weight": 8,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "meadow:fire_log"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              },
              "add": false
            }
          ],
          "name": "society:aquamarine"
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 2
              },
              "add": false
            }
          ],
          "name": "society:aquamarine"
        }, 
        {
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2,
                "max": 4
              },
              "add": false
            }
          ],
          "name": "society:pine_tar"
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 2,
                "max": 4
              },
              "add": false
            }
          ],
          "name": "society:oak_resin"
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 8
              },
              "add": false
            }
          ],
          "name": "crabbersdelight:pearl"
        },
        {
          "type": "minecraft:item",
          "weight": 6,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 4,
                "max": 16
              },
              "add": false
            }
          ],
          "name": "moreminecarts:glass_spines"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 9
              },
              "add": false
            }
          ],
          "name": "aquaculture:neptunium_nugget"
        },
        {
          "type": "minecraft:item",
          "name": "splendid_slimes:slime_heart",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{slime:{id:\"splendid_slimes:rotting\"}}"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "splendid_slimes:slime_heart",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{slime:{id:\"splendid_slimes:bony\"}}"
            }
          ]
        },
        {
          "type": "minecraft:item",
          "name": "splendid_slimes:slime_heart",
          "weight": 1,
          "functions": [
            {
              "function": "minecraft:set_nbt",
              "tag": "{slime:{id:\"splendid_slimes:webby\"}}"
            }
          ]
        },        
        {
          "type": "minecraft:item",
          "weight": 7,
          "name": "society:iron_upgrade_smithing_template"
        },
        {
          "type": "minecraft:item",
          "weight": 3,
          "name": "society:gold_upgrade_smithing_template"
        },
        {
          "type": "minecraft:item",
          "weight": 1,
          "name": "society:diamond_upgrade_smithing_template"
        }
      ]
    },
    {
      "rolls": {
        "type": "minecraft:uniform",
        "min": 0,
        "max": 1
      },
      "bonus_rolls": 0,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 40,
          "name": "minecraft:air"
        },
        {
          "type": "minecraft:item",
          "weight": 5,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 9
              },
              "add": false
            }
          ],
          "name": "minecraft:diamond"
        },
        {
          "type": "minecraft:item",
          "weight": 4,
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": {
                "type": "minecraft:uniform",
                "min": 1,
                "max": 1
              },
              "add": false
            }
          ],
          "name": "society:omni_geode"
        },
        {
          "type": "item",
          "name": "minecraft:enchanted_book",
          "weight": 1,
          "functions": [
            {
              "function": "set_nbt",
              "tag": "{StoredEnchantments:[{id:\"minecraft:mending\",lvl:1}]}"
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "name": "society:util/rare_coin_loot"
        }
      ]
    }
  ]
}
