JsonEM

Quick rating

JsonEM

No reviews yet

Data driven entity model library

No Theme
No Genre
API/Library
Mod Loaders
Fabric
Quilt
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Unsupported

About

Project Details

Type
Mod
License
MIT License
Latest Version
0.4+26.1.1
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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
}

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~39,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works