Jump to content

Naitenne's tutorials series


Naiten

Recommended Posts

Hello. I've wrote some tutorials for modding in forge, you can find them here. If you have any suggestions or comments, post them here, i'll look if i can help.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

If i don't use them, my tile entity doesn't save variables. Why should i not use them if they are used in all default tile entity classes?

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

Oh. Tell me that way i should do that so it will save my variables and i'll do that.

---

Added a tutorial on custom tile entity renderer. Enjoy.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

Okay, you are right, sorry. Then, help me...  I have this code in my block

public void onNeighborBlockChange(World world, int i, int j, int k, int par5)
{
   TileEntityBlockWRail tl = (TileEntityBlockWRail) world.getBlockTileEntity(i, j, k);
   if (tl != null)
   {
      System.out.println("mid = "+tl.mid);
   }
}

So, i'm sure it saves my variables. And in my tile entity renderer i have

int id = tl.mid;
   switch (id)
   {
    case 0: renderStraight(); break;
    case 1: renderCurveRight(); break;
    and so on...
   }

But it always renders the 0 renderer.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

I haven't wrote a tutorial on adding packets to tile entity renderer.

---

While i was writing a tutorial, just placing packets in the TE worked... Now i need to s/l the game for TER to draw placed blocks correctly. If i place new, they are now rendered correctly. Wtf.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

I did it that way.

---

Oh, i've fixed my bug. I just had to set block with flag 0x02 that will update blocks. Now it works fine.

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

  • 2 weeks later...

I really like it so far.

I don't know whether you got my PM or not, but my idea is: Please make a tutorial on how to create a pipe system like to one in BuildCraft (I think?) to transport items in them.

 

Thanks in advance! Keep the good work up!  :)

Link to comment
Share on other sites

I followed your custom tile entity render tutorial, but my model that I made in techne came up upside down and off center in mc, any tips or solution to the problem?

GL11.glscalef(-1F, -1F, 1F)

If i helped you, don't forget pressing "Thank You" button. Thanks for your time.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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