BiomeTweaker

BiomeTweaker

13M Downloads

Generate ore instead of air in The End

hohserg1 opened this issue ยท 4 comments

commented

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

You never add the decoration to any biomes. Use addDecoration

commented

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

commented

If that doesn't work, the end likely doesn't call standard world generation events. BiomeTweaker would then be unable to affect it.

commented

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)