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

Hi, i've created a new furnace in my forge mod and its simply a copy of the normal furnace, except it is a multiblock. so the problem is: when my new furnace block is placed in the world both client and server create a tileEntity for that block and place them at the specific location. now when opening the gui the  progress bars refer to one tileEntity which isn't updating while the burning process itself is done by an correctly working tileEntity. why are there 2 of them in one block?

  • Author

umm this will synchronize the TEs when the chuk updates its TEs xD

but they must be synced every second. i can't imagine that the vanilla furncae is doing this!

you can force it to send an update of the TE.

worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);

 

(and no, normally it synchronizes TEs more frequently, not only on a chunk load.)

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

  • Author

ah it works! ;D thank you that helped alot! i still have to send packets but that seems to be a good solution.

diesieben07 is of course right, you should only force this if you have something important to update like furnace changes texture (~starts/stops wokring). definitely do not sync progress of cooking every tick. vanilla furnace is a great example of the GUI (it's not too hard to implement synchronization of integer variables of TE using same technique). it will only differ from your solution in furnace changin texture - you'll do it with TE's sync packet or by changing metadata, not by replacing a block like the vanilla funace does.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

  • Author

ok i see. the method is named: detectAndSendChanges()

this was probably the problem: i hadn't this method in my container class. its the only one missing together with 3 private variables xD

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.