ScarletWorldModifier - A configurable Sponge plugin for modifying world generation by replacing blocks

This is a discussion topic for the Ore project, ScarletWorldModifier. View the full project on Ore for downloads and more information.


ScarletWorldModifier

A configurable Sponge plugin for modifying world generation by replacing blocks.

Edit scarlet_world_modifier.conf in config directory to manage block replacements in specific worlds and biomes.

Sample config

config {
    world-name {
	biomes {
	     "biome-id" {
		  "original-block-id"="final-block-id"
	     }
	}
	global {
	    "original-block-id"="final-block-id"
	}
    }
}

Important!

If final-block-id is invalid, then block with original-block-id will be replaced by stone.

In order for the plugin to replace blocks in world with name world-name, there needs to be following entry in file config/ sponge/worlds/minecraft/dimension/world-name/world.conf:

world-generation-modifiers=[
    "scarlet_world_modifier:swm"
]

Examples

Hell


Config:

config {
    hell {
	global {
	    "minecraft:dirt"="minecraft:netherrack"
	    "minecraft:grass"="minecraft:netherrack"
	    "minecraft:gravel"="minecraft:soul_sand"
	    "minecraft:hardened_clay"="minecraft:netherrack"
	    "minecraft:ice"="minecraft:lava"
	    "minecraft:mycelium"="minecraft:netherrack"
	    "minecraft:mossy_cobblestone"="minecraft:netherrack"
	    "minecraft:red_sand"="minecraft:soul_sand"
	    "minecraft:red_sand"="minecraft:netherrack"
	    "minecraft:sand"="minecraft:soul_sand"
	    "minecraft:snow"="minecraft:air"
	    "minecraft:snow_layer"="minecraft:air"
	    "minecraft:packed_ice"="minecraft:air"
	    "minecraft:stained_hardened_clay"="minecraft:netherrack"
	    "minecraft:stone"="minecraft:netherrack"
	    "minecraft:water"="minecraft:lava"
	}
    }
}

Arid


Config:

config {
    arid {
	global {
	    "minecraft:grass"="minecraft:dirt[variant=coarse_dirt]"
	    "minecraft:ice"="minecraft:water"
	    "minecraft:snow"="minecraft:air"
	    "minecraft:snow_layer"="minecraft:air"
	    "minecraft:packed_ice"="minecraft:air"
	    "minecraft:water"="minecraft:air"
	}
    }
}

A new version has been released for ScarletWorldModifier, it is available for download here.


A configurable Sponge plugin for modifying world generation by replacing blocks.

A new version has been released for ScarletWorldModifier, it is available for download here.


A configurable Sponge plugin for modifying world generation by replacing blocks.

I tried to use the plugin but I don’t understand where to put ''In order for the plugin to replace blocks in world with name world-name, there needs to be following entry in file config/ sponge/worlds/minecraft/dimension/world-name/world.conf ‘’

Here? https://i.imgur.com/zwAwLx4.png
I’ve tried the ARID example but it doesn’t work

Sorry for replying so late.
Contents of this file should look like this:

sponge {
    world {
        # If 'true', this world will generate its spawn the moment its loaded.
        generate-spawn-on-load=true
        # If 'true', this world will load on startup.
        load-on-startup=true
    }
    # World Generation Modifiers to apply to the world
    world-generation-modifiers=[
        "scarlet_world_modifier:swm"
    ]
}

If you’re using Nucleus, you can use the command /world create -m scarlet_world_modifier:swm <worldname> to create the world and apply the modifier at the same time. I think ProjectWorlds has a similar command, though I couldn’t tell you what that is!

You wouldn’t need to alter the config in that case.

1 Like