Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (â‹®) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

  • Author

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.

  • Author

Oh, okay, not in all. But how is it made, i wonder? I does not save them for me without packet.

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

  • Author

TileEntitySignRenderer don't use packets, but can freely use tile entities fields. How that's made?

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

  • Author

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.

  • Author

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.

  • Author

Aaaa!!! Okay. How do i do that?

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

  • Author

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.

  • Author

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.

  • 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!  :)

  • Author

Uh, i'm not sure if i can do that.

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

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?

  • Author

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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.