onEvent('worldgen.remove', event => {
  event.removeFeatureById('underground_ores',   
      ['mekanism:ore_copper',
      'mekanism:ore_copper',
      'mekanism:ore_fluorite',
      'mekanism:ore_uranium',
      'mekanism:ore_osmium',
      'mekanism:ore_lead',
      'mekanism:ore_tin',
      'mekanism:salt',
      'tconstruct:copper_ore',
      'thermal:ore_apatite',
      'thermal:ore_cinnabar',
      'thermal:ore_sulfur',
      'thermal:ore_copper',
      'thermal:ore_niter',
      'thermal:ore_lead',
      'thermal:ore_silver',
      'thermal:ore_nickel',
      'thermal:ore_tin',
      'createautomated:copper_node',
      'createautomated:lapis_node',
      'createautomated:iron_node',
      'createautomated:zinc_node',
      'createautomated:gold_node',
      'alltheores:ore_copper',
      'biggerreactors:yellorite_ore',
      'bigreactors:yellorite_ore',
      'zycraft:ore_aluminium',
      'minecraft:create_zinc_ore',
      'occultism:copper_ore',
      'occultism:silver_ore',
      'immersiveengineering:copper',
      'immersiveengineering:silver',
      'immersiveengineering:uranium',
      'immersiveengineering:bauxite',
      'immersiveengineering:lead',
      'immersiveengineering:mineral_veins',
      'immersiveengineering:nickel',
      'eidolon:lead_ore'])
      event.printFeatures('underground_ores')

event.removeSpawnsByID(spawns => {
    spawns.entities.values = [
      'alexsmobs:mimicube'
    ]
  })
})

//cheap node
onEvent('worldgen.add', event => {
  event.addOre(ore => {
    ore.block = 'allthemodium:unobtainium_ore'
    ore.spawnsIn.blacklist = false
    ore.spawnsIn.values = [
      'minecraft:end_stone', 'byg:end_sand', 'byg:cryptic_magma_block', 'byg:cryptic_stone', 'byg:shulkren_phylium', 'byg:nightshade_phylium', 'byg:imparius_phylium', 'byg:vermilion_sculk', 'byg:bulbis_phycelium', 'byg:ether_phylium'
    ]
    
    ore.biomes.blacklist = false // Inverts biome whitelist
    ore.biomes.values = [
      'minecraft:end_highlands', 'minecraft:end_midlands', 'minecraft:end_barrens', 'minecraft:small_end_islands', 'byg:bulbis_gardens', 'byg:imparius_grove', 'byg:bulbis_gardens_edge', 'byg:cryptic_wastes', 'byg:imparius_clearing', 'byg:ethereal_islands', 'byg:viscal_isles', 'byg:shattered_desert', 'byg:ivis_fields', 'byg:purpur_peaks', 'byg:shattered_viscal_isles', 'byg:shulkren_forest', 'byg:ethereal_clearing', 'byg:nightshade_forest', 'byg:shattered_desert_isles', 'byg:ethereal_forest'
    ]
    
    ore.clusterMaxSize = 3 // Max blocks per cluster
    ore.clusterCount = 2 // Clusters per chunk
    ore.minHeight = 54 // Min Y ore spawns in
    ore.maxHeight = 70 // Max Y ore spawns in
    ore.chance = 2 // Spawns the ore every ~2 chunks.
})
})
