Generate ore instead of air in The End
hohserg1 opened this issue ยท 4 comments
I try to replace some air blocks in The End by redstone block with follow script:
Tweaker.setWorld(1)
Tweaker.setPlacementStage("BIOME_BLOCKS") //also tried other stages
flowerDec = newOreDecoration()
flowerDec.set("count", 20)
flowerDec.set("mainBlock", "minecraft:redstone_block")
flowerDec.set("size", 10)
flowerDec.set("minY", 70)
flowerDec.set("maxY", 90)
flowerDec.addBlockToReplace("minecraft:air")
But it do not work.
Where is the mistake?
===
Solved!
Tweaker.setWorld(1)
Tweaker.setPlacementStage("PRE_POPULATE")
flowerDec = newOreDecoration()
flowerDec.set("count", 20)
flowerDec.set("mainBlock", "minecraft:redstone_block")
flowerDec.set("size", 10)
flowerDec.set("minY", 70)
flowerDec.set("maxY", 90)
flowerDec.addBlockToReplace("minecraft:air")
sky=forBiomes("minecraft:sky","minecraft:void")
sky.addDecoration(flowerDec)
Ok, I try follow
Tweaker.setPlacementStage("BIOME_BLOCKS")
flowerDec = newOreDecoration()
flowerDec.set("count", 20)
flowerDec.set("mainBlock", "minecraft:redstone_block")
flowerDec.set("size", 10)
flowerDec.set("minY", 70)
flowerDec.set("maxY", 90)
flowerDec.addBlockToReplace("minecraft:air")
sky=forBiomes("minecraft:sky","minecraft:void")
sky.addDecoration(flowerDec)
But it still do not work
If that doesn't work, the end likely doesn't call standard world generation events. BiomeTweaker would then be unable to affect it.
It work!
Tweaker.setPlacementStage("PRE_POPULATE")
flowerDec = newOreDecoration()
flowerDec.set("count", 20)
flowerDec.set("mainBlock", "minecraft:redstone_block")
flowerDec.set("size", 10)
flowerDec.set("minY", 70)
flowerDec.set("maxY", 90)
flowerDec.addBlockToReplace("minecraft:air")
sky=forBiomes("minecraft:sky","minecraft:void")
sky.addDecoration(flowerDec)
Thank you for help)