minetest_modding_book/8_hud/basic_hud/init.lua
2015-02-19 15:20:16 +00:00

10 lines
221 B
Lua

minetest.register_on_joinplayer(function(player)
local idx = player:hud_add({
hud_elem_type = "text",
position = {x = 1, y = 0},
offset = {x=-100, y = 20},
scale = {x = 100, y = 100},
text = "My Text"
})
end)