AlmostFlatLands

example

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

Available on GitHub

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/

Download Stats

View detailed stats

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of blaizex blaizex Aug 29, 2014 at 00:34 UTC - 0 likes

    I get the message
    "Could not pass event WorldInitEvent to AlmostFlatLands v0.2.1"
    too.
    why?

  • Avatar of lANTHONYl lANTHONYl Feb 05, 2014 at 20:07 UTC - 0 likes

    @Blokizaki: Go

    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.

  • Avatar of Blokizaki Blokizaki Oct 20, 2013 at 20:57 UTC - 0 likes

    @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?

  • Avatar of FontyCraft FontyCraft Oct 15, 2013 at 01:25 UTC - 0 likes

    when travelling 100-1000 blocks the flatlands ends.

    bug?

    i have lost interest in minecraft and bukkitdev, so i will not be uploading/updating any plugins for a while. i will still be active on the forums as, "HyVe"!

    Please dont ask if you can take over my projects, i will just ignore it.

  • Avatar of Bucket789 Bucket789 Sep 16, 2013 at 11:31 UTC - 0 likes

    Its says invailed plugin directory

    What Happens

    Well I fixed it its just on bukkit it says

    • [SERVRE] AlmostFlatLands.jar blablablaconfig.yml is invailed loading anyways
    • Typed the command to goto the world and i fell out of the world
    • Wierd Floating Trees
    • And TONS AND TONS OF PARICLES
  • Avatar of CommodoreAlpha CommodoreAlpha Jul 07, 2013 at 22:28 UTC - 0 likes

    @wide_load: Go

    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.

    Last edited Jul 08, 2013 by CommodoreAlpha

    Sure, I'd love to include my server IP here. But it's under construction, and I wouldn't want to get sued for players wandering inside and getting hit by a random beam of steel floating about. And no, I doubt plugins would make very good lawyers either. I've never seen a plugin that forced you to sign a contract do so well.

  • Avatar of wide_load wide_load Jul 07, 2013 at 13:28 UTC - 0 likes

    @CommodoreAlpha: Go

    Weird, I'm out of ideas then :/ Maybe try it on a new world that is not the default one.

  • Avatar of CommodoreAlpha CommodoreAlpha Jul 07, 2013 at 01:53 UTC - 0 likes

    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.

  • Avatar of wide_load wide_load Jul 07, 2013 at 01:34 UTC - 0 likes

    @CommodoreAlpha: Go

    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.

  • Avatar of CommodoreAlpha CommodoreAlpha Jul 06, 2013 at 22:24 UTC - 0 likes

    @wide_load: Go

    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.

Facts

Date created
Dec 29, 2012
Category
Last update
May 18, 2013
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
AlmostFlatLands
Downloads
4,458
Recent files
  • R: v0.2.1 for CB 1.5.2-R0.1 May 18, 2013
  • R: v0.2 for CB 1.4.7-R1.0 Feb 10, 2013
  • A: v0.2-SNAPSHOT for CB 1.4.7-R0.1 Jan 28, 2013
  • R: v0.1 for CB 1.4.6-R0.1 Dec 29, 2012

Authors