Documentation ¶
Overview ¶
Package flat is designed to replicate vanilla's superflat worlds. Currently only basic worlds are supported.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClassicFlat = ParseString("2;7,2x3,2;1;village") TunnelersBream = ParseString("2;7,230x1,5x3,2;3;stronghold,biome_1,decoration,dungeon,mineshaft") WaterWorld = ParseString("2;7,5x1,5x3,5x12,90x9;1;biome_1,village") Overworld = ParseString("2;7,59x1,3x3,2;1;stronghold,biome_1,village,decoration,dungeon,lake,mineshaft,lava_lake") SnowyKingdom = ParseString("2;7,59x1,3x3,2,78;12;biome_1,village") BottomlessPit = ParseString("2;2x4,3x3,2;1;biome_1,village") Desert = ParseString("2;7,3x1,52x24,8x12;2;stronghold,biome_1,village,decoration,dungeon,mineshaft") RedstoneReady = ParseString("2;7,3x1,52x24;2;") )
Vanilla presets
Functions ¶
This section is empty.
Types ¶
type SuperFlat ¶
type SuperFlat struct {
// contains filtered or unexported fields
}
A vanilla superflat world generator
func ParseString ¶
ParseString reads in a vanilla superflat world code and returns a superflat world generator.
For example the code
2;7,2x3,2;1;village,stronghold
works like this
2; //Version, only 2 is supported 7,2x3,2; //A comma seperated list of blocks 7, //One layer of bedrock 2x3, //Two layers of dirt 2 //One layer of grass 1; //Plains biome village,stronghold //A comma seperated list of features for the world (Not supported)
func (*SuperFlat) GenerationCode ¶
The vinilla superflat world code used to generate this world
Click to show internal directories.
Click to hide internal directories.