MetaGenerator

MetaGenerator

This generator allows using multiple generators for a single world. It can select specified generator determined by position of a chunk and generate the chunk using the generator. It doesn't require any config file, all settings are in the option code.

Installation

Place MetaGenerator.jar into your plugins directory.

Usage

Bukkit.yml

To specify which world should use this generator, append the following code to your bukkit.yml file:

worlds:
  name_of_the_world:
    generator: MetaGenerator:additional_options

Multiverse

-g MetaGenerator:additional_options

Options

The options are in JSON format, and they can be an object, an array of objects or strings, or a string:

Code
( "[" ( <object> "," ) ... ""]" ) | <object> | ('"' <generator_name> '"')
<object>
"{" ( ( '"' <property_name> '":' <property_value> ) "," ... ) "}"
<property_value>
a string ("...") or a number (0.0).

Properties

plugin
Name of the plugin containing the required generator for the area.
options
Options string passed to the generator.
x1
X coordinate of the first corner of the rectangle specifying the area.
z1
Z coordinate of the first corner.
x2
X coordinate of the second corner.
z2
Z coordinate of the second corner.
xadd
X coordinate to add to the position of the chunk when passing to the generator.
zadd
Z coordinate to add to the position of the chunk. All numbers are in chunk measure (16 blocks).

Examples

Generates whole world using the "City" generator.
MetaGenerator:"City"
MetaGenerator:["City"]
MetaGenerator:{"plugin":"City"}
MetaGenerator:[{"plugin":"City"}]
Generates the center chunk with "City" generator, the other chunks are left void.
MetaGenerator:{"plugin":"City","x1":0,"z1":0,"x2":0,"z2":0}
MetaGenerator:[{"plugin":"City","x1":0,"z1":0,"x2":0,"z2":0}]
Generates the center chunk with "City" generator, the rest with "DefaultGenerator".
MetaGenerator:[{"plugin":"City","x1":0,"z1":0,"x2":0,"z2":0},"DefaultGenerator"]

Versions

1.0
Initial release.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    80169
  • Created
    May 19, 2014
  • Last Released File
    May 19, 2014
  • Total Downloads
    587
  • License

Categories

Members

Recent Files