Exo594 Posted September 12, 2015 Posted September 12, 2015 I am unable to get the entity associated with my TNT-like block to render in-world. I've looked at tons of examples on how it's been done previously and an equivalent number of "Help Me" topics, but nothing's worked for me yet. I've even attempted to use the vanilla TNT rendering code in the registry, to no avail. I know the entity is "alive", because it's dropping due to gravity and is exploding properly. Here's my code bits: Rendering Class, mostly copied over from vanilla RenderTNTPrimed Class. https://github.com/Exo594/TutorialWork/blob/master/src/src/main/java/com/exo594/tutorial/ExplosiveRender.java Entity for the TNT-clone. https://github.com/Exo594/TutorialWork/blob/master/src/src/main/java/com/exo594/tutorial/entities/EntityMiningChargePrimed.java ClientProxy Class, register for Rendering the entity is on line 33. https://github.com/Exo594/TutorialWork/blob/master/src/src/main/java/com/exo594/tutorial/ClientProxy.java Main class, Entity registry for TNT entity is on line 85. https://github.com/Exo594/TutorialWork/blob/master/src/src/main/java/com/exo594/tutorial/Main.java Block Class, just in case you need that. https://github.com/Exo594/TutorialWork/blob/master/src/src/main/java/com/exo594/tutorial/block/MiningCharge.java At time of edit: I've placed systemout statements in my doRender and RenderPrimedTNT methods, and it appears that they're not being triggered at all. I had assumed from the examples I'd seen that doRender was called by some skeleton class in Forge or FML, or even in Vanilla code, but I guess not. I've attempted to call it from my Entity class when the entity updates, but it bitches at me about static and non-static contexts. Quote
Exo594 Posted September 19, 2015 Author Posted September 19, 2015 It's been a week now, is it fair to bump this? Quote
Hackbaellchen Posted September 22, 2015 Posted September 22, 2015 With yours, I read 3 articles about the invisible TNT. http://www.minecraftforge.net/forum/index.php/topic,18036.0.html http://www.minecraftforge.net/forum/index.php/topic,31319.0.html I've got the same issue. Anyone on this forum must know why so many modders have exactly the same coding problem! Quote
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.