Simple World Height
提升任何维度的建筑高度——分别调整,且无需与其他世界生成模组冲突。
规则
只增不减。
其他模组或数据包已设定的值被视为底线。若你在 Amplified Nether(已运行在 640)中请求设置为 512,实际结果为 640,并附带一条解释原因的日志行。此规则由代码强制执行,而非仅靠 UI 显示,因此无论数值如何设定均有效。
minY 被刻意保留不变。移动世界底部会破坏几乎所有世界生成模组的洞穴生成和矿石分布。向上扩展是安全的;向下扩展则不然。
设置方法
两种路径指向同一个配置文件:
- 在世界创建界面中的 World Height 按钮,预设范围从 384 到 2032
config/simple_world_height.json,适用于服务器以及不在预设列表中的数值
两者写入的是同一文件。GUI 仅是便捷层,并非第二个权威来源。
保护现有世界
世界生成时的高度记录在 world 文件夹内的 simple_world_height.json 中。每次启动时会将其与配置进行比对。如果存在差异,以世界为准,并在日志中给出警告。
这并非可选的礼貌行为——更改已生成世界的高度会导致区块截断和数据丢失。如果你确实希望覆盖它,请将 lockToWorldValues 设为 false,但请先备份。
多人游戏
该模组需在客户端和服务端双方安装。
这不是设计选择所致。自 1.20.5 起,服务端仅在注册表条目来自数据包时才完整传输给客户端;对于原版维度类型,则指示客户端使用其本地副本。仅在服务端修改不会传递至客户端,导致客户端拒绝接收到的所有区块高度图。
在单人游戏中,客户端直接从集成服务端读取数值,因此世界的实际高度始终优先。
在专用服务器上,两端的配置必须一致。 客户端无法查询服务端获取这些数值,因此会回退到其自身配置。如果你分发整合包,请同时提供客户端和服务端版本的相同配置文件。
命令
/worldheight info 按维度打印维度类型数值以及世界本身报告的高度限制。可用于检查你的其他世界生成模组实际设置了什么,并确认两者是否一致。
配置
config/simple_world_height.json
lockToWorldValues — 现有世界保持其生成高度(默认 true)
dimensions — 按维度 类型 ID 索引,而非世界 ID
enabled — false 表示默认:完全不触碰高度
height — 目标高度(方块数),向下取整为 16 的倍数
logicalHeight — 0 表示匹配 height。影响传送门和 chorus fruit
detectedBaseline / lastApplied — 由模组写入,仅供参考
未配置条目的维度不会被修改,因此模组化维度默认安全。添加其类型 ID 即可管理它们。
限制
总高度上限确保 minY + height 保持在 Y 2032 以内,且高度会被四舍五入至 16 的倍数。每个额外的区块段都会在每个加载区块上消耗内存,并且这种消耗随玩家数量和视距增长——1032 较为舒适,而 2032 不建议在未测试的情况下在繁忙服务器上启用。
要求
- Fabric Loader
- Fabric API
- Java 21
Simple World Height
Raise the build height of any dimension — separately, and without
fighting your other worldgen mods.
The rule
Only ever raises, never lowers.
Whatever another mod or datapack has already set is treated as the
floor. Ask for 512 in a Nether that Amplified Nether already runs at
640, and you get 640 plus a log line explaining why. The rule is
enforced in code, not just in the UI, so it holds no matter how the
value was set.
minY is deliberately left alone. Moving the bottom of the world
breaks cave generation and ore distribution in practically every
worldgen mod. Extending upward is safe; extending downward is not.
Setting it
Two paths to the same config file:
- A World Height button in the world creation screen, with presets
from 384 up to 2032
config/simple_world_height.json, for servers and for values that
are not in the preset list
Both write the same file. The GUI is a convenience layer, not a second
source of truth.
Existing worlds are protected
The height a world was generated with is recorded in
simple_world_height.json inside the world folder. On every later
start it is compared against the config. If they differ, the world
wins and you get a warning in the log.
This is not optional politeness — changing the height of a generated
world leaves you with cut-off chunks and lost data. Set
lockToWorldValues to false if you really want to override it, and
back up first.
Multiplayer
The mod is required on both sides.
This is not a design choice. Since 1.20.5 the server only transmits
registry entries in full when they come from a datapack; for vanilla
dimension types it tells the client to use its own copy instead. A
server-only change never reaches the client, which then rejects every
chunk heightmap it receives.
In singleplayer the client reads the values straight from the
integrated server, so the world's actual height always wins.
On a dedicated server, the config must match on both sides. The
client cannot query the server for these values, so it falls back to
its own config. If you ship a modpack, ship the same config file with
the client and server versions.
Commands
/worldheight info prints, per dimension, both the dimension type
values and the height limit the world itself reports. Useful for
checking what your other worldgen mods actually set, and for confirming
the two agree.
Configuration
config/simple_world_height.json
lockToWorldValues — existing worlds keep their generated height (default true)
dimensions — keyed by dimension type ID, not world ID
enabled — false means default: the height is not touched at all
height — target height in blocks, rounded down to a multiple of 16
logicalHeight — 0 means match height. Affects portals and chorus fruit
detectedBaseline / lastApplied — written by the mod, informational only
Dimensions without a config entry are never touched, so modded
dimensions are safe by default. Add their type ID to manage them.
Limits
Total height is capped so that minY + height stays within Y 2032, and
heights are rounded to a multiple of 16. Every additional chunk section
costs memory on every loaded chunk, and that scales with player count
and view distance — 1024 is comfortable, 2032 is not something to
enable on a busy server without testing.
Requirements
- Fabric Loader
- Fabric API
- Java 21
评论 0
登录后参与评分
还没有评论,来抢沙发吧