{
    "type": "minecraft:chest",
    "pools": [
      {
        "rolls": 3,
        "bonus_rolls": 5,
        "entries": [
          {
            "type": "minecraft:item",
            "weight": 5,
            "name": "minecraft:stone",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 1,
                  "max": 7
                }
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 5,
            "name": "minecraft:bread",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 1,
                  "max": 4
                }
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 5,
            "name": "minecraft:oak_planks",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 1,
                  "max": 2
                }
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 5,
            "name": "minecraft:emerald",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 3,
                  "max": 9
                }
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 1,
            "name": "minecraft:emerald_block",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 1,
                  "max": 3
                }
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 1,
            "name": "minecraft:totem_of_undying",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": 1
              }
            ]
          },
          {
            "type": "minecraft:item",
            "weight": 1,
            "name": "minecraft:diamond",
            "functions": [
              {
                "function": "minecraft:set_count",
                "count": {
                  "min": 1,
                  "max": 3
                }
              }
            ]
          }
        ]
      },
      {
        "rolls": {
          "min": 1,
          "max": 1
        },
        "entries": [
          {
            "type": "minecraft:loot_table",
            "name": "kattersstructures:automaticons/all_automaticons",
            "conditions": [
              {
                "condition": "minecraft:random_chance",
                "chance": 0.5
              },
              {
                "condition": "minecraft:entity_properties",
                "entity": "this",
                "predicate": {
                  "nbt": "{Tags:[\"automaticons\"]}"
                }
              }
            ]
          }
        ]
      }
    ]
  }