Jump to content

[1.12.2] How to sync NBT Tags between Client and Server?


Guest

Recommended Posts

Hey, I made a shield with an nbt tag (durability) that gives setMaxDamage() the new value which, works totally fine on Singleplayer but not on a Server somehow.
While the Client shows that the durability was updated(with Tooltip mod) it actually doesn't get updated on the server side and the shield breaks in few hits.
How do i sync them?

 

I Tried using readNBTShareTag() & getNBTShareTag() but don´t know how they work...

 

Code:

IRS9Ncu.png

ZBw4huc.png

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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