mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 12:21:24 +00:00
TNT: Chain reaction
With the new high res timer, we can make TNT much better create chain reactions. This does exactly that.
This commit is contained in:
parent
eafd1ebc43
commit
3ddff2fbea
1 changed files with 3 additions and 1 deletions
|
@ -428,7 +428,9 @@ function tnt.register_tnt(def)
|
|||
end
|
||||
end,
|
||||
on_blast = function(pos, intensity)
|
||||
tnt.burn(pos)
|
||||
minetest.after(0.1, function()
|
||||
tnt.boom(pos, def)
|
||||
end)
|
||||
end,
|
||||
mesecons = {effector =
|
||||
{action_on =
|
||||
|
|
Loading…
Add table
Reference in a new issue