Advertisement
Guest User

Untitled

a guest
Apr 6th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.35 KB | None | 0 0
  1. local function confirm_block_surroundings(p)
  2.     for x = -32,32,64 do
  3.         for y = -32,32,64 do
  4.             for z = -32,32,64 do
  5.                 local node = minetest.get_node_or_nil({x=p.x + x, y=p.y + y, z=p.z + z})
  6.                 if not node or node.name == "ignore" then return end
  7.             end
  8.         end
  9.     end
  10.     return true
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement