Jump to content

[1.7.2]Custom Block Model Animation only updates when GUI is open ....


Recommended Posts

Posted

Hey there i have an custom block with a TileEntity and a GUI I want that if the Block is working/smelting that its model starts to rotate a shape. The rotation is working but only if I open the Gui of the Block.

 

Block

 

  Reveal hidden contents

 

 

TileEntity

 

  Reveal hidden contents

 

 

 

Model

 

  Reveal hidden contents

 

 

 

Renderer

 

  Reveal hidden contents

 

 

 

~Graphic

Posted

This may be a case of client/server synchronization. I believe TileEntity is considered a server object, and it is synced when the GUI is open by the gui code. However, if you have no way of telling the client that the TE has changed (cooktime on the server), you may need to try a start_rotating and stop_rotating packet (from server to client). I'm just guessing here, but I'd make a breakpoint at the place where you change the model instance and see what the TE says.

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



×
×
  • Create New...

Important Information

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