Change Biome Type
#13
You cannot change the entire world at once, because the server would have to load all the chunks for the world and re-save them with the new biomes. You need to follow a different approach, you've already mentioned that - first change all the chunks around players and then change each chunk as soon as it gets loaded or generated by the server. Note that you can already keep track of the loaded chunks for each world, simply by using the chunk unloading and loading hooks to store the chunk coords in a table.

There will probably never be a proper API function to enumerate all the loaded chunks, because as soon as such a function call would return, the data could be invalid - another thread may unload the chunk or load another chunk. We could use callback-based API so that you can execute code for each chunk loaded, but in this plugin's case it could be too much of a performance hit.
Reply
Thanks given by:


Messages In This Thread
Change Biome Type - by jimmis98 - 07-05-2014, 08:05 PM
RE: Change Biome Type - by NiLSPACE - 07-05-2014, 09:36 PM
RE: Change Biome Type - by jimmis98 - 07-05-2014, 10:04 PM
RE: Change Biome Type - by NiLSPACE - 07-05-2014, 10:11 PM
RE: Change Biome Type - by jimmis98 - 07-05-2014, 10:26 PM
RE: Change Biome Type - by worktycho - 07-05-2014, 10:40 PM
RE: Change Biome Type - by bearbin - 07-06-2014, 12:32 AM
RE: Change Biome Type - by tigerw - 07-06-2014, 12:50 AM
RE: Change Biome Type - by worktycho - 07-06-2014, 01:32 AM
RE: Change Biome Type - by bearbin - 07-06-2014, 02:19 AM
RE: Change Biome Type - by jimmis98 - 07-06-2014, 02:22 AM
RE: Change Biome Type - by tigerw - 07-06-2014, 02:42 AM
RE: Change Biome Type - by xoft - 07-06-2014, 09:24 PM
RE: Change Biome Type - by tigerw - 07-07-2014, 12:14 AM
RE: Change Biome Type - by xoft - 07-08-2014, 03:36 AM



Users browsing this thread: 1 Guest(s)