Перейти к содержимому
Mineforgian

JsonEM

Data driven entity model library

39K загрузок86 подписчиковMITfabricquilt

Обновлён 16 апреля 2026 г. · опубликован 20 декабря 2021 г.

JsonEM (Json Entity Models)

Library for modders, resource pack makers, and modpack makers to create and edit entity models WITH JSON
Does not work with OptiFine format!

Generate Reference Entity Models:

If you'd like to dump json versions of all entity models (vanilla or modded) so that you can edit them easily with resource packs or use them as examples, here's how:

  • Launch the game, and then open the configuration file located at .minecraft/config/jsonem.properties.
  • Edit the second line of the file to be dump_models=true.
  • Re-launch the game. Navigate to the folder .minecraft/jsonem_dump.
  • Within this folder you should find all registered entity models dumped as json, formatted like a resource pack.
  • Use this format when editing or adding models with a resource pack.

Edit Models in Blockbench:

To edit models in Blockbench, install the plugin located in this repository.

  • Download the file jsonem_models.js from this GitHub repository
  • In Blockbench, navigate to File > Plugins, and at the top of the dialog click the icon for Load Plugin from File. Choose the jsonem_models.js file.
  • Navigate to File > New and choose JsonEM Java Entity Model to begin editing.
  • You can also File > Open Model to import a JsonEM json model file, such as those dumped from the game.
  • To export your model for use with JsonEM, navigate to File > Export > Export JsonEM Java Entity Model and save the file.

For Resource Pack/Modpack Makers:

  • Complete the steps above to dump all entity models from your game or modpack.
  • When editing your resource pack/modpack resources, add entity model json files as they are formatted in the dumped model folder.

For Modders:

JsonEM can be used to create TexturedModelData for your entities entirely using json.
This guide will demonstrate how to make the model for the cube entity in this tutorial with json.

  • Include the mod as follows (versions can be found here):
repositories {
	maven { url "https://api.modrinth.com/maven" }
}
dependencies {
    // Replace <version> with desired version
    modImplementation "maven.modrinth:jsonem:<version>"
    include "maven.modrinth:jsonem:<version>"
}
  • Register the entity model layer for your entity through JsonEM instead of Fabric API (Excludes the need for a code-generated TexturedModelData)
void onInitializeClient() {
    [...]
    JsonEM.registerModelLayer(MODEL_CUBE_LAYER); // Layer ID: "entitytesting:cube", Layer name: "main"
}
  • Add a model file to your mod resources containing your entity's model data
    EX: assets/entitytesting/models/entity/cube/main.json
{
    "texture": {
        "width": 64,
        "height": 64
    },
    "bones": {
        "cube": {
            "transform": {
                "origin": [0, 0, 0]
            },
            "cuboids": [
                {
                    "uv": [0, 0],
                    "offset": [-6, 12, -6],
                    "dimensions": [12, 12, 12]
                }
            ]
        }
    }
}
  • Make sure that the bone "cube" in the file above is being accessed with the same name in your entity model
public CubeEntityModel(ModelPart modelPart) {
    this.base = modelPart.getChild("cube"); // The original tutorial used an unspecified field called EntityModelPartNames.CUBE
}

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
0.4+26.1.1Релиз26.1.1fabric16 апреля 2026 г..jar (41 КБ)
0.3+1.21.4Релиз1.21.4fabric17 сентября 2025 г..jar (42 КБ)
0.3+1.21.8Релиз1.21.7, 1.21.8fabric6 августа 2025 г..jar (42 КБ)
0.3+1.21Релиз1.21, 1.21.1fabric, quilt26 февраля 2025 г..jar (43 КБ)
0.2.1+1.21Релиз1.21-pre2, 1.21-pre3, 1.21-pre4, 1.21fabric, quilt8 июня 2024 г..jar (43 КБ)
0.2.1+1.20.6Релиз1.20.5, 1.20.6fabric, quilt8 июня 2024 г..jar (43 КБ)
0.2.1+1.20Релиз1.20.1, 1.20.2, 1.20.3, 1.20.4fabric, quilt27 июня 2023 г..jar (45 КБ)
0.2.1+1.19.4Релиз1.19.4fabric, quilt27 июня 2023 г..jar (45 КБ)
0.1.3+1.19.3Релиз1.19.3fabric, quilt27 июня 2023 г..jar (44 КБ)
0.1.3+1.19Релиз1.19, 1.19.1, 1.19.2fabric, quilt27 июня 2023 г..jar (44 КБ)
0.2+1.20Релиз1.20, 1.20.1fabric, quilt27 июня 2023 г..jar (45 КБ)
0.2+1.19.4Релиз1.19.4fabric, quilt27 июня 2023 г..jar (45 КБ)
0.1.2+1.19.3Релиз1.19.3fabric, quilt27 июня 2023 г..jar (44 КБ)
0.1.2+1.19Релиз1.19, 1.19.1, 1.19.2fabric, quilt13 июня 2022 г..jar (44 КБ)
0.1.2Релиз1.18, 1.18.1, 1.18.2fabric, quilt23 апреля 2022 г..jar (44 КБ)

Показаны последние 15 из 17 версий. Все версии — на Modrinth.

Ченджлог

0.4+26.1.1Релиз26.1.1 · 16 апреля 2026 г.
  • Update to 26.1.1
  • For developers: Helper function to register model layer has been removed, model layers are added automatically if model JSON file is present in resource pack
0.3+1.21.4Релиз1.21.4 · 17 сентября 2025 г.
  • Backport to 1.21.4
0.3+1.21.8Релиз1.21.7, 1.21.8 · 6 августа 2025 г.
  • Update to 1.21.8 (techno-sam)
0.3+1.21Релиз1.21, 1.21.1 · 26 февраля 2025 г.
  • JsonEM will now load entity models which have not been explicitly registered
0.2.1+1.21Релиз1.21-pre3, 1.21-pre4, 1.21 · 8 июня 2024 г.
  • Update to 1.21
0.2.1+1.20.6Релиз1.20.5, 1.20.6 · 8 июня 2024 г.
  • Update to 1.20.6
0.2.1+1.20Релиз1.20.2, 1.20.3, 1.20.4 · 27 июня 2023 г.
  • Fix potential incompatibilities
0.2.1+1.19.4Релиз1.19.4 · 27 июня 2023 г.
  • Fix potential mod incompatibility

Полная история изменений — на Modrinth.

Комментарии

Загружаем…