一个小型模组,添加了一个命令,允许玩家预生成区块。
功能
- 预生成区块
- 仅需服务器端安装
- 每次加载世界时都能生成一片区域的区块。
使用方法
此模组为 Minecraft 添加了以下命令:
/chunkgen <x> <y> <height> <width> [dimension]
其中 x 和 y 是起始区块坐标,height(高度)和 width(宽度)描述了以 x,y 为中心、需要生成的区块矩形区域的大小,dimension(维度)则指要在哪个维度中生成区块。
所有参数都应为整数,但 x 和 y 也可以设置为 ~,代表玩家当前的位置。
dimension 是可选参数。
/chunkgen stop
可用于停止正在进行的区块生成。
配置文件
chunkgen 的配置文件位于常规路径下(config/chunkgen.cfg)。将 width 和 height 设置为非零值后,即可在世界加载时额外生成区块。这将在每次世界加载时运行,但不会覆盖已经生成过的区块。这样做也不会带来性能损失。
numChunksPerTick 的值决定了每个服务器刻(Server Tick)内生成的区块数量。默认值为 1。设置此值时请谨慎,因为如果设得过高可能会导致严重的卡顿。
配置值可以通过游戏内的 Mod Config 菜单进行设置。
功能请求
请提交拉取请求(Pull Request),或开启 Issue 并将其标记为 feature-request。
权限
欢迎在任何整合包或服务器中使用此模组,但请注明作者信息(gecgooden)。
A small mod that adds a command to allow players to pre-generate chunks.
Features
- Pre-generate chunks
- Server side only required
- Ability to generate an area of chunks every time a world loads.
Usage
This mod adds the following command to Minecraft:
/chunkgen <x> <y> <height> <width> [dimension]
where x and y are the origin chunk coordinates, height and width describe a rectangle centered at x,y of chunks to generate and dimension is the dimension ID to generate the chunks in.
All arguments should be whole numbers, however x and y may also be ~ which represents the players current position.
dimension is an optional argument.
/chunkgen stop
Can be used to stop an in-progress chunk generation.
Config File
The config file for chunkgen is in the expected place (config/chunkgen.cfg). Setting width andheight to something non-zero will allow you to generate extra chunks as the world is loading. This will run everytime the world is loaded, however it will not overwrite chunks that have already been generated. There are also no performance hits from doing this.
The value numChunksPerTick dictates how many chunks are generated per Server Tick. The default value is 1. Take care when setting this value as it may cause severe lag if set too high.
Configuration values can be set via the in-game Mod Config menu.
Feature Request
Either submit a pull request, or open an issue and label it as a feature-request.
Permissions
Feel free to use this mod in any modpack or server, however please credit me (gecgooden).
评论 0
登录后参与评分
还没有评论,来抢沙发吧