针对 NBT 的 CIT
一款将 Optifine 的 CIT(自定义物品纹理)功能作为独立特性加入 Minecraft 1.12.2 的模组。
用法
该模组目前仅在 .minecraft/resources 文件夹中查找你的文件。
它将此资源文件夹视为“assets”文件夹。换句话说,
路径 assets/<namespace>/textures 会被放置在 resources/<namespace>/textures 中,
而不是原来的位置。这允许与 contenttweaker 等模组兼容,后者遵循这种文件夹风格。
要对物品有条件地应用纹理,必须存在一个 .properties 文件。该文件可以存在于资源文件夹的任何位置,并且可以应用于多个物品列表。目前需要两个字段:items(目标物品),以及 texture 或 model(可以是任何纹理或有效物品)。其他所有字段目前都是可选的。
示例:
items=minecraft:stick
nbt.display.Name=contains:Glow
texture=cit:items/stick_glow
注意: texture 不需要与物品处于相同的命名空间下。
行为
- NBT 条件
exists必须是true或false - 相对路径尚不能像 Optifine 那样工作
- 除了上述例外情况外,文件格式是稳定的。除非发生严重错误,否则你可以在任何版本中使用相同的
.properties文件。
当前功能
- NBT 条件
- 匹配:
nbt.tag.path=matches:ExactNBTMatch - 包含/忽略大小写包含:
nbt.tag.path=contains:TextToContain - 存在:
nbt.tag.path=exists:true - 范围:
nbt.tag.path=range:1-5 9 17 - 正则表达式/忽略大小写正则:
nbt.display.Name=iregex:Something fishe?y is(n't)? brewing\\.+ - 原始数据:
nbt.ench=raw:[{lvl:1s,id:2s}]
- 匹配:
- 物品堆叠条件
- 堆叠数量:
stackSize=1或stackSize=range:1-17 32
- 堆叠数量:
- 基本模型支持(未经过充分测试)
- mcmeta 动画支持
- 热重载
- 多物品支持
items=minecraft:paper minecraft:stick
可能的未来功能
- 常规资源包支持
- 更多 Optifine 条件
- 设置主资产文件夹
破坏性变更
0.2 -> 0.3+
自由浮动的 .properties 文件将需要一个与其角色相关的额外后缀。
例如:item.properties -> item.cit.properties,animation_item.properties ->
animation_item.anim.properties。遵循 Optifine 文件夹组织的文件将不需要额外的后缀。虽然我可能会添加默认值为 cit 的支持,但这不应被视为可靠保证。
CIT for NBT
A mod that adds Optifine's CIT feature as a standalone feature for 1.12.2.
Usage
This mod currently only looks in the .minecraft/resources folder for your files.
It treats this resource folder as the "assets" folder. In other words,
a path assets/<namespace>/textures would be placed in resources/<namespace>/textures
instead. This allows compat with mods like contenttweaker, which
follows this folder style instead.
To conditionally texture an item, a .properties file must exist. This file can
exist anywhere in the resources folder, and can apply to a list of items. This currently
requires two fields. items, the target item. And texture or model, which can be any texture
or valid item. All other fields are currently optional.
Example:
items=minecraft:stick
nbt.display.Name=contains:Glow
texture=cit:items/stick_glow
Note: texture does NOT need to be in the same namespace as the item.
Behavior
- The NBT condition
existsmust be eithertrueorfalse - Relative paths do not work like Optifine's do (yet)
- Aside from the one exception above, the file format is stable. Unless
a serious bug occurs, you can use the same
.propertiesfile in any version.
Current Features
- NBT conditions
- Matches:
nbt.tag.path=matches:ExactNBTMatch - Contains/IContains:
nbt.tag.path=contains:TextToContain - Exists:
nbt.tag.path=exists:true - Range:
nbt.tag.path=range:1-5 9 17 - Regex/IRegex:
nbt.display.Name=iregex:Something fishe?y is(n't)? brewing\\.+ - Raw:
nbt.ench=raw:[{lvl:1s,id:2s}]
- Matches:
- Item Stack conditions
- Stack Size:
stackSize=1orstackSize=range:1-17 32
- Stack Size:
- Basic model support (not fully tested)
- mcmeta animation support
- Hot reload
- Multi item support
items=minecraft:paper minecraft:stick
Possible future features
- Regular Resourcepack Support
- More Optifine conditions
- Set primary assets folder
Breaking Changes
0.2 -> 0.3+
Free-floating .properties files will require an additional suffix related to their role.
For example: item.properties -> item.cit.properties, animation_item.properties ->
animation_item.anim.properties. Files that follow Optifine's folder organization
will not require additional suffix. While I may add support for default being cit,
this should not be counted upon.
下载 CIT for NBT
下载 CIT for NBT
下载 CIT for NBT
下载 CIT for NBT
下载 CIT for NBT
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧