Skip to content

Creating a entity model

Olafcio1 edited this page Jul 13, 2026 · 2 revisions

This guide assumes you've already created and setup an Avoid project.


§ Making a entity model with the Avoid Framework


  1. Create a java class;
    You can pick any location within your project source code directory.

  2. Paste the following code:

    package com.example.avoidtmpl;
    
    import pl.olafcio.avoid.net._3d.model.ModelPart;
    import pl.olafcio.avoid.net.entity_renderer.EntityModel;
    
    public class HerobrineEntityModel extends EntityModel<HerobrineEntityState> {
        public HerobrineEntityModel(ModelPart modelPart) {
            super(modelPart);
        }
    }

    Of course you need to replace the class name and package.

  3. Add animations;
    You can optionally override the setupAnim(S state) method to add animations onto the model.


Avoid Framework


    🏚️ 1. Home
    📽️ 2. Creating your mod
    🌄 3. Adding assets to your mod
    🧊 4. Creating a block
    💧 5. Creating a fluid
    ✏️ 6. Creating an item
    🎯 7. Creating an entity selector
    🤖 8. Creating a command
    ⌨️ 9. Creating a keybind
    🐺 10. Creating an entity
    🌫️ 11. Creating a fog
    🔩 12. Creating an item component
    🔮 13. Creating an effect

Clone this wiki locally