AlmostFlatLands
A simple world generator that creates a slightly less boring looking flat world.
Usage
Multiverse can be used to create a almost flat world using the command
/mv create <world_name> NORMAL -g AlmostFlatLands
The worlds section of the bukkit.yml file can also be used, information on that method is available on the wiki.
Config
the default config file looks like this
prevent-spawning: true set-world-type: true world-height: 32 world-biome: PLAINS world-grass-chance: 14 world-flower-chance: 1 world-tree-chance: 15 world-tree-types: - TREE - BIRCH - BIG_TREE
prevent-spawning
When set to true no mobs will be allowed to spawn in worlds created with this generator.
set-world-type
when set to true the worlds created will have their type set to FLAT, this fixes the issue with the void fog but may cause issues with other plugins and is not supported by Bukkit.
world-height
The base height of the world, note that the maximum y value at any point may vary from this by a few blocks.
world-biome
The name of the biome to be set for the world.
world-grass-chance
Controls the amount of long grass in the world, setting this to 100 would mean a long grass block above every grass block.
world-flower-chance
The same as world-grass-chance but for flowers. Note that this chance is the number of remaining blocks once the long grass has been generated.
world-tree-chance
Controls the chance that each chunk will contain a tree, setting this to 100 will mean 1 tree roughly every 16 blocks.
world-tree-types
A list of trees to generate, each tree that is created is picked at random from this list.
Contributing
Contributions to the project are very much welcome, if you have a feature that you want implemented and know a nice way to do it then consider forking the repo and submitting a pull request. These will be accepted as long as the following simple guidelines are followed.
- Do not edit the structure of the pom.xml file, feel free to add a dependency if you need it but the formatting and structure should not be changed.
- If you are exposing a new API method, add a JavaDoc comment to it, but don't over-comment internal code.
- Follow the existing code style, don't antagonise over every space though !
All dependencies that are used are now available from a public Maven repo, so you don't have to worry about building several other projects just to add a simple change any more.
Source Code
Dev Builds
Changes Since Last Release
Download
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
http://bukkit.jacekk.co.uk:8000/job/AlmostFlatLands/
pls update for 1.8
I get the message
"Could not pass event WorldInitEvent to AlmostFlatLands v0.2.1"
too.
why?
@Blokizaki
Commented on that ticket. It's a real problem. If someone gets within a range that would cause those chunks to start loading, the server crashes.
@FontyCraft -- same thing has happened to my server. Here's my error msg:
[SEVERE] Could not pass event WorldInitEvent to AlmostFlatLands v0.2.1
org.bukkit.event.EventException
I've posted the issue in a ticket. Can we get a 1.6.4 (maybe 1.7 too) update on this plugin?
when travelling 100-1000 blocks the flatlands ends.
bug?
Its says invailed plugin directory
What Happens
Well I fixed it its just on bukkit it says
@wide_load
I haven't tried using this on a new (superflat) world yet, but I'll just assume the problem is unique to that world only (meaning I don't expect to replicate the issue on newly generated worlds), set this plugin to generate land at four blocks and
call it a day. EDIT: Probably wasn't the best idea I had. I'm not sure if it's just NoLagg or something else in general, but setting the height to 4 causes NoLagg to spam console rapidly with errors and consume all CPU. And this time, I do have a stack trace. I've also posted this error on NoLagg, by the way.Thanks for the prompt responses by the way.
@CommodoreAlpha
Weird, I'm out of ideas then :/ Maybe try it on a new world that is not the default one.
For the AlmostFlatLands generator, I specified it both within Multiverse-Core's "worlds.yml" and also within "Bukkit.yml". The reason is that when I set the generator in Multiverse, nothing seems to happen, but when I do it in "Bukkit.yml", the generator seems to start working. (Possibly because the world I'm doing it for is my first/main world, so generation might be handled by Bukkit instead.)
The plugin did load properly, otherwise I would've posted a stack trace.
@CommodoreAlpha
How are you setting the generator for the world ? Sometimes Multiverse will blank it's config option for it if the plugin does not load properly.
@wide_load
I'm having a really weird issue with superflat, in that when I use a generator (whether it's Mojang's customised Superflat generator or your plugin), there are some chunks that don't get generated to the specified height from either plugin. I'm wondering if you'd know anything about the nature of this issue. (Or perhaps you might know of a workaround to force every new chunk to generate at the height specified in the configuration.)
The chunks that don't generate to the specified height happen to all be the same height of four blocks: the same as the classic Superflat. In fact, that superflat map I was talking about was generated during 1.2.5. The strange part is that this is happening to new chunks; I'd expect old chunks to be at a height of four blocks, but not new chunks.
I'm not pointing any fingers at your plugin by the way. I think this might be an issue concerning Mojang or something. And yes, I deleted my level.dat and also my level.dat_old within that world to ensure that the customised superflat generator provided in vanilla MC wasn't still running.
@CommodoreAlpha
That's why we have plugins :D
Mojang really needs a superflat generator like this as a part of vanilla Minecraft. But they won't listen anyway. >_>
@BewilderedHooker
Why don't you generate the map, and then edit it with WorldPainter, for example :D
@BewilderedHooker
This isn't really meant for survival worlds, maybe look into something like TerrainControl.
The only thing missing from this otherwise perfect world is water. I'm trying to create a solar apocalypse map where water eventually dries up but players will need it in the beginning, so it's a minor problem that they can't get it.
Build 17 loaded fine
Just now getting to the update for 1.5.1 and am having the same issue as a closed ticket on your github.
This server is running:
CraftBukkit version git-Spigot-735
Multiverse-Core v2.5-b665
Multiverse-Inventories v2.5-b346
Multiverse-Portals v2.5-b684
Loading AlmostFlatLands v0.2
I'm about to try b-17 on your jenkins.
love this!! was looking for something like this..terrain control was using to much ram ...this is <3
@wide_load
So i'll ask again, is it foreseeable that you would add a command to reload or re-read the config file? This would be very helpful.