Skip to content

Comments

feat: 强化NBT编辑器功能,添加编辑功能#5095

Draft
Mine-diamond wants to merge 8 commits intoHMCL-dev:mainfrom
Mine-diamond:NBT-page-enhance
Draft

feat: 强化NBT编辑器功能,添加编辑功能#5095
Mine-diamond wants to merge 8 commits intoHMCL-dev:mainfrom
Mine-diamond:NBT-page-enhance

Conversation

@Mine-diamond
Copy link
Contributor

@Mine-diamond Mine-diamond commented Dec 30, 2025

resolves #3658
resolves #3597


考虑到OpenNBT已经归档,但是其在存在一些不足:

  1. 它的snbt的处理存在一些bug,很多格式无法解析(这导致难以添加snbt相关功能)
  2. 它的CompoundTag的实现也不支持调整内部标签顺序(这导致不能调整tag顺序,新添加的tag只能在最下面,且如果做撤回功能会导致被删掉的tag无法重新加到它本来的位置而只能在最下面)

我将fork一份新库 MicaNBT 并对不足功能进行改进,再基于 MicaNBT 制作 HMCL NBT 编辑器。同时,该库本身将包含更多的功能比如mca文件的读取等,而不是完全写在HMCL中


  • 编辑值
  • 添加/删除值
  • 复制值
    • 复制显示的文本
    • 复制为SNBT
  • 搜索
  • 撤回/重做系统
  • 支持更多格式(litematic, nbt, schematic, schem)
  • 打开NBT页面时依然可以拖动文件来打开新页面

现在byte, short, int, long, float, double, string节点显示的文本将使用SNBT格式

也许会做:

@Calboot
Copy link
Contributor

Calboot commented Feb 1, 2026

NBT 编辑功能将在 #5366 中接入原理图管理界面

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.

[Feature] 支持编辑 nbt [Feature] 添加查看/修改 litematic 文件

2 participants