Skip to content
Snippets Groups Projects
Commit 36d18cb1 authored by tenplus1's avatar tenplus1 Committed by paramat
Browse files

added timer to tnt:tnt_burning for explosions

By adding the timer to the tnt:tnt_burning node it will help mods add the block and cause an explosion after 4 seconds instead of doing nothing like in it's current state.
parent b47a5564
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,6 @@ minetest.register_node("tnt:tnt", {
if puncher:get_wielded_item():get_name() == "default:torch" then
minetest.sound_play("tnt_ignite", {pos=pos})
minetest.set_node(pos, {name="tnt:tnt_burning"})
minetest.get_node_timer(pos):start(4)
end
end,
on_blast = function(pos, intensity)
......@@ -258,6 +257,9 @@ minetest.register_node("tnt:tnt_burning", {
light_source = 5,
drop = "",
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
minetest.get_node_timer(pos):start(4)
end,
on_timer = boom,
-- unaffected by explosions
on_blast = function() end,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment