Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on_place = function(itemstack, user, pointed_thing)
- local var = user:hud_add( {
- type = "image",
- position = {x=0.8, y=0.02},
- name = "potions_hud_bg.png",
- scale = {x=2, y=2},
- text = {"potions_hud_bg.png"},
- })
- local posy = 0.02
- local player = user
- local function move_up(player)
- player:hud_change(var, position, {x=0.8, y=posy})
- posy = posy-0.001
- minetest.after(0.2, function(player) move_up(player) end)
- end
- move_up()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement