SimCity Expansion
为 New-Simukraft-1.21.1 打造的建筑扩展包管理器
将原版、Litematica 和 WorldEdit 结构导入游戏,将其转换并安装为可建造的 SimuKraft 建筑,通过类 Litematica 的管理器进行编辑,并打包为一键安装的 zip 压缩包进行分享。
目录
概述
SimCity Expansion 是一款适用于 Minecraft 1.21.1 的 NeoForge 模组,它为 New-Simukraft-1.21.1(一款城市建设模组)添加了完整的建筑扩展包工作流。它允许你从三种常见格式导入结构,将其转换为 SimuKraft 的可建造格式,通过类 Litematica 的管理器进行组织和编辑,并将其打包为便携式 zip 压缩包,以便一键安装和分享。
与 SimuKraft 的集成是一种纯文件系统约定——模组会在 <game dir>/simukraftbuilding/<category>/ 目录下写入 .sk 和 .nbt 文件,因此对 SimuKraft 没有编译时依赖。管理器基于 Minecraft 自身的 GUI 工具包构建,无需额外库支持,命令接口也可在专用服务器上运行。
功能特性
- 三种结构格式 —— 原版
.nbt、Litematica .litematic(多区域自动合并)以及 Sponge/WorldEdit .schem(v1/v2/v3),安装时均会转换为 SimuKraft 的原版可建造格式。
- 稳健的转换机制 —— 旧结构会通过游戏 DataFixer 进行升级;缺失的模组方块会针对注册表进行检测;方块实体内容(如箱子库存、告示牌等)会被保留(实体则不会)。
- Litematica 风格管理器(按
\ 打开)—— 包含文件树、固定宽度信息面板、材料列表以及分层预览:内嵌缩略图、真实方块 3D 场景、等距体素视图和俯视地图。
- 完整结构编辑器 —— 放置 / 破坏 / 拾取 / 替换、画笔绘制、框选并支持填充 / 边框 / 空心 / 扩展、复制 / 剪切 / 粘贴、旋转与镜像、对称轴、撤销 / 重做、切片平面以及预设相机视角;支持导出为
.litematic 或直接保存并安装。
- 从世界中捕获 —— 在游戏中标记两个角点,将选区捕获为蓝图,并可选择性地包含方块实体内容。
- Zip 打包生态系统 —— 通过清单追踪安装 / 卸载;一键将已安装的建筑导出为可分享的打包文件;可选的打包图标和
index.json 文件清单;透传 SimuKraft 原生工作/交易定义(v2 格式)。
- 无硬性依赖 —— 管理器运行于 Minecraft 自身的 GUI 工具包之上,SimuKraft 仅通过文件系统集成,因此两者均非编译时依赖项。
- 服务器友好 ——
/buildpack 命令(操作者等级 2,支持 Tab 补全)可在专用服务器上安装松散文件和打包文件,并捕获区域,复用与 GUI 相同的转换管道。
- 本地化支持 —— 提供英文、简体中文和繁体中文;数字、日期和文件大小会根据当前游戏语言进行格式化。
要求与安装
| 要求 |
版本 |
| Minecraft |
1.21.1 |
| NeoForge |
21.1.233 或更高 |
将 jar 文件放入你的 mods/ 文件夹中——没有其他模组依赖。游戏内的管理器在客户端开箱即用;在专用服务器上,jar 文件以无头模式加载并暴露 /buildpack 命令。
打开管理器
在游戏内按下 </kbd>(反斜杠)。所有按键绑定均可在 选项 -> 控制 中的模组类别下重新绑定。
| 操作 |
默认按键 |
| 打开构建包管理器 |
\ |
| 设置世界选择角 A |
[ |
| 设置世界选择角 B |
] |
| 将选区保存为蓝图 |
' |
| 切换“包含方块实体内容” |
未绑定 |
| 清除世界选择 |
未绑定 |
管理器
左侧面板有三个标签页:
- 导入文件 — 导入目录中的独立
.nbt / .litematic / .schem 文件。
- 打包构建包(Packs) — 导入目录中的 zip 格式构建包,以可展开的树状结构显示(构建包 -> 分类 -> 建筑)。无需先解压即可直接预览和阅读其中的任何建筑。
- 已安装(Installed) — 已存在于 SimuKraft 建筑目录中的建筑。
右侧的信息面板显示元数据行、预览图、材料列表(按方块类型统计,缺失方块会标记)以及 .sk 元数据表单(在 Import 选项卡上可编辑,在其他地方只读)。它支持拖放导入、搜索、排序、批量安装和双击删除。当你浏览带有图标的打包构建包时,图标会显示在预览区域中。
结构编辑器
在编辑器中打开一个结构,以便在安装前对其进行完善:
- 编辑(Edit) — 放置、破坏、拾取和替换方块;使用可调节大小和笔触的画笔进行绘制;一次性移除或替换整个方块类型。
- 选择(Selection) — 框选一个区域(点击两个单元格或拖动矩形面),然后填充、加框、挖空、扩展或清除该区域,并支持复制、剪切和粘贴。
- 变换(Transform) — 旋转 90 度并沿任意轴镜像,镜像编辑时设有对称轴。
- 历史记录(History) — 撤销和重做。
- 视图(View) — 循环切换切片平面、适配并聚焦所选区域、预设相机角度、网格和小工具(gizmo)开关,以及透视模式切换。
- 输出(Output) — 保存为新文件、保存并安装,或导出为
.litematic 格式。
在编辑器内按下 H 可查看完整的快捷键列表。
从世界中捕获构建物
在你的世界中建造一些东西,然后在不退出游戏的情况下将其转换为蓝图:
- 注视一个方块并按下 [ 设置角点 A,然后按下 ] 设置角点 B。选择框将绘制在世界中。
- 按下 ' 捕获所选区域并将其导出到导入目录。
- 可选操作:绑定“包含实体内容”键以捕获箱子库存等数据,并绑定“清除选择”键以重置角点。
服务器上也提供相同的功能,通过 /buildpack capture 命令实现(参见 Commands)。
构建包
建筑被分为五个固定类别:residential(住宅)、commercial(商业)、industry(工业)、public(公共)和 other(其他)。
- 安装/卸载 — 安装一个构建包会将所有建筑转换为对应分类的目录,并在
simcity_expansion/installed_packs.json 中记录清单,因此卸载时会精确移除该包添加的文件。
- 导出(已安装选项卡 -> 导出)— 将列出的建筑(尊重当前搜索过滤器)打包为一个 zip 文件。选项包括:
- 包含
.sk 元数据,
- 包含 SimuKraft 的工作/交易 JSON,
- 包含 图标 — 勾选此框并将路径留空,以自动从第一个建筑的预览图中渲染生成一个图标,或者提供自定义 PNG 路径。
index.json 文件清单(包含每个打包文件的类型、分类、大小和 SHA-256 值)始终写入在 zip 根目录。
- 清单 —
pack.json(格式 2)包含 id、name、version、author、description、可选的 icon 以及 generated 时间戳。
完整的整合包规范(目录布局、pack.json、.sk / .meta.json 元数据、原生任务/交易 JSON、icon.png 和 index.json)详见
docs/pack-format.zh.md。
结构格式
| 扩展名 |
来源 |
安装时的转换 |
.nbt |
原版结构方块模板 |
原样安装;旧版本自动升级 |
.litematic |
Litematica 投影 |
多区域合并为一个包围盒;读取嵌入的名称/作者/创建时间/缩略图 |
.schem |
Sponge / WorldEdit 蓝图 |
支持 v1、v2 和 v3 |
所有格式在安装时均转换为原版 .nbt 格式(SimuKraft 的构建系统仅读取原版格式)。转换过程中,结构会 DataFixer 升级到当前游戏版本,块实体位置会被重新映射并保留,调色板会与注册表检查以查找缺失的方块,且合并后的体积限制为 16,000,000 个方块。
目录布局
<game dir>/
├── simcity_expansion/
│ ├── import/ 导入目录(将零散文件和 zip 包放入此处)
│ ├── export/ 导出的构建包
│ └── installed_packs.json 已安装包的注册表
└── simukraftbuilding/<category>/ SimuKraft 建筑目录(安装目标位置)
命令
所有 /buildpack 子命令需要操作员等级 2(游戏管理员),并提供自动补全功能。
| 命令 |
描述 |
/buildpack list |
列出导入目录中的文件 |
/buildpack packs |
列出已安装的包 |
/buildpack install <file> [category] [name] |
安装一个零散的结构文件 |
/buildpack installpack <zip> |
安装整个 zip 包 |
/buildpack uninstallpack <id> |
通过 ID 卸载一个包 |
/buildpack activate <zip> |
在虚拟环境中向 SimuKraft 提供包(无需安装)——需要 SimuKraft |
/buildpack deactivate <id> |
停止提供一个已激活的包 |
/buildpack active |
列出当前处于激活状态的包 |
/buildpack capture <from> <to> [name] [format] |
将一个区域捕获为蓝图 |
文档
| 文档 |
受众 |
| 使用指南 |
玩家:导入、安装、管理、导出 |
| 包格式规范 v2 |
包作者:布局、pack.json、元数据、转换 |
还有中文版本:usage.zh.md 和
pack-format.zh.md。
从源代码构建
该项目使用 Gradle Wrapper 和 NeoForge ModDevGradle 工具链(JDK 21)。
./gradlew build
生成的 jar 文件会写入 build/libs/。
许可证
版权所有。Copyright © 2026 xinian.
本资源仅供参阅;未经许可,不得用于重新分发或衍生作品。
在整合包中使用时,必须链接回原始来源。
致谢
关于旧版本
SimCity Expansion
Building expansion-pack manager for New-Simukraft-1.21.1
Bring vanilla, Litematica, and WorldEdit structures into the game, convert and install
them as buildable SimuKraft buildings, edit them in a Litematica-style manager, and
share them as one-click zip packs.
Contents
Overview
SimCity Expansion is a NeoForge mod for Minecraft 1.21.1 that adds a complete building
expansion-pack pipeline to New-Simukraft-1.21.1 (a city-building mod). It lets you import
structures from three common formats, convert them into SimuKraft's buildable format,
organise and edit them through a Litematica-style manager, and package them as portable
zip packs for one-click install and sharing.
Integration with SimuKraft is a pure file-system convention — the mod writes .sk and
.nbt files under <game dir>/simukraftbuilding/<category>/ — so there is no compile-time
dependency on SimuKraft. The manager is built on Minecraft's own GUI toolkit and needs no
extra library, and the command interface runs on a dedicated server as well.
Features
- Three structure formats — vanilla
.nbt, Litematica .litematic (multi-region
auto-merge), and Sponge/WorldEdit .schem (v1/v2/v3), all converted to SimuKraft's
vanilla buildable format on install.
- Robust conversion — older structures are upgraded through the game DataFixer,
missing mod blocks are detected against the registry, and block-entity contents
(chest inventories, signs, and so on) are preserved (entities are not).
- Litematica-style manager (open with
\) — file tree, fixed-width info panel,
material list, and layered previews: embedded thumbnail, real-block 3D scene,
isometric voxel view, and top-down map.
- Full structure editor — place / break / pick / replace, brush painting, box
selection with fill / frame / hollow / expand, copy / cut / paste, rotate and mirror,
symmetry axis, undo / redo, slice planes, and preset camera views; export to
.litematic or save and install directly.
- Capture from the world — mark two corners in-game, capture the selection as a
blueprint, and optionally include block-entity contents.
- Zip pack ecosystem — manifest-tracked install / uninstall, one-click export of
installed buildings into a shareable pack, an optional pack icon and an
index.json
file manifest, and pass-through of SimuKraft native job/trade definitions (format v2).
- No hard dependencies — the manager runs on Minecraft's own GUI toolkit and SimuKraft
is integrated purely through the file system, so neither is a compile-time dependency.
- Server-friendly — the
/buildpack command (operator level 2, with tab-completion)
installs loose files and packs and captures regions on dedicated servers, reusing the
same conversion pipeline as the GUI.
- Localised — English, Simplified Chinese, and Traditional Chinese; numbers, dates,
and file sizes are formatted per the active game language.
Requirements and installation
| Requirement |
Version |
| Minecraft |
1.21.1 |
| NeoForge |
21.1.233 or newer |
Place the jar in your mods/ folder — there are no other mod dependencies. The in-game
manager works out of the box on a client; on a dedicated server the jar loads headless and
exposes the /buildpack command.
Opening the manager
Press \ (backslash) in-game. All bindings are rebindable under the mod's
category in Options -> Controls.
| Action |
Default key |
| Open the build pack manager |
\ |
| Set world selection corner A |
[ |
| Set world selection corner B |
] |
| Capture the selection as a blueprint |
' |
| Toggle "include block-entity contents" |
unbound |
| Clear the world selection |
unbound |
The manager
The left panel has three tabs:
- Import Files — loose
.nbt / .litematic / .schem files in the import directory.
- Packs — zip build packs in the import directory, shown as an expandable tree
(pack -> category -> building). Any building can be previewed and read directly from
the zip, without extracting it first.
- Installed — buildings already present in SimuKraft's building directory.
The info panel on the right shows metadata rows, a preview, a material list (counted by
block type, with missing blocks flagged), and a .sk metadata form (editable on the
Import tab, read-only elsewhere). It supports drag-and-drop import, search, sort,
batch install, and two-click delete. When you browse a pack that ships an icon, the icon
is shown in the preview area.
Structure editor
Open a structure in the editor to refine it before installing:
- Edit — place, break, pick, and replace blocks; paintbrush with adjustable size and
paint strokes; remove or replace a whole block type at once.
- Selection — box-select a region (click two cells or drag a box face), then
fill / frame / hollow / expand / clear it, with copy, cut, and paste.
- Transform — rotate 90 degrees and mirror along any axis, with a symmetry axis for
mirrored editing.
- History — undo and redo.
- View — cycle slice planes, fit and focus the selection, preset camera angles, grid
and gizmo toggles, and perspective toggle.
- Output — Save as New, Save and Install, or Export
.litematic.
Press H inside the editor for the full shortcut list.
Capturing builds from the world
Build something in your world, then turn it into a blueprint without leaving the game:
- Look at a block and press [ to set corner A, then ] to set
corner B. The selection box is drawn in the world.
- Press ' to capture the selection and export it to the import directory.
- Optionally bind the "include block-entity contents" key to capture chest inventories
and similar data, and the "clear selection" key to reset the corners.
The same operation is available on servers via /buildpack capture (see
Commands).
Build packs
Buildings are grouped into five fixed categories: residential, commercial,
industry, public, and other.
-
Install / uninstall — installing a pack converts every building into the matching
category directory and records a manifest in simcity_expansion/installed_packs.json,
so uninstalling removes exactly the files that pack added.
-
Export (Installed tab -> Export) — packages the listed buildings (respecting the
current search filter) into a zip. Options:
- include
.sk metadata,
- include SimuKraft job/trade JSON,
- include an icon — tick the box and leave the path blank to auto-render one from
the first building's preview, or supply a custom PNG path.
An index.json file manifest (each packed file with its type, category, size, and
SHA-256) is always written at the zip root.
-
Manifest — pack.json (format 2) carries id, name, version, author,
description, an optional icon, and a generated timestamp.
The full pack specification (directory layout, pack.json, .sk / .meta.json metadata,
native job/trade JSON, icon.png, and index.json) is documented in
docs/pack-format.zh.md.
Structure formats
| Extension |
Source |
Conversion on install |
.nbt |
Vanilla structure block template |
Installed as-is; old versions auto-upgraded |
.litematic |
Litematica projection |
Multi-region merge into one bounding box; reads embedded name / author / creation time / thumbnail |
.schem |
Sponge / WorldEdit schematic |
v1, v2, and v3 supported |
All formats are converted to vanilla .nbt on install (SimuKraft's build system only reads
the vanilla format). During conversion the structure is DataFixer-upgraded to the current
game version, block-entity positions are remapped and preserved, the palette is checked
against the registry for missing blocks, and the merged volume is capped at 16,000,000
blocks.
Directory layout
<game dir>/
├── simcity_expansion/
│ ├── import/ import directory (drop loose files and zip packs here)
│ ├── export/ exported build packs
│ └── installed_packs.json installed-pack registry
└── simukraftbuilding/<category>/ SimuKraft building directory (install target)
Commands
All /buildpack subcommands require operator level 2 (game masters) and offer
tab-completion.
| Command |
Description |
/buildpack list |
List the files in the import directory |
/buildpack packs |
List installed packs |
/buildpack install <file> [category] [name] |
Install a loose structure file |
/buildpack installpack <zip> |
Install a whole zip pack |
/buildpack uninstallpack <id> |
Uninstall a pack by its id |
/buildpack activate <zip> |
Serve a pack to SimuKraft virtually (no install) — requires SimuKraft |
/buildpack deactivate <id> |
Stop serving an activated pack |
/buildpack active |
List currently active packs |
/buildpack capture <from> <to> [name] [format] |
Capture a region into a blueprint |
Documentation
| Document |
Audience |
| Usage guide |
Players: import, install, manage, export |
| Pack format spec v2 |
Pack authors: layout, pack.json, metadata, conversion |
Chinese versions are also available: usage.zh.md and
pack-format.zh.md.
Building from source
The project uses the Gradle wrapper and a NeoForge ModDevGradle toolchain (JDK 21).
./gradlew build
The built jar is written to build/libs/.
License
All Rights Reserved. Copyright © 2026 xinian.
This source is published for reference; it is not licensed for redistribution or derivative works without permission.
When using in a modpack, you must link back to the original link.
Acknowledgements
About the old version
- 1.20.1 Forge has been abandoned for development
评论 0
登录后参与评分
还没有评论,来抢沙发吧