BiomeTweaker

BiomeTweaker

17M Downloads

biome tweaker 1.12.2 registerGenBlockRep

neoNymOo opened this issue ยท 0 comments

commented

why is my script replacing blocks, but not all of them, some part remains

Tweaker.setScriptStage("PRE_INIT")
Tweaker.setAverageBiomeSize("largeBiomes", 6)

Tweaker.setScriptStage("FINISHED_LOAD")
Tweaker.setPlacementStage("BIOME_BLOCKS")

allBiomes = forAllBiomes()

allBiomes.set("enableSnow", true)
allBiomes.set("temperature", -5)

allBiomes.removeDecoration("LAKE_LAVA")
allBiomes.removeFeature("LAVA")

allBiomes.removeAllSpawns("CREATURE")

Tweaker.setScriptStage("SERVER_STARTING")
Tweaker.setPlacementStage("PRE_POPULATE")

bopPlant = forBlock("biomesoplenty:plant_0")
bopPlant.set("minY", 57)
bopPlant.set("maxY", 256)
bopPlant.setProperty("variant", "deadleafpile")

bopPlant1 = forBlock("biomesoplenty:plant_1")
bopPlant1.set("minY", 57)
bopPlant1.set("maxY", 256)
bopPlant1.setProperty("variant", "thorn")

allBiomes.registerGenBlockRep(bopPlant, "minecraft:snow_layer")
allBiomes.registerGenBlockRep("minecraft:waterlily", "minecraft:air")
allBiomes.registerGenBlockRep("minecraft:tallgrass", bopPlant1)
allBiomes.registerGenBlockRep("minecraft:yellow_flower", "minecraft:snow_layer")
allBiomes.registerGenBlockRep("minecraft:red_flower", "minecraft:snow_layer")
allBiomes.registerGenBlockRep("minecraft:red_mushroom", "minecraft:snow_layer")