lzr_gui = {} lzr_gui.set_play_gui = function(player) player:hud_set_hotbar_itemcount(3) player:hud_set_hotbar_image("lzr_gui_hotbar_3.png") end lzr_gui.set_editor_gui = function(player) player:hud_set_hotbar_itemcount(8) player:hud_set_hotbar_image("lzr_gui_hotbar_8.png") end minetest.register_on_joinplayer(function(player) player:hud_set_flags({minimap = false, minimap_radar = false, healthbar = false, breathbar = false}) player:set_inventory_formspec( "formspec_version[4]size[11,6]list[current_player;main;0.5,0.5;8,4]" ) player:set_formspec_prepend([=[ listcolors[#5c4432;#a87d5d;#3b2b20;#b75647;#ffffff] bgcolor[#503b2c;false] style_type[button;bgcolor=#5c4432]]=]) player:hud_set_hotbar_selected_image("lzr_gui_hotbar_selected.png") lzr_gui.set_play_gui(player) end)