mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 17:46:28 -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"
|
||||
end
|
||||
if def.only_placer_can_open then
|
||||
-- unaffected by explosions
|
||||
def.on_blast = function() end
|
||||
end
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ minetest.register_node("fire:basic_flame", {
|
|||
minetest.after(0, fire.on_flame_remove_at, pos)
|
||||
end,
|
||||
|
||||
-- unaffected by explosions
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
|
|
|
@ -248,6 +248,7 @@ minetest.register_node("tnt:tnt_burning", {
|
|||
drop = "",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_timer = boom,
|
||||
-- unaffected by explosions
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
|
@ -261,6 +262,7 @@ minetest.register_node("tnt:boom", {
|
|||
on_timer = function(pos, elapsed)
|
||||
minetest.remove_node(pos)
|
||||
end,
|
||||
-- unaffected by explosions
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
|
@ -328,6 +330,7 @@ minetest.register_node("tnt:gunpowder_burning", {
|
|||
end
|
||||
minetest.remove_node(pos)
|
||||
end,
|
||||
-- unaffected by explosions
|
||||
on_blast = function() end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue