Mojius
Members-
Posts
2 -
Joined
-
Last visited
Mojius's Achievements
Tree Puncher (2/8)
0
Reputation
-
[Solved][1.14.4] Render a custom entity - the dreaded white cube
Mojius replied to Mojius's topic in Modder Support
I honestly cannot believe it was as simple as that. Yes, it renders now. diesieben07, today I thank you. I'll work out the other rendering issues on my own. You can mark this baby as SOLVED! ? -
[Solved][1.14.4] Render a custom entity - the dreaded white cube
Mojius replied to Mojius's topic in Modder Support
Here's my RegistryEvents.java. https://pastebin.com/j9RyDL8U You're right - it calls for it to be loaded at a different time. I moved it to private static void ForgeClientEvent(FMLClientSetupEvent event) { RenderingRegistry.registerEntityRenderingHandler(GrassmanEntity.class, new GrassmanRender.RenderFactory()); } in my main mod class. Still getting an error. And I know that's a terrible name for the method. Working it out as I go. Also, I didn't see the first thing you said. I will try using side-specific event handlers. -
Mojius joined the community
-
I'm trying to make a new custom entity but I still get the white cube. Here's what I'm doing. -I build my GrassmanModel by extending a BipedModel, and call the super constructor with the right parameters, as well as the super render. -in the render (extending LivingRender) I super construct with EntityRendererManager as a param - in this class I also get the texture and create a render factory. -In my client proxy during the FMLCommonSetupEvent, I render my entity rendering handler with parameters of my grassman entity class and a new grassman render factory. -In my common registry events class I register my entity as I see fit. -Also, in my Entity Init I of course initialize my grassman. The texture is a renamed Zombie texture, with the exact pixels replaced with my grassman texture - its size is kept at 64x64 like what it's based on. Still getting a white cube when I /summon. Why? I know this is a really complex issue, but I was hoping someone could help. My code: GrassmanModel https://pastebin.com/qcYaS7UE GrassmanEntity (kind of a mess in terms of AI but shouldn't affect the render) https://pastebin.com/mvVtFevm GrassmanRender https://pastebin.com/LZsewnfb InitEntity https://pastebin.com/BpBxXJqk ClientProxy https://pastebin.com/3i8KaHzz Main mod class https://pastebin.com/frvi0DzF