Changing biomes

Published by DKMK100 on
Status
Resolved
Issue description

It would be great if we could change the biome at specific x z coordinates this would be really cool

Issue comments

This might be possible. I have found this code, but I did not test it yet:

worldIn.getChunkFromBlockCoords(pos).getBiomeArray()[index] = (byte) Biome.getIdForBiome(Biomes.DESIREDBIOME);

If I find a way to get this work we might add this in the future updates.

Can you add this also to structures that you are able to create a map. So a structure appears on every world at the same position?

This procedure would only change the biome name, one can not really change the biome at the location as requested initially.

After world gen generates biome at the location, it won't just regenerate.

This would be pretty cool for having biomes spread out.

Checking now this method would not work, things changed a lot since when this started.

External programs could modify this, but there is no reliable or tested method to do this during runtime.

https://forums.minecraftforge.net/topic/83089-1152-is-there-any-way-to-change-blocks-biome/

Maybe if this gets added there would be a standard API for this: https://feedback.minecraft.net/hc/en-us/community/posts/360011441272--setbiome-a-command-that-enables-you-to-change-the-biome-of-a-specific-area

External programs could modify this, but there is no reliable or tested method to do this during runtime.

Did you read my reply DKMK100?

If you have functional tested code, feel free to provide it and I will add this ;)

Worldedit is during runtime and is open source code... 

Provide the code and I will add this. I am very busy atm (working on MCreator and 8h job at a company I do an internship during this summer) so some help can go a long way.

Also quick check shows it is bukkit so I don't think you can port this to forge (also worldedit code is licensed under GPL-3.0 so larger snippets of code is no-go).