Hey all, I am working on another mod. This mod requires that an ABM running in it only affects blocks below Y=13. I have searched everywhere, and can find nothing about how to make this work.
Any ideas?
minetest.register_abm({
nodenames = { list of nodenames to operate on },
...
... other ABM settings here...
...
action = function(pos, node, active_object_count, active_object_count_wider)
if pos.y < 14 then
minetest.env:add_node(pos, {name = "widgets:fooblock"})
end
end
})
Users browsing this forum: No registered users and 14 guests