Hello,
I’ve been wondering how I should imagine Biomes. Are those fixed on a chunk or do those have random shapes?
I’m looking to create a plugin able to locate a biome but I don’t know where to begin.
Thx! 
Hello,
I’ve been wondering how I should imagine Biomes. Are those fixed on a chunk or do those have random shapes?
I’m looking to create a plugin able to locate a biome but I don’t know where to begin.
Thx! 
If you don’t care where the biome is, you could get a random location, check the biome against an argument and return the location if the biome matches conditions.
The biome should be located as close as possible to a player’s location 
Biomes are specific to the block column that the player is in (1x1x255) so you could just get the players location and get the biome from that.
My bad, I haven’t been specific enough.
I’m looking to locate a given biome type as close as possible to a player, even if this one isn’t in this biome. How should I proceed?
Thx in advance!
Something like if you’re in a forest, find closest desert?
Yes, exactly! You can call it teleporting to a biome.
Off the top of my head, i would have an asynchronous task take a starting point, spiral out using chunk coordinates, getting the centerish x y of the chunk and testi for desired biome, break and teleport.
This would require some loops galore hence the async task, maybe even a Thread.sleep(1000) somewhere to keep it from being too CPU intensive. Using chunk coords will allow for a lot of distance to be covered instead of block coords. You could even start at a minimum distance working outward.
I’m no Sponge plugin developer (yet, just looking into it) From what i know from bukkit, there has never been an easy way to find specific “anything” in the world unless you already know its location.
Food for thought: Dynmap & World Border render/fill mode has the “working outward” code in this fashion.
I hope this helps.
Thank you for your help Sir! 