

Instant death if you pass through the beam path ;-)
- Code: Select all
minetest.register_abm(
{nodenames = {"bobblocks:trap_laserbeam_on"},
interval = 1.0,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
local objs = minetest.env:get_objects_inside_radius(pos, 1)
for k, obj in pairs(objs) do
obj:set_hp(obj:get_hp()-1000)
end
end,
})
