Hi
can I programmatically get the position of the block I'm standing on in Minetest?
I'd like to work on my first mod to change the block beneath me to another type. Gotta start somewhere!
minetest.register_on_joinplayer(function(player)
local pos = player:getpos()
pos.y = pos.y-1
minetest.set_node(pos, {name="default:cloud"})
end)Users browsing this forum: No registered users and 12 guests