v0.2.7
请注意,本项目仍处于早期开发阶段,因此仍有可能存在许多未知的 bug,请在使用前注意备份!
ATTENTION: This project is still under EARLY development stage. Therefore, many unknown bugs may still exist. BACK UP your world!
详细更新信息见此。
Click HERE to read detail update information.
新内容 New
命令 Commands
-
为 /atmosphere 命令加入
data子命令,用于通过 NBT 路径直接查询或修改大气系统的原始 NBT 数据。语法为:/atmosphere data query [NBT 路径:NBT 路径] [位置:方块坐标] [乘数:双精度浮点数]/atmosphere data modify <NBT 路径:NBT 路径> <NBT 值:NBT 标签> [位置:方块坐标]Added
datasub-command to /atmosphere, for querying or modifying the raw NBT data of the atmosphere system directly via NBT paths. Syntax:/atmosphere data query [NBT Path:NBT Path] [Position:BlockPos] [Multiplier:Double]/atmosphere data modify <NBT Path:NBT Path> <NBT Value:NBT Tag> [Position:BlockPos]-
query子命令可以在聊天栏展示指定路径下匹配到的格式化的 NBT 数据,并在查询结果只有单个标签时在 QueryResult 返回值。数字类型 NBT 标签会返回其数值,而复合标签、列表标签均会返回其所含有的元素数量;The
querysub-command displays the formatted NBT data matched by the given path in chat, and returns a value via QueryResult when the query result contains exactly one tag: numeric tags return their values, while compound and list tags return the number of elements they contain; -
由于大气系统在初始化后只会持续序列化为原始 NBT 数据,不会从原始 NBT 数据再度反序列化,所以目前
modify子命令并不具有实际意义的修改大气系统的状态的能力;Since the atmosphere system, once initialized, only keeps serializing itself into raw NBT and never deserializes from it again, the
modifysub-command currently cannot modify the actual state of the atmosphere system in any meaningful way;
-
-
/atmosphere 的
query子命令现在支持查询任意已注册的流体和温度属性。当属性名不在预设属性表时,游戏会按地理属性注册名解析并尝试查询。若查询成功,则流体属性会展示其流体量(mB),温度属性会展示温度(开尔文 K),并且都有 QueryResult 返回值。The
querysub-command of /atmosphere now supports querying any registered fluid and temperature properties. When the property name is not in the preset property table, the game resolves it as a geography property registry name and attempts the query. On success, fluid properties display their fluid amount (mB), temperature properties display the temperature (in Kelvin), and both have QueryResult return values.
镍 API / Nickel API
-
加入了 SNBT(Stringified Named Binary Tag,字符串化的 NBT)支持:
Added SNBT (Stringified Named Binary Tag) support:
-
现在 Nickel API 具有解析并格式化输出 SNBT 的能力;
Nickel API can now parse SNBT and format NBT into SNBT output;
-
加入了 SNBT 操作能力以及相应接口;
Added SNBT operations along with the corresponding interfaces;
-
加入了以下 SNBT 操作:
Added the following SNBT operations:
-
concat(STRING,STRING)concat(COMPOUND,COMPOUND)concat(LIST,LIST)concat(BYTE[],BYTE[])concat(INT[],INT[])concat(LONG[],LONG[])用于将两个 NBT 标签拼接成一个新的 NBT 标签;
Concatenates two NBT tags into a new NBT tag;
-
bool(NUMBER)用于将输入的数字转换为布尔值;
Converts the input number into a boolean;
-
uuid(STRING)用于将输入的 UUID 转换为 INT[] 表示的 UUID;
Converts the input UUID into an INT[]-represented UUID;
-
uuid(STRING,STRING)用于将输入的 UUID 转换为具有指定 Most/Least 键的复合标签;
Converts the input UUID into a compound tag with the specified Most/Least keys;
-
-
-
加入了 NBT 路径(NBTPath):
Added NBT paths (NBTPath):
-
现在 Nickel API 具有解析 NBT 路径并以此匹配、修改 NBT 的能力;
Nickel API can now parse NBT paths and use them to match and modify NBT;
-
加入了 NBT 路径方法和参数预处理功能,以及相应 API;
Added NBT path methods and argument preprocessing, along with the corresponding APIs;
-
加入了以下 NBT 路径方法:
Added the following NBT path methods:
-
values()获取复合标签中的所有值;values()— gets all values in a compound tag; -
pattern(STRING)根据正则表达式过滤字符串和数值;pattern(STRING)— filters strings and numbers by a regular expression; -
match(BASE)根据输入的 NBT 标签过滤;match(BASE)— filters by the input NBT tag; -
type(STRING)type(NUMBER)指定需要的 NBT 标签类型;type(STRING)/type(NUMBER)— specifies the required NBT tag type;
-
-
-
加入了 NBTMatcher 功能,用于实现基于 NBT 标签的过滤功能;
Added NBTMatcher, for filtering based on NBT tags;
-
加入了 NBT 复合标签、NBT 标签和 NBT 路径三种命令参数节点;
Added three command parameter nodes: NBT Compound Tag, NBT Tag and NBT Path;
-
加入了引号包裹的字符串内的转义功能,具有如下转义:
Added escape support inside quoted strings, with the following escapes:
-
普通转义:
\\、\'、\"、\/、\n、\t、\r、\b、\f、\a、\v、\e、\s;Regular escapes:
\\,\',\",\/,\n,\t,\r,\b,\f,\a,\v,\e,\s; -
Unicode 码点转义:
\xHH、\uHHHH、\UHHHHHHHH、\DDD;Unicode code point escapes:
\xHH,\uHHHH,\UHHHHHHHH,\DDD; -
Unicode 字符名转义:
\N{字符名},如\N{LATIN SMALL LETTER A};Unicode character name escapes:
\N{NAME}, e.g.\N{LATIN SMALL LETTER A};注意该转义底层基于 IBM 的 ICU 库实现,在普通 Forge 环境下可能因缺乏相关资源文件而无法使用;
Note that this escape is implemented on top of IBM’s ICU library, and may be unavailable in plain Forge environments due to missing ICU resource files;
-
-
加入了两个网络包,用于向客户端展示 NBT 数据和更好的补全提示;
Added two network packets, for displaying NBT data on the client side and for better suggestion reminders;
-
加入了 FieldAccessor 抽象层以及两个不同 Java 版本的实现,从而让字段的获取和修改得以在 Forge 和 Cleanroom 两种环境下均正常运行。
Added the FieldAccessor abstraction layer with two implementations for different Java versions, so that reading and modifying fields works properly in both Forge and Cleanroom environments.
土壤系统 Soil System
-
土壤相关方块的物品形式现在也会按含水量加载对应的湿度贴图,而不是变成紫黑块。
Item forms of soil-related blocks now also load the corresponding humidity textures according to their humidity level, instead of appearing as the purple-black missing-texture blocks.
变更 Change
API
-
天圆地方 API 从 v0.3.2 升级到 v0.3.3,版本代码从 4 升级到 5。这是一次破坏性变动:
GeoCraft API is upgraded from v0.3.2 to v0.3.3, and the version code from 4 to 5. This is a breaking change:
-
重构了
api/util/math/vec包,移除、重命名或合并了BlockPosI、IVec3i、ICenteredMutableRelativeBlockPos、RelativeBlockPosB、RelativeBlockPosI、RelativeBlockPosS和Vec3b这些类,缩减为MBlockPos和RelativeMVec3i等类;Refactored the
api/util/math/vecpackage:BlockPosI,IVec3i,ICenteredMutableRelativeBlockPos,RelativeBlockPosB,RelativeBlockPosI,RelativeBlockPosSandVec3bare removed, renamed or merged, reduced down toMBlockPosandRelativeMVec3i, etc. ; -
Int10、Int21调整为纯静态工具类,不再允许实例化;Int10andInt21become pure static utility classes and can no longer be instantiated; -
弃用并移除
IDebug标记接口。Deprecated and removed the
IDebugmarker interface.
-
土壤系统 Soil Systems
-
IBlockSoil接口从top.qiguaiaaaa.geocraft.block移动到top.qiguaiaaaa.geocraft.block.soil包。The
IBlockSoilinterface is moved fromtop.qiguaiaaaa.geocraft.blockto thetop.qiguaiaaaa.geocraft.block.soilpackage.
镍 API / Nickel API
-
版本号升级到 v0.0.4,版本代码升级到 -1021。这是一次破坏性更新;
Version is upgraded to v0.0.4, and the version code to -1021. This is a breaking update.
-
解析基础从按空格预切分的词元列表调整为基于游标的输入流(
InputReader)以支持更为复杂的语法;The parsing foundation changes from a whitespace-pre-split token list to a cursor-based input stream (InputReader), in order to support more complex syntax;
-
现在部分语法错误能够向命令执行者展示出错的具体位置;
Some syntax errors can now show the command executor the exact position where the error occurs;
-
移除了智能参数节点,其功能合并到参数节点中;
Removed the smart parameter node; its functionality is merged into the parameter node;
-
参数节点的
checkValid方法更名为accepts,解析方法更名为parse,并新增了用于语法检查和参数作用域解析的scan能力;The checkValid method of parameter nodes is renamed to accepts, the parsing method is renamed to parse, and a new scan capability is added for syntax checking and parameter scope resolution;
-
ISmartNode接口的match相关能力更名为claims以更好突出其分支能力;Renamed
match-related capabilities inISmartNodeintoclaimsto stress its split functions. -
移除了实验性质的条件路由节点;
Removed the experimental conditional split node;
-
新增了单/多词元化参数节点,用于便利简单参数节点的实现;
Added single/multi tokenized parameter nodes, to ease the implementation of simple parameter nodes;
-
字符串参数节点现在具有三种读取模式:
The string parameter node now has three reading modes:
-
字符串(
STRING):接受单词元输入或引号包裹的字符串;STRING: accepts a single token or a quoted string; -
词元(
TOKEN):读取一个词元TOKEN: reads one token; -
贪婪字符串(
GREED):读取尚未解析的所有部分;GREED: reads all the remaining unparsed input;
-
-
调整了命令补全接口,改用专门的
Suggestor类,并提供了三种简单实现方式;Adjusted the command suggestion interface to use the dedicated
Suggestorclass, with three simple implementations provided; -
进一步完善了富文本链式构建 API;
Further improved the rich text chained building API;
-
NickelAPI 主类不再继承自
DummyModContainer,开始拥有 Forge 生命周期;The NickelAPI main class no longer extends DummyModContainer, and now has a Forge lifecycle;
-
在 AI 的帮助下将所有简体中文(zh_cn)条目 100% 翻译到了美式英语(en_us)和繁体中文(zh_tw)。
With the help of AI, all Simplified Chinese (zh_cn) entries are now 100% translated into American English (en_us) and Traditional Chinese (zh_tw).
命令 Commands
-
重构了 /atmosphere 命令的内部实现,现在
query、set和add子命令的预设属性表不再通过手动注册 Map 的方式实现,而是通过反射扫描从而自动注册;Restructured the internals of /atmosphere: the preset property tables of the
query,setandaddsub-commands are no longer hand-registered Maps, but are auto-registered via reflection scanning; -
调整了 Brigo 模组的兼容,以适应新版本 /atmosphere 和 /geoconfig 命令的语法变动;
Adjusted the Brigo compatibility to match the syntax changes of /atmosphere and /geoconfig in this version;
…
受限于红石中继站的更新日志篇幅上限,其余更新日志请见其他发布平台。
本更新日志的英文均在 AI 辅助下完成翻译,如有疑问请以中文原文为准。
The English text in this changelog was translated with AI assistance. In case of any discrepancy, the original Chinese text shall prevail.