Create Hello-World.md
parent
c4b34473f3
commit
e8a10edcc6
|
@ -0,0 +1,16 @@
|
|||
# Hello World
|
||||
|
||||
HUD stuff
|
||||
|
||||
```Lua
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local hud_id = player:hud_add({
|
||||
hud_elem_type = 'text',
|
||||
text = 'First text',
|
||||
number = 0xFFFFFF,
|
||||
position = {x=0, y=1},
|
||||
alignment = {x=1, y=-1},
|
||||
offset = {x=4, y=-4}
|
||||
})
|
||||
end)
|
||||
```
|
Loading…
Reference in New Issue