#How do I use object models for entities?

4 messages · Page 1 of 1 (latest)

dusk laurel
#

!faq forge-obj

whole finchBOT
# dusk laurel !faq forge-obj

Forge does allow you to use .obj models in Minecraft, without making a mod.
Here is a step by step guide how to use that feature.
1. Flip your model along the z axis, south and north are flipped in the exported obj models.
2. Move your model by +8 on the x and z axis.
3. Each cube and mesh, must have a unique name
4. You can export the model now, default naming rules apply
5. You'll have to edit the .mtl file, it has paths to your textures and those need to be adjusted for MC resourcpacks.
Here is an example, map_Kd example.png it is recommended to replace that with map_Kd #example.
The # defines it as a variable and simplifies things a bit.
6. You'll have to create a JSON file for your model, with following content:

{
    "loader": "forge:obj",
    "model": "<path to your obj model>.obj",
    "flip-v": true,
    "textures": {
        "particle": "<path to particle texture>",
        "example": "<path of the another texture>"
    }
}

The example in the textures here, is the replacement for the variable we defined in step 5.
This makes it possible to use this .obj model for various different blocks now as you'd do with normal models.

That is basically it, it's not too complex once you get the hang of it.
You can also define display settings in the json file.

dusk laurel
#

@cerulean hill

sage cradle
#

Important to note, those are for block models, you cannot easily use those for entities.