-
Notifications
You must be signed in to change notification settings - Fork 0
Creating and adding 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.
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
.
- 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. - 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 aminecraft
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.
- Head bones of mobs should have their names starting with
head
, so Nylon can recognize it for head rotations.