跳到正文

Modern Model Format

作者:Nico_44

Allows 1.21.11 models to load in older versions

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

github banner
github issues

Allows the use of the 1.21.11 model format in older versions with the help of black magic, specifically allowing all three axis (XYZ) rotation and incrementes larger/smaller than 22.5°, additionally removing the 3x3x3 size constraint.

Example

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

Model

File: 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"}
      }
    }
  ]
}

Supports both rotation types:

All axis rotation

  "rotation": {
    "x": 45,
    "y": 45,
    "z": 45,
    "origin": [
      8,
      8,
      8
    ]
  }

Single axis rotation

  "rotation": {
    "angle": 45,
    "axis": "y",
    "origin": [
      8,
      8,
      8
    ]
  }

Maven

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  modImplementation 'com.github.Nico44YT:ModernModelFormat:<version>'
}

Version generally is comprised of “_”
e.g: “1.3.0-1.19.3-1.21.3”

Issues

If you have found an issue please report it on the github, along with (if applicable):

  • any logs
  • the model
  • a screenshot
  • the game version
  • modlist

My models are not loading anymore

Try checking the model file for any extra brackets “{}“ because Modern Model Format ensure a strict json validation.

Example:

[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 $

常见问题

Modern Model Format 支持哪些 Minecraft 版本?

Modern Model Format 支持 Minecraft Java 版 1.19.3–1.21.3,共 13 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Modern Model Format 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。

评论

登录后评论和评分

Nico_44 的其他作品

查看全部 →