Skip to content

feat(structures): add configurable template generation module - #31

Open
cuccuc377-dev wants to merge 2 commits into
Polari-Stars-MC:26.1from
cuccuc377-dev:feat/structures-module
Open

cuccuc377-dev wants to merge 2 commits into
Polari-Stars-MC:26.1from
cuccuc377-dev:feat/structures-module

Conversation

@cuccuc377-dev

Copy link
Copy Markdown

功能

新增独立的 ww_structures 结构生成模块。管理员可通过 config/ww_structures/definitions/*.json 和 templates/*.nbt 添加原版结构方块模板,并配置群系、生成间距与概率、随机盐、高度、旋转、实体生成、地形起伏、流体和基础地形方块条件。

/wwstructure locate <名称> 查询当前维度已生成结构记录中最近的一处,/wwstructure search <名称> [半径] 使用原版结构算法搜索未探索区域;坐标索引按维度保存。README 与独立配置指南均已更新,并附带可启用的示例遗迹。

验证

  • clean build:通过,包含原有 HFAS 编译。
  • :structures:test:9 项单元测试通过。
  • :structures:runGameTest:1 项实际游戏测试通过,验证数据包注册、结构搜索、群系/高度/地面条件、模板旋转与跨区块放置、结构片段持久化及查询命令。

配置在世界启动时读取,修改后需要重启;不会回填已生成的区块。

@Viola-Siemens Viola-Siemens left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么把没有引用的临时文件搞上来?如果非要在你本地留存,在该目录添加 gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants