
一个简单的世界生成器,用于创建看起来稍微不那么单调的平坦世界。
用法
可以使用 Multiverse 通过以下命令创建一个近乎平坦的世界:
/mv create <world_name> NORMAL -g AlmostFlatLands
也可以使用 bukkit.yml 文件中的 worlds 部分进行配置,相关方法的详细信息请参阅 Wiki。
配置文件
默认配置文件如下所示:
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(防止生成)
设置为 true 时,使用此生成器创建的世界中将不允许任何生物生成。
set-world-type(设置世界类型)
当设置为 true 时,创建的世界其类型将被设置为 FLAT。这可以修复虚空雾的问题,但可能会与其他插件产生冲突,且不受 Bukkit 官方支持。
world-height(世界高度)
世界的基准高度。请注意,任意位置的最大 Y 值可能与该值略有偏差(几个方块)。
world-biome(生物群系)
要分配给该世界的生物群系名称。
world-grass-chance(草丛概率)
控制世界中长草的数量。将其设置为 100 意味着每个草方块上方都会有一株长草。
world-flower-chance(花朵概率)
与 world-grass-chance 类似,但针对花朵。请注意,此概率是指在长草生成后剩余方块数量中的比例。
world-tree-chance(树木概率)
控制每个区块包含树木的概率。将其设置为 100 意味着大约每 16 个方块会有一棵树。
world-tree-types(树木类型)
要生成的树木列表,每次生成树木时都会从该列表中随机选择一种。
贡献代码
非常欢迎对本项目的贡献。如果你有想要实现的功能并且知道如何优雅地实现它,请考虑 fork 仓库并提交拉取请求(Pull Request)。只要遵循以下简单指南,这些提交都将被接受。
- 不要修改 pom.xml 文件的结构。如果需要添加依赖项可以自由添加,但格式和结构不应改变。
- 如果你公开了新的 API 方法,请为其添加 JavaDoc 注释,但不要对内部代码过度注释。
- 遵循现有的代码风格,不过不要在每个空格问题上过于纠结!
所有使用的依赖项现在都可以从公共 Maven 仓库获取,因此你不再需要为了做一个简单的改动而去构建多个其他项目。
源代码
在 GitHub 上可用
开发版本
自上次发布以来的更改

下载
可以在提供的持续集成服务器上获取本项目的开发构建版本。这些版本未经 BukkitDev 工作人员批准。请自行承担使用风险。
下载统计


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.
Download Stats

评论 0
登录后参与评分
还没有评论,来抢沙发吧