Terrain Control

Terrain Control

235k Downloads

Biome Generator Plugin

hoqhuuep opened this issue ยท 6 comments

commented

== Feature request ==
Add support for 3rd party plugins to control biome generation.

Very much like FromImage but more powerful. At the moment I am using a script to create an image and then using FromImage, but this has limits, especially size. I have also considered just hacking my code into LayerFromImage, however it would be much more convenient if this functionality was supported by default, also I believe it may be useful to others.

== Suggested Features ==
Allow the following in WorldConfig.ini:
BiomeMode:FromPlugin
BiomePlugin:com.something.generator.BiomeGeneratorPlugin # Java class including package

Add an interface which the plugin must implement, something like:
public interface BiomeGenerator {
public int[] getBiomes(int x_start, int z_start, int x_size, int z_size);
}

commented

Looks like a nice addition to the API.

commented

@Wickth So you will implement it?

(We really need some system to know what we're doing. I can imagine the horror if we spend hours working on a feature, only to find out that we have both done the same work twice.)

commented

rutgerkok I may do it, but after 5.01.23
I will in another country due new year :)

And yes i thought similar about coding. i wrote Pm to you.

commented

Yes looks good.
But this need more things.

First:
Biome generator must have two methods for getBiomes, one like standard and one with zoomed out, because it needed for terrain generation.
Otherwise, it will work like biome image - one pixel from plugin = 4 pixel on real world.

Second: This method must be thread safe for TC map writer.

Anyway it is easy to add, and only need answer for first question - use one method or two.

commented

Glad to see you like the idea ๐Ÿ˜ƒ
I look forward to being able to use the feature. This should give you a good idea of my intentions: http://img600.imageshack.us/img600/6851/testyh.png ๐Ÿ˜‰

commented

Implemented.