Posted February 13, 201312 yr 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?
February 14, 201312 yr Author umm this will synchronize the TEs when the chuk updates its TEs but they must be synced every second. i can't imagine that the vanilla furncae is doing this!
February 14, 201312 yr 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.
February 14, 201312 yr Author ah it works! thank you that helped alot! i still have to send packets but that seems to be a good solution.
February 14, 201312 yr 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.
February 15, 201312 yr 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
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.