Jump to content

Recommended Posts

Posted

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.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

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

Posted

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

 

ლ(́◉◞౪◟◉‵ლ

Posted

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.

  Quote

If you guys dont get it.. then well ya.. try harder...

Posted

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.

Posted

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.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

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.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

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.

width=600 height=126http://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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I've been attempting to trouble shoot performance issues with this version of forge - I've been getting 10 - 14 FPS on a fresh install while the same settings on vanilla will net me ~ 250 FPS  I've tried setting ram to 2, 4, 6, 8, 16 GB, making sure that the GPU is being used - although i cant confirm other than the F3 screen - I've cleared out my .Minecraft folder and done a fresh install of forge multiple times, I even reinstalled Java 17 - from what i read this is the recommended for this version of MC, - Graphics drivers are fully up to date and I've tried it on both studio and game ready drivers. I have a spark report but I dont know what to do with it https://spark.lucko.me/BrrJ5vzX6k Would love some help for this as Ive spent three days on this
    • One fateful day, my life took an unexpected turn when I received a phone call that would change everything. The voice on the other end claimed to be from my bank, delivering alarming news: my account had been frozen due to suspicious activity. Panic surged through me as I listened, my heart racing at the thought of losing my hard-earned savings. At that moment, I had about 130,000 USD in my bank, equivalent to around 2 BTC. The caller spoke with such authority and urgency that I felt compelled to act immediately. They insisted that the only way to protect my funds was to transfer Bitcoin BTC to them for "safekeeping. In my fear and confusion, I believed I was making a wise decision to secure my finances. Without fully grasping the implications, I complied and transferred the equivalent of my savings in Bitcoin, convinced I was safeguarding my money. It wasn’t until later that the reality of my situation hit me like a ton of bricks. I had been duped, and the weight of my mistake was unbearable. Shame and disbelief washed over me as I realized how easily I had been manipulated. How could I have let this happen? The feeling of vulnerability was overwhelming, and I was left grappling with the consequences of my actions. I learned about a recovery expert named RAPID DIGITAL RECOVERY. Desperate to reclaim what I had lost, I reached out for help. RAPID DIGITAL RECOVERY was knowledgeable and reassuring, explaining that there was a chance to trace the Bitcoin I had sent. With their expertise, they tracked the stolen funds to a peer-to-peer (P2P) exchanger based in the United Kingdom. This revelation sparked a glimmer of hope within me, a sense that perhaps justice could be served. RAPID DIGITAL RECOVERY collaborated with Action Fraud, the UK's national reporting center for fraud and cybercrime, to take decisive action against the scammers. Knowing that law enforcement was involved provided me with a sense of relief. The thought that the culprits behind my suffering could be brought to justice was comforting. In an incredible turn of events, RAPID DIGITAL RECOVERY successfully recovered all my funds, restoring my faith in the possibility of justice and recovery.
    • My game crashed in 1.12.2 here is the crash log https://pastebin.com/6MYu4mGy
    • I created a Modpack Forge in 1.20.1 for my friend and I. There are 135 mods including "Essential". I was able to play an 8 hour session without problem but when I relaunch my world, I crashed when I opened the menu of the game "ESC" or after about 15 minutes of session. I can't find the source of the problem. Latest.log and Debug.log : https://paste.ee/p/B0npvlRw
    • Hello! Faced with the same problem. Can you please describe in more detail how you rewrote the toNetwork and fromNetwork methods?
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.