You can get the position of the a player and then calculate the position of the node below them based on that.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_on_joinplayer(function(player)
local pos = player:getpos()
pos.y = pos.y-1
minetest.set_node(pos, {name="default:cloud"})
end)