Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

The anatomy of a Minecraft model

How to work with and create models for Minecraft

Syncing Issues

  • 2013-08-05 15:38:54
    So at the moment with my mod you add accessories/colour the little robot I have implemented and this works fine on singleplayer but on multiplayer only the person who made these changes can see them unless you log out and back it again. As seen here:

    How can I fix it to properly sync up between 2+ clients, I thought PacketHandler but I'm not to sure
  • 2013-08-05 15:57:32
    How are you currently synchronizing the data?
  • 2013-08-05 16:08:48
    Currently I have data watchers set up and they get saved to spawn data
  • 2013-08-05 16:20:34
    Here's the entity file
  • 2013-08-05 17:22:31
    Well, you set the datawatchers to the current value and then read it. That means that if a client receives a new value from the datawatcher you'll give the datawatcher the old value before reading the new. That means that the new value will be lost on other clients. Simply write the data to the datawatchers from the server and read it on the client.
  • 2013-08-05 17:38:32
    Feel slightly stupid that all I needed to do was add 2 if statements, thanks for the help.
  • Log in or sign up to reply to this thread