I'm extremely new to making entity renders, and I require some assistance. I'm trying to make a throwable rock, and I've gotten everything working except the render. When thrown, the rock is invisible. Here's some of the code, I can post any other code necessary:
I'm extremely new to making entity renders, and I require some assistance. I'm trying to make a throwable rock, and I've gotten everything working except the render. When thrown, the rock is invisible. Here's some of the code, I can post any other code necessary:
Render class:
https://pastebin.com/LR4C7qH7
RegisterEntityRenders:
https://pastebin.com/MpL9inTp
(the registerall method is called clientside via proxy)
My first mod =D
you should use a factory method for the renderer, as shown in this tutorial.
Still not working, render class looks like this:
https://pastebin.com/cpA0qunM
The class is registered in the client proxy with this line:
RenderingRegistry.registerEntityRenderingHandler(EntityRock.class, RenderRock.FACTORY);
My first mod =D
I figured it out. Turns out I wasn't registering the entity. Now works perfectly, case closed!
My first mod =D