Commit e83d8cc1 authored by puppetmaster's avatar puppetmaster
Browse files

add timer mod

parent dc291218
cuentaAtras=100
minetest.register_on_joinplayer(function(player)
local my_hub3 = player:hud_add({
hud_elem_type = "text",
position = {x = 0.5, y = 0.5},
offset = {x = -120, y = -25},
text = "Tiempo "..cuentaAtras,
alignment = {x = 0, y = 0}, -- center aligned
scale = {x = 100, y = 100}, -- covered later
number = 0xFF0000,
})
function change_hud()
if cuentaAtras>0 then
cuentaAtras=cuentaAtras-1
player:hud_change(my_hub3, "text","Tiempo "..cuentaAtras)
end
minetest.after(5,change_hud)
end
minetest.after(5,change_hud)
end)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment