Posted April 12, 201312 yr Hello, it's me again. I've already posted about rendering 3D items, but now I would like some help on rendering a certian type of entity. I have a model made in Techne for weapon shot, you shout the gun and the entity comes out, however there are no tutorials anywhere and how to bind the model to the entity. I would really like some help on this, so thanks in advance guys. P.S. Any good tutorials for 1.5 on the following would be a GREAT help: - Multiblocks - Custom Dimensions - Dimension Portals - Custom biomes - Custom Music I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 13, 201312 yr Author Come on guys, I could really use some help here. This is the last thing I want to get working before I release the beginnings of my mod to the public. I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 13, 201312 yr Not sure about a tutorial for projectile, my suggestion is to look at the arrow and bow code in net.minecraft.item.ItemBow and see how it attaches right click to the arrow. --- Re reading this I think you are talking about attaching the gun model to your hand? If so. I use TileEntitySpecialRender and an obj file, but check the code for modularpowersuit the arm thing (I think that's open source but I could be wrong...) As for the other Tutorials: Multiblock - I am intrested myself but have not come across one yet, check out any open source mods with multiblocks, For custom dimensions, don't worry about not having it for 1.5 almost nothing changes so wuppy's tutorials are still useful. If you have any problems ask me as I have set one of these up following these, of the top of my head I think the main problem was with setBlockwithNotify needs to change to just setBlock. Dimension Portals (see wuppy's) and remember if you want it like a normal nether portal create your own fire Custom Biomes (see wuppy's again his old ones are really good) again not many errors.. Custom music/sounds look at the music disk code and add your own .ogg sound file in your rescources Hope that helped? Pow3rCut If I helped you click the Thank You button
April 14, 201312 yr For multiblocks do an onRandomUpdate to check if all the blocks are around it, and if yes change all the blocks textures and change their tilentities "you seem to be THE best modder I've seen imo." ~spynathan ლ(́◉◞౪◟◉‵ლ
April 14, 201312 yr http://wuppy29.blogspot.nl/2012/10/forge-modding-142.html Dimensions and portals etc. as mentioned above not many errors. http://wuppy29.blogspot.nl/2013/03/forge-modding-151.html - Covers updating to 1.5.1 and includes instructions for dimensions. Those two should get ya covered. Acctually most tutorials fro 1.3+ works with 1.5.1 there are only minor changes to names and stuff. If you read up on the changes to MC itself you should find that it's quite easy to update from 1.4.x to 1.5 etc. If you guys dont get it.. then well ya.. try harder...
April 14, 201312 yr i thought tenche was just the paint version for creating render code? like this part for the arrow? GL11.glRotatef(45.0F, 1.0F, 0.0F, 0.0F); GL11.glScalef(f10, f10, f10); GL11.glTranslatef(-4.0F, 0.0F, 0.0F); GL11.glNormal3f(f10, 0.0F, 0.0F); tessellator.startDrawingQuads(); tessellator.addVertexWithUV(-7.0D, -2.0D, -2.0D, (double)f6, (double)f8); tessellator.addVertexWithUV(-7.0D, -2.0D, 2.0D, (double)f7, (double)f8); tessellator.addVertexWithUV(-7.0D, 2.0D, 2.0D, (double)f7, (double)f9); tessellator.addVertexWithUV(-7.0D, 2.0D, -2.0D, (double)f6, (double)f9); tessellator.draw(); GL11.glNormal3f(-f10, 0.0F, 0.0F); tessellator.startDrawingQuads(); tessellator.addVertexWithUV(-7.0D, 2.0D, -2.0D, (double)f6, (double)f8); tessellator.addVertexWithUV(-7.0D, 2.0D, 2.0D, (double)f7, (double)f8); tessellator.addVertexWithUV(-7.0D, -2.0D, 2.0D, (double)f7, (double)f9); tessellator.addVertexWithUV(-7.0D, -2.0D, -2.0D, (double)f6, (double)f9); tessellator.draw(); for (int i = 0; i < 4; ++i) { GL11.glRotatef(90.0F, 1.0F, 0.0F, 0.0F); GL11.glNormal3f(0.0F, 0.0F, f10); tessellator.startDrawingQuads(); tessellator.addVertexWithUV(-8.0D, -2.0D, 0.0D, (double)f2, (double)f4); tessellator.addVertexWithUV(8.0D, -2.0D, 0.0D, (double)f3, (double)f4); tessellator.addVertexWithUV(8.0D, 2.0D, 0.0D, (double)f3, (double)f5); tessellator.addVertexWithUV(-8.0D, 2.0D, 0.0D, (double)f2, (double)f5); tessellator.draw(); } with the tesselations and such Use examples, i have aspergers. Examples make sense to me.
April 15, 201312 yr Author Thanks for the tutorials Mazetar. Pow3rCut, I have a class fully ready for rendering my entity I just need the code used to register the class used to to render the entity. This is what I'm using now: RenderingRegistry.registerEntityRenderingHandler(PowerBeam.class, new RenderPBeam()); Though eclipse tells me that registerEntityRenderingHandler is not applicable for the arguments. Thanks for the tutorial suggestions. I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 17, 201312 yr Author After messing around even more, I still cannot get the Entity register working correctly. Would it be similar to registering a new mob, since that is too an entity? I'm going to find some source code for other mods and see what I come up with. I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
April 17, 201312 yr Author After messing around even more, I still cannot get the Entity register working correctly. Would it be similar to registering a new mob, since that is too an entity? I'm going to find some source code for other mods and see what I come up with. I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server. http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]
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.