Add multi-signal doors, basic device deployment, and a target trigger.

This commit is contained in:
Signal 2025-11-17 03:04:16 -05:00
parent 1b2199705b
commit 9acd605c86
35 changed files with 660 additions and 75 deletions

View file

@ -6,7 +6,7 @@ minetest.register_entity(":artifact:burst", {
textures = {"blank.png"},
pointable = false,
physical = true,
collide_with_objects = false,
-- collide_with_objects = false,
collisionbox = {
-0.2, -0.2, -0.2,
0.2, 0.2, 0.2
@ -49,6 +49,13 @@ minetest.register_entity(":artifact:burst", {
time = 0.1,
}
e.object:remove()
if movement.collisions[1].type == "node" then
local pos = movement.collisions[1].node_pos
local name = minetest.get_node(pos).name
if minetest.registered_nodes[name].on_impact then
minetest.registered_nodes[name].on_impact(pos)
end
end
end
end,
impulse = function(e, vel)