Check for falling node
Check for falling node
Is there a way to check if a space is occupied by a falling node?
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP
Re: Check for falling node
Check if a node belongs to the 'falling_node' group.
The API reference document (https://github.com/minetest/minetest/bl ... ua_api.txt) is a really useful resource to answer these questions.
The API reference document (https://github.com/minetest/minetest/bl ... ua_api.txt) is a really useful resource to answer these questions.
Re: Check for falling node
No how to check if an empty space contains a falling block entity
Creator of jelys_pizzaria and motorbike, and player of persistent kingdoms. RIP
Re: Check for falling node
"__builtin:falling_node"
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 1)) do
local en = ob:get_luaentity()
if en and en.name == "__builtin:falling_node" then
...
end
end
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 1)) do
local en = ob:get_luaentity()
if en and en.name == "__builtin:falling_node" then
...
end
end
Who is online
Users browsing this forum: No registered users and 6 guests