I'm trying to wrote a script that I can use within the LuaCmd mod, that allows me to place air blocks underfoot, while ever the Y co-ord is greater than 2. As a way of creating flat terrain!!!
I have this as a plan:
/lua
get current position
x1 = ? --x
y1 = ? --y
z1 = ? --z
while y1 > 2 do
minetest.set_node({x=x1, y=y1, z=z1}, {name="default:air"})
end
Should I treat the get current position as a list to get the y co-ord, or is there a better way? I'm both a LUA noob and a Minestest noob.
Basil