1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-28 04:40:22 +02:00

Make TNT respect on_blast, implement on_blast for some nodes

Implemented nodes:
- Steel Door: Ignores explosion
- Locked Chest: Ignores explosion
- Fire: Ignores explosion
- TNT: Starts burning
- Burning TNT: Explodes immediately
- Gunpowder: Starts burning
- Burning Gunpowder: Ignores explosion
This commit is contained in:
Wuzzy
2015-03-07 08:32:00 +01:00
committed by Novatux
parent ab4485f824
commit 8bc8dd64c5
4 changed files with 61 additions and 19 deletions

View File

@ -24,6 +24,9 @@ minetest.register_node("fire:basic_flame", {
on_destruct = function(pos)
minetest.after(0, fire.on_flame_remove_at, pos)
end,
-- unaffected by explosions
on_blast = function() end,
})
fire.D = 6