1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Changing uboots and nether apple

- New nodes used for uboots
- Nether apple now increase the hungry level by 9
This commit is contained in:
LeMagnesium
2014-10-29 22:23:03 +01:00
parent c72fb2b1b9
commit fa97a1934e
2 changed files with 148 additions and 132 deletions

View File

@ -369,7 +369,7 @@ minetest.register_node("nether:apple", {
local amount = math.random(4, 6)
local p_hunger = tonumber(hud.hunger[user:get_player_name()])
if not p_hunger then return end
p_hunger = p_hunger+3
p_hunger = p_hunger+9
if p_hunger > 30 then p_hunger = 30 end
hud.hunger[user:get_player_name()] = p_hunger
hud.set_hunger(user)