Trying to delete mekanism:osmium and rtbtoolsbase:dimensionalshard ores through worldgenEvents.remove, and it just doesn't work...
tried with and without specifying biomes and worldgen layer
WorldgenEvents.remove(event => {
event.removeOres((props) => {
props.worldgenLayer = 'underground_ores'
props.biomes = /^minecraft:.*/
props.blocks = [
'rftoolsbase:dimensionalshard_overworld',
'rftoolsbase:dimensionalshard_nether',
'mekanism:osmium_ore',
'mekanism:deepslate_osmium_ore'
];
});
event.removeFeatureById('underground_ores', [
'rftoolsbase:dimensionalshard_overworld',
'rftoolsbase:dimensionalshard_nether',
'mekanism:osmium_ore',
'mekanism:deepslate_osmium_ore'
])
})
Ores still spawn in a new world after this is loaded (startup script saved, game restarted).