Repository navigation
feat(structures): add configurable template generation module - #31
Open
cuccuc377-dev wants to merge 2 commits into
Open
cuccuc377-dev wants to merge 2 commits into
cuccuc377-dev wants to merge 2 commits into
Conversation
Viola-Siemens
requested changes
Oct 22, 2026
Viola-Siemens
left a comment
Collaborator
There was a problem hiding this comment.
为什么把没有引用的临时文件搞上来?如果非要在你本地留存,在该目录添加 gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能
新增独立的
ww_structures结构生成模块。管理员可通过config/ww_structures/definitions/*.json和templates/*.nbt添加原版结构方块模板,并配置群系、生成间距与概率、随机盐、高度、旋转、实体生成、地形起伏、流体和基础地形方块条件。/wwstructure locate <名称>查询当前维度已生成结构记录中最近的一处,/wwstructure search <名称> [半径]使用原版结构算法搜索未探索区域;坐标索引按维度保存。README 与独立配置指南均已更新,并附带可启用的示例遗迹。验证
clean build:通过,包含原有 HFAS 编译。:structures:test:9 项单元测试通过。:structures:runGameTest:1 项实际游戏测试通过,验证数据包注册、结构搜索、群系/高度/地面条件、模板旋转与跨区块放置、结构片段持久化及查询命令。配置在世界启动时读取,修改后需要重启;不会回填已生成的区块。