Jump to content

Recommended Posts

Posted
1 hour ago, DeaSTl said:

I'm not getting any errors in the console and I'm pretty sure I setup the entity and registered it correctly.

You have to register a renderer for your entity.
 

RenderingRegistry.registerEntityRenderingHandler

 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
46 minutes ago, Animefan8888 said:

You have to register a renderer for your entity.
 


RenderingRegistry.registerEntityRenderingHandler

 

Okay, I setup the Renderer that extends RenderTNTPrimed but it still seems to be spawning the tnt but I see a part in RenderTNTPrimed.java
 

line 43 this.bindEntityTexture(entity);

So that makes be believe that it's trying extract the texture some how.

Posted
1 minute ago, DeaSTl said:

So that makes be believe that it's trying extract the texture some how.

You need a ResourceLocation that points to the texture for your TNT.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
@SideOnly(Side.CLIENT)
public class RenderStupidTNT extends RenderTNTPrimed {
    public static final IRenderFactory<EntityStupidTNT> FACTORY = new Factory();
    public static final ResourceLocation texture = new ResourceLocation("eib:stupid_tnt");
    public RenderStupidTNT(RenderManager renderManagerIn) {
        super(renderManagerIn);

    }
    private static class Factory implements IRenderFactory<EntityStupidTNT> {

        @Override
        public Render<? super EntityStupidTNT> createRenderFor(RenderManager manager) {
            return new RenderStupidTNT(manager);
        }
    }
    @Override
    protected ResourceLocation getEntityTexture(EntityTNTPrimed entity)
    {
        return texture;
    }
}

This is my Render class

Posted
4 minutes ago, DeaSTl said:

This is my Render class

Ok.

5 minutes ago, DeaSTl said:

public static final ResourceLocation texture = new ResourceLocation("eib:stupid_tnt");

This points to assets/eib/stupid_tnt
You probably want it to point to assets/eib/textures/blocks/stupid_tnt.png
Am I right?
If so new ResourceLocation("modid:textures/blocks/stupid_tnt.png")

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted
3 minutes ago, diesieben07 said:

Change your Mod ID, eib is too short. Use everythingisbad.

I've just been going off what I've seen in other people's source code.

Posted
1 minute ago, diesieben07 said:

Okay. I just made made a mod (not really) called "elephants in boats", mod ID also eib. Great, now our mods cannot work together. It's an ID because it must be unqiue.

You know, that's a good point now that you say that.

Posted
2 minutes ago, diesieben07 said:

Okay. I just made made a mod (not really) called "elephants in boats", mod ID also eib. Great, now our mods cannot work together. It's an ID because it must be unqiue.

Actually, I think you should add elephants to the game and make it so that they can get into boats.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.