So I'm trying to give players a breath bar out of the water. Unfortunately, the Code (Java): .setRemainingAir() method only works when the player is in the water. So I figured I need to use packets. However, looking around on http://wiki.vg/ I can't find anything of relevance, and snooping around on the ProtocolLib page also yielded no results. Any ideas? How can I make a client think it's underwater with packets?
(offtopic: change title possibly, someone might know your answear without packets) Why cant you use that method? isnt it good if that only works if in water?
I won't be surprised if it's mainly client sided, seeing as Mojang has a bad habbit making things that shouldn't be client sided, client sided. While things that should be client sided server sided. :/
As @Puharesource said, this is mainly client side like one of many things that should be done server side but isn't. :/