{
  "type": "minecraft:generic",
  "random_sequence": "manic:gameplay/trades/insomniac/4",
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "weight": 5,
          "name": "minecraft:phantom_membrane",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 4
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 5,
          "name": "manic:items/necroplasm",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 5
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 3,
          "name": "manic:items/lysosome",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 4
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#insomniac.lysosome"
                },
                "score": "manic.dummy"
              },
              "range": {
                "min": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 2,
          "name": "manic:items/reticulum",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#insomniac.reticulum"
                },
                "score": "manic.dummy"
              },
              "range": {
                "min": 1
              }
            }
          ]
        },
        {
          "type": "minecraft:loot_table",
          "weight": 1,
          "name": "manic:items/vacuuole",
          "functions": [
            {
              "function": "minecraft:set_count",
              "count": 2
            }
          ],
          "conditions": [
            {
              "condition": "minecraft:value_check",
              "value": {
                "type": "minecraft:score",
                "target": {
                  "type": "minecraft:fixed",
                  "name": "#insomniac.vacuuole"
                },
                "score": "manic.dummy"
              },
              "range": {
                "min": 1
              }
            }
          ]
        }
      ]
    },
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:loot_table",
          "name": "manic:items/moonstone"
        }
      ]
    }
  ]
}
