#worldgenEvents.remove >> removeOres/removeFeatureById doesn't delete ores

4 messages · Page 1 of 1 (latest)

compact siren
#

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).

scenic spadeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

red lake
#

??codeblock

minor matrixBOT
# red lake ??codeblock

You can write your code in a codeblock by typing it between the codeblock delimiters:

```js :arrow_left:

onEvent('recipes', e => {
e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})

``` :arrow_left:

As an example, :arrow_up: will look like this:

onEvent('recipes', e => {
  e.smelting('minecraft:glass', '#forge:sand').xp(.1)
})