Added tiredness to the game.
- Tiredness over time
- Tiredness because of tasks.
- Tiredness or energy when eating.
Added 24h sleeping system to the game.
- When you sleep you get more energy.
- You can sleep even if it's day time.
All of the things can be configured or disabled in the configs.
Code (YAML):
sleeping:
enabled
: true
display:
tiredness
:
# You can use <energy>, <energy_p> or <tiredness>, <tiredness_p>
# Energy is the opposite of tiredness. 'p' means %
title
:
"&9&lSleeping"
subtitle
:
"&aEnergy: <energy_p>%"
tiredness_100:
title
:
"&9&lSleeping"
subtitle
:
"&aFully Rested!"
tiredness:
enabled
: true
start
: 0
min
: 0
max
: 100
effects:
'50'
:
- SLOWNESS 1
'70'
:
- SLOWNESS 2
'90'
:
- SLOWNESS 5
- MINING_FATIGUE 3
update:
passive:
tiredness_per_minute
: 1
sleep_per_minute
: -15
actions
:
# tiredness per second
running
: 0.2
# tiredness per block
mining
: 0.1
# tiredness per hit
fighting
: 0.5
environment
:
# tiredness per second at night
night
: 0.05
# tiredness per minute in rain
rain
: 0.1
food:
BEEF
: 5
COOKED_BEEF
: -10
MILK_BUCKET
: -20
BREAD
: -5
APPLE
: -3
COOKED_CHICKEN
: -7
COOKED_COD
: -6
GOLDEN_APPLE
: -25
ROTTEN_FLESH
: 8
SPIDER_EYE
: 10