Jump to content

[1.7.2] Updating GUI


Recommended Posts

I want it so that I have a gui that opens when you right click it (it basically functions like a furnace) except that there is a string on the gui that is a number and I want this number to change accordingly to what its value is (every tick it decreases by 10).

The only problem is the string does not update when I add it to use the string variable I get to be decreasing by 10.

Any way to do this?

Thanks in advance.


Link to comment
Share on other sites

Seriously, you can't figure this out?


Use a damn integer.


int myInt = 10;

String myString = "This value is: " + myInt;


Integers can be added to and subtracted from and will update in the GUI just fine.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.


Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.


DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now

  • Create New...

Important Information

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