Skip to content

Creating and adding a model

Wesley1808 edited this page Nov 15, 2023 · 3 revisions

1. Creating a model

To create a model Nylon can use, you will first need to install Blockbench and the Animated Java Blockbench Plugin.
Once finished, create a new Animated Java Rig, fill in the required options and set the exporter to JSON Exporter.
From there you can create the model. If you aren't familiar with Animated Java yet, you can find their documentation here.

Once you have finished the model, you can export it via the Animated Java menu with Export Project.
This will produce a .json file and the files for the resourcepack.

2. Adding the model to mod resources

To make the model available ingame, it needs to be included in your mod's resources folder.
Models in mod resources are referenced by identifier, in format namespace:path.

  1. Add the exported .json file - the model - to /resources/ajmodels/<namespace>/<path>.json. This is the file that will be parsed by Nylon on the server.
  2. Add the assets/animated_java folder from the exported resourcepack to /resources/assets. These files will be used by the client to load your models and textures. You may note that the resourcepack also has a minecraft folder, which Animated Java uses to assign certain items with custom model data to custom models. With Polymer this isn't needed, as it will handle these automatically, with better mod compatibility.

An example of how to add your model to mod resources can be found in the Nylon Test Mod.

Notes

  • Head bones of mobs should have their names starting with head, so Nylon can recognize it for head rotations.
Clone this wiki locally