How can I set biome in location?

Please give me an example code to set biome.

Not tried it but something like that

ServerWorld world;
world.setBiome(x, y, z, Biomes.FOREST.get());

From ServerLocation you can do

ServerLocation loc;
loc.world().setBiome(loc.biomePosition(), Biomes.FOREST.get());

There is also this, no idea if its valid (Javadocs just tell me that the return type is T, with the return description being “the return type of T”)

ServerLocation loc;
loc.mapBiome((world, pos) -> Biomes.FOREST.get());
1 Like

Thank for you care!