const hideList = [
  {
    "modid": "better_diving",
    "items": [
      "titanium_chunk",
      "copper_chunk",
      "silver_chunk",
      "lead_chunk",
      "lithium_chunk",
      "coal_chunk",
      "iron_chunk",
      "gold_chunk",
      "redstone_chunk",
      "lapis_chunk",
      "emerald_chunk",
      "diamond_chunk",
      "titanium_ingot",
      "copper_ingot",
      "silver_ingot",
      "lead_ingot",
      "lithium_ingot",
      "limestone_outcrop",
      "sandstone_outcrop",
      "shale_outcrop",
      "titanium_block",
      "copper_block",
      "silver_block",
      "lead_block",
      "lithium_block"
    ]
  },
  {
    "modid": "eidolon",
    "items": [
      "lead_ore",
      "lead_ingot",
      "lead_nugget",
      "lead_block"
    ]
  },
  {
    "modid": "tconstruct",
    "items": [
      "copper_ore",
      "copper_nugget",
      "copper_ingot",
      "copper_block"
    ]
  },
  {
    "modid": "fish_in_planks",
    "items": [
      "blobfish_barrel"
    ]
  },
  {
    "modid": "simplyjetpacks",
    "items": [
      "unit_cryotheum",
      "unit_cryotheum_empty",
      "unit_glowstone",
      "unit_glowstone_empty",
      "jetpack_potato"
    ]
  },
  {
    "modid": "structure_gel",
    "items": [
      "red_gel",
      "blue_gel",
      "green_gel",
      "cyan_gel",
      "orange_gel",
      "yellow_gel"
    ]
  },
  {
    "modid": "theoneprobe",
    "items": [  
      "probe",
      "creativeprobe",
      "probenote",
      "diamond_helmet_probe",
      "gold_helmet_probe",
      "iron_helmet_probe"
    ]
  }
]

onEvent('jei.hide.items', jeiHideEvent => {
  for (mod of hideList) {
    var { modid, items } = mod;
    items.map(item => {
      console.info(`Hiding JEI entry for: ${modid}:${item}`);
      jeiHideEvent.hide(`${modid}:${item}`);
    });
  }
});