借助“黑魔法”,此模组允许在旧版本中使用 1.21.11 模型格式,具体支持 XYZ 三个轴旋转以及大于或小于 22.5° 的增量角度,同时移除了 3x3x3 的尺寸限制。
示例

模型
文件:assets/minecraft/models/block/diamond_block.json
{
"format_version": "1.21.11",
"textures": {
"all": "block/diamond_block"
},
"elements": [
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"rotation": {"x": 45, "y": 45, "z": 45, "origin": [8, 8, 8]},
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#all"},
"east": {"uv": [0, 0, 16, 16], "texture": "#all"},
"south": {"uv": [0, 0, 16, 16], "texture": "#all"},
"west": {"uv": [0, 0, 16, 16], "texture": "#all"},
"up": {"uv": [0, 0, 16, 16], "texture": "#all"},
"down": {"uv": [0, 0, 16, 16], "texture": "#all"}
}
}
]
}
支持两种旋转类型:
全轴旋转
"rotation": {
"x": 45,
"y": 45,
"z": 45,
"origin": [
8,
8,
8
]
}
单轴旋转
"rotation": {
"angle": 45,
"axis": "y",
"origin": [
8,
8,
8
]
}
Maven
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
modImplementation 'com.github.Nico44YT:ModernModelFormat:<version>'
}
版本号通常由 <mod_version>_<game_version_range> 组成
例如:"1.3.0-1.19.3-1.21.3"
问题反馈
如果您发现了问题,请在 GitHub 上报告,并附上(如适用):
- 任何日志
- 模型文件
- 截图
- 游戏版本
- 模组列表
我的模型无法加载了
请检查模型文件中是否有额外的括号 {},因为 Modern Model Format 会执行严格的 JSON 验证。
示例:
[18:30:32] [Worker-Main-2/ERROR]: Failed to load model mod_id:models/item/example_item.json
com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 506 path $
你是这个资源的作者?登录后可认领此资源。
相似资源
Ixeris
decce6
缓冲的原始输入和线程化的事件轮询
优化
656
鞘翅纹饰Elytra Trims
KikuGie
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
装饰装备
477
Woot Revived
pharuxtan
一个用于收集生物掉落物的多区块模组。
生物科技
349
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
339
Fast Noise
omo50
原版世界生成优化模组
优化世界生成
242
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
239


评论 0
登录后参与评分
还没有评论,来抢沙发吧