Hello,
I have a gravity lift block, which repels you upwards from a certain set height, however I am having problems with that height not saving.
When the GUI is closed, it calls a method directly in the tile entity class to set the height for which the gravity lift would propel you upwards. It does work, but does not save.
I know you must use packets for this, but I have not been able to find a tutorial that teaches what I need - all of the packet tutorials are not for 1.7.2.
I have posted a topic on the Forge Forums a while back about the same issue, but that was for MC 1.6, so it is outdated.
Any help with ways of solving this would be much appreciated! Plus any links to tutorials that have exactly what I need.
Code:
TileEntityGravityLift.java
GuiGravityLift.java