#Removing Lava and Obsidian to gate access to the nether

8 messages · Page 1 of 1 (latest)

rustic bolt
#

I am trying to limit access to the nether so the player has to craft obsidian, it is no longer in world. I want to remove the lava so a player can't make obsidian, but no matter what I do I cannot alter lava worldgen at all. I even got desperate and looped through every layer and used two methods to stop lava from spawning but nothing has worked.

let layers = [
    "strongholds",
    "underground_ores",
    "underground_structures",
    "top_layer_modification",
    "fluid_springs",
    "underground_decoration",
    "raw_generation",
    "lakes",
    "vegetal_decoration",
    "local_modifications",
    "surface_structures",
];

let features = ["minecraft:lava", "spring_lava", "spring_lava_frozen", "underwater_magma"];

WorldgenEvents.remove((event) => {
    layers.map((layer) => {
        event.removeFeatureById(layer, features);
    });
});

WorldgenEvents.remove((event) => {
    layers.forEach((layer) => {
        event.removeOres((props) => {
            props.worldgenLayer = layer;
            props.blocks = features;
        });
    });
});```
opaque bridgeBOT
#

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

rustic bolt
#

Is minecraft:lava not actually a block maybe it's a fluid?

copper patrol
#

it is both

rustic bolt
#

I am missing something major because I believe I have looped through every worldgen layer and at every layer I have removed all blocks matching "minecraft:lava". But still lava spawns. Something is wrong with my approach and I am unsure what it is. Am I using removeFeatureById() or removeOres() incorrectly?

rustic bolt
#

New idea, can KubeJS intercept the water + lava = obsidian interaction? If I can just swap that to cobblestone then that solves 80% of my issues right there

copper patrol
#

there are mods that allow changing that i believe, or maybe a forge event

#

but the simplest solution would just be changing the block that you make nether portal out of