Add multi-signal doors, basic device deployment, and a target trigger.
This commit is contained in:
parent
1b2199705b
commit
3bf1d5c6a0
24 changed files with 656 additions and 74 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue