Modern Model Format

模组

· 作者 Nico_44

允许在旧版本中加载 1.21.11 模型

0 本站下载 0 关注 更新于 3 个月前

最新 1.3.0_1.19.3-1.21.3 · 1.21.3 · Fabric

一键开服(送7天)

github banner github issues

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

示例

Showcase of the mod featuring a diamond block with three axis rotation

模型

文件: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 $

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源