mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-31 02:56:26 -04:00
Add some comments regarding on_blast
This commit is contained in:
parent
47636791b1
commit
65bf238f1e
3 changed files with 5 additions and 0 deletions
|
@ -26,6 +26,7 @@ function doors.register_door(name, def)
|
||||||
def.sound_open_door = "doors_door_open"
|
def.sound_open_door = "doors_door_open"
|
||||||
end
|
end
|
||||||
if def.only_placer_can_open then
|
if def.only_placer_can_open then
|
||||||
|
-- unaffected by explosions
|
||||||
def.on_blast = function() end
|
def.on_blast = function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@ minetest.register_node("fire:basic_flame", {
|
||||||
minetest.after(0, fire.on_flame_remove_at, pos)
|
minetest.after(0, fire.on_flame_remove_at, pos)
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
-- unaffected by explosions
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -248,6 +248,7 @@ minetest.register_node("tnt:tnt_burning", {
|
||||||
drop = "",
|
drop = "",
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_timer = boom,
|
on_timer = boom,
|
||||||
|
-- unaffected by explosions
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -261,6 +262,7 @@ minetest.register_node("tnt:boom", {
|
||||||
on_timer = function(pos, elapsed)
|
on_timer = function(pos, elapsed)
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end,
|
end,
|
||||||
|
-- unaffected by explosions
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -328,6 +330,7 @@ minetest.register_node("tnt:gunpowder_burning", {
|
||||||
end
|
end
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
end,
|
end,
|
||||||
|
-- unaffected by explosions
|
||||||
on_blast = function() end,
|
on_blast = function() end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue