DeaSTl Posted August 7, 2019 Share Posted August 7, 2019 https://github.com/DeaSTL/EverythingIsBad I'm not getting any errors in the console and I'm pretty sure I setup the entity and registered it correctly. If you have any idea what could be the issue then please reply below. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 7, 2019 Share Posted August 7, 2019 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 Quote 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. Link to comment Share on other sites More sharing options...
DeaSTl Posted August 7, 2019 Author Share Posted August 7, 2019 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. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 7, 2019 Share Posted August 7, 2019 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. Quote 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. Link to comment Share on other sites More sharing options...
DeaSTl Posted August 7, 2019 Author Share Posted August 7, 2019 @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 Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 7, 2019 Share Posted August 7, 2019 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") Quote 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. Link to comment Share on other sites More sharing options...
DeaSTl Posted August 7, 2019 Author Share Posted August 7, 2019 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. Quote Link to comment Share on other sites More sharing options...
DeaSTl Posted August 7, 2019 Author Share Posted August 7, 2019 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. Quote Link to comment Share on other sites More sharing options...
DeaSTl Posted August 7, 2019 Author Share Posted August 7, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.