Jump to content

Hot/Cold vs Hunger/Thist


Hydromancerx

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)

Link to comment
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
×
×
  • Create New...