Hot/Cold vs Hunger/Thist

4 posts in this topic

Recommended Posts

Not sure if this is already a thing. Looking at the java API:

player:getBodyDamage():getTemperature() returns a float value

player:getStats():getHunger() and player:getStats():getThirts() both return floats


possibly on a EveryTenMinutes event (or similar), check the temperature of the player, then:


local h = player:getStats():getHunger()

player:getStats():setHunger(h + 0.1)


or increment it by w/e value works for balance

(disclamer: totally untested theory)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now