Posted October 10, 20159 yr I want to render a pipe with an ISmartModel but it doesn't works. Log: https://gist.github.com/laci200270/581983b3cc0a0b3c94b4#file-gistfile1-txt-L822-L2327 Code: https://github.com/laci200270/Energy-mod/blob/master/src/main/java/hu/laci200270/energymod/handler/BakeEventHandler.java Sorry for my English
October 10, 20159 yr Your wrapper implementation and ModelBakeEvent is wrong. Do not bake the IBakedModel yourself. Set a final IBakedModel field in your ModelPipe class and initialize it in the constructor. Then in the ModelBakeEvent (remove the SideOnly, that is not needed at all), create your ModelResourceLocation field pointing to its location - after that use event.modelManager.getModel(MODELRESOURCELOCATION) - that will return an IBakedModel from your item's ModelResourceLocation that you provided. Use that IBakedModel when creating your ModelPipe instance. Modify the ModelPipe wrapper class to your needs, and don't forget to register your event on the Forge Event Bus. Hope that gives you a general idea, if you still need help I can provide examples when I'm not on mobile. Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]
October 10, 20159 yr Author That problem fixed now by https://github.com/laci200270/Energy-mod/commit/cf1f607614cd6dd9dc3a82706dabbc12b0b99d17 but now there is another problem: any idea why? Sorry for my English
October 10, 20159 yr Show your ModelBakeEvent. The code from your first post didn't seem like it would do anything. Also, post your current Wrapper class implementing ISmartBlockModel. Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]
October 13, 20159 yr Author Now I switched to blocksate jsons( https://github.com/laci200270/Energy-mod/blob/master/src/main/resources/assets/energymod/blockstates/eConduit.json ) but I can't make it "standing up" (the down and up doesn't working) any ideas how can I fix it? Sorry for my English
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.