1
0
mirror of https://github.com/MinetestForFun/mff_hud.git synced 2024-11-16 07:20:29 +01:00
mff_hud/init.lua
2019-08-22 20:01:35 -05:00

12 lines
597 B
Lua

local hotbar_size = minetest.settings:get("hotbar_size") or 16
local health_visible = minetest.settings:get_bool("hotbar_health_visible") or false
local minimap_visible = minetest.settings:get_bool("enable_minimap") or false
minetest.register_on_joinplayer(function(player)
player:hud_set_hotbar_itemcount(hotbar_size)
player:hud_set_flags({crosshair = true, hotbar = true, healthbar = health_visible, wielditem = true, breathbar = health_visible, minimap = minimap_visible})
player:hud_set_hotbar_image("hud_hotbar.png")
player:hud_set_hotbar_selected_image("hud_hotbar_selected.png")
end)