Worldgen Devtools
这是一个模组,提供了简化世界生成数据包和模组创建的工具。
注册表(世界生成)重载
需要使用 reloadRegistries 游戏规则在每个世界中单独启用。
警告:虽然该工具目前相当稳定,但仍有可能损坏你的存档。因此请仅在测试存档中启用此功能。
允许通过 /reload 命令,或在启用或禁用数据包时使用 /datapack 命令来重载注册表内容(例如所有世界生成数据)。如果没有此模组,需要重新打开世界才能使更改生效。
条目永远不会从注册表中移除,即使它们不再存在于已加载的数据包中。相反,它们会被标记为过时,这样就不会对世界生成产生影响,也无法被其他数据包文件引用。 不过,现有的区块仍然可以使用这些过时的条目,直到世界重新打开。世界高度和噪声形状(即高度和单元格大小)无法重新加载。
客户端同步
某些重新加载的数据会影响客户端,例如生物群系颜色、维度类型和盔甲纹饰。在多人游戏中,维度和生物群系效果需要同步。这会导致客户端重绘所有区块。如果这种行为不可取,可以通过 syncAfterRegistryReload 游戏规则禁用它。
重置区块

/resetchunks [<range>] 命令会重置玩家周围指定范围内的区块,并使用当前的世界生成数据和设置重新生成它们。默认值为 0(即仅重置当前所在的区块)。如果你想重置某个结构,需要重置该结构起始位置所在的区块。
注意:此实现实际上使用了正常的世界生成线程,因此性能远优于未注册的原版命令。
彩色拼图方块

根据指定的“Name”或“Target Name”对拼图方块进行着色。如果设置了除 minecraft:empty 以外的“Name”,则拼图方块的颜色基于“Name”的哈希值确定。否则,如果设置了除 minecraft:empty 以外的“Target Name”,则拼图方块的颜色基于“Target Name”的哈希值确定。
如果“Name”和“Target Name”均设置为 minecraft:empty,则拼图方块将呈现未激活状态,箭头和连接器显示为灰色。
在物品栏中,如果拼图方块存储了 NBT 数据(Shift+点击拾取),则会以关联颜色渲染,并在工具提示中显示“Name”、“Target Pool”和“Target Name”。
获取密度命令
用于调试任意位置密度函数值的命令。
/getDensity density_function <df> [<pos>]
返回指定位置(或玩家所在位置)处密度函数 df 的值。
/getDensity noise_router <entry> [<pos>]
返回当前维度噪声路由器中给定条目所指定的密度函数在指定位置(或玩家所在位置)处的值。
世界生成性能分析

每个区块每一步骤的生成时间会被记录并保存在该区块中。要访问这些数据,请使用 /chunkprofiling <range> 命令。range 参数控制用于平均计算性能的区块数量;默认为 0。
定位结构

使用 /locate feature <configured_feature> 来定位附近已配置的结构。如果当前区块包含该结构多次,它将列出最多 5 个最近的位置。此功能仅在该模组安装时生成的区块有效。
日志改进
- 放置结构中空的范围也会记录导致问题的已放置结构。
Chase
/chase 命令提供了选项,用于同步两个不同 Minecraft 实例之间的玩家位置。对于比较世界生成(worldgen)的差异非常有用。这是一个原版命令,仅由本模组注册。
游戏规则
本模组添加的游戏规则:
| 游戏规则 | |
|---|---|
maxChunkStatus |
应执行世界生成的哪些步骤? -> NOISE_ONLY: 仅生成石头、空气、水和熔岩。-> SURFACE: 应用地表规则。-> SURFACE_AND_CARVERS: 应用地表规则和空洞挖掘器。-> ALL: 应用地表规则、空洞挖掘器和结构特征。 |
applyProcessorLists |
是否应用结构的处理器列表? |
applyGravityProcessor |
地形匹配的结构部件是否与地形匹配? |
keepJigsaws |
结构生成后是否保留拼图方块? |
reloadRegistries |
/reload 命令是否也应重载注册表? |
syncAfterRegistryReload |
重载后是否向所有客户端重新发送注册表内容? |
saveChunks |
是否保存区块?禁用时不会删除旧区块。 |
Worldgen Devtools
This is a mod that provides tools simlifying the creation of worldgen datapacks and mods.
Registry (worldgen) Reloading
Needs be enabled per world using the reloadRegistries gamerule.
Warning: While this should be fairly stable, this tool can probably still corrupt your worlds. So only enable in testing worlds
Allows the reloading of registry content (such as all worldgen data) using the /reload command, or when enabling or
disabling a datapack using the /datapack command. Without this mod, the world needs to be reopened for changes to take
effect.
Entries are never removed from registries, even when no longer present in the loaded datapacks. Instead, they are marked as outdated, so that they don't have an effect on world generation and can't be referenced from other datapack files. Existing chunks can still use the outdated entries though, until the world is reopened. The world-height and noise shape (i.e. height and cell size) can't be reloaded.
Client Syncronization
Some reloaded data affects the client, such sa biome colors, dimension types, and armor trims. In multiplayer, dimension
and biome effects need to be synconized. This causes the client to redraw all chunks. If this behaviour is undesireble,
it can be disabled using the syncAfterRegistryReload gamerule.
Reset Chunks

The /resetchunks [<range>] command resets the chunks surrounding the player in the specified range - regenerating it with the current worldgen data and settings. Defaults to 0 (i.e. only the current chunk). If you want to reset a structure, you need to reset the chunk of the structure start.
Note: This implementation actually used the normal worldgen thread, and thus has much better performance than the unregistered vanilla command.
Colored Jigsaw Blocks

Colors Jigsaw blocks based on their specified "Name" or "Target Name". If a "Name" other than minecraft:empty is set,
the jigsaw block is colored based on the hash of the "Name". Otherwise, if a "Target Name" other than minecraft:empty
is set, the jigsaw block is colored based on the hash of the "Target Name".
If both "Name" and "Target Name" are set to minecraft:empty the jigsaw block is rendered deactivated, with grayed
out arrows and connectors.
In the inventory, if a jigsaw block has stored NBT (Shift+Pick), then it is rendered with the associated color and a tooltip indicated the "Name", "Target Pool", and "Target Name".
Get Density Command
Command to debug the values of density functions are any position.
/getDensity density_function <df> [<pos>]
Returns the value of the density function df at the specified postion (or the position of the player)
/getDensity noise_router <entry> [<pos>]
Returns the value of the density function specified in the given entry of the noise router of the current dimension at the specified postion (or the position of the player)
Profiling of Worldgen Performance

The time it took to generate each step of each chunk is recorded and saved in each chunk. To access it, use
the /chunkprofiling <range> command. Range controlls the amount of chunks to average the performance over; defaults
to 0.
Locate Feature

Use /locate feature <configured_feature> to locate a configured feature nearby. If the current chunk contains the feature
multiple times, it will list the up to 5 closest positions. This only works if the chunk is generated while this mod is
installed.
Logging improvements
- Empty height ranges in placed features also log the placed feature that causes the problem.
Chase
The /chase command provides options to syncronize of the player positions between two different instances of Minecraft. Usefull for
comparing differences in worldgen. This is a vanilla command, simply registered by this mod.
Gamerules
Gamerules added by this mod:
| Gamerule | |
|---|---|
maxChunkStatus |
Which steps of world generation should be done? -> NOISE_ONLY: Generates stone, air, water and lava only. -> SURFACE: Applies the surface rules. -> SURFACE_AND_CARVERS: Applies surface rules, and carvers. -> ALL: Applies surface rules, carvers, and features. |
applyProcessorLists |
Should processor lists of structures be applied? |
applyGravityProcessor |
Should terrain matching structure pieces match the terrain? |
keepJigsaws |
Should the jigsaw blocks be kept after structure generation? |
reloadRegistries |
Should the /reload command also reload registries? |
syncAfterRegistryReload |
Should all clients be resend the registry content after reloading? |
saveChunks |
Should chunks be saves? Old chunks are not deleted when disabling. |
下载 Worldgen Devtools
下载 Worldgen Devtools
下载 Worldgen Devtools
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Worldgen Devtools
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Worldgen Devtools
下载 Worldgen Devtools
下载 Worldgen Devtools
下载 Worldgen Devtools
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Worldgen Devtools
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Worldgen Devtools
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复维度类型的重载问题
- 修复在单人游戏中重载后环境属性的刷新问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧