mff_hud/init.lua

10 lines
387 B
Lua
Raw Normal View History

2015-09-17 14:50:48 +02:00
local hotbar_size = minetest.setting_get("hotbar_size") or 16
minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(hotbar_size)
2015-09-23 20:55:48 +02:00
2015-10-08 19:15:34 +02:00
player:hud_set_flags({crosshair = true, hotbar = true, healthbar = true, wielditem = true, breathbar = true})
2015-09-17 14:50:48 +02:00
player:hud_set_hotbar_image("hud_hotbar.png")
player:hud_set_hotbar_selected_image("hud_hotbar_selected.png")
end)