Ignite TNT by fire
This commit is contained in:
parent
ffcad31871
commit
621946546b
2 changed files with 12 additions and 3 deletions
|
@ -67,7 +67,7 @@ minetest.register_node("mcl_tnt:tnt", {
|
|||
_tt_help = S("Ignited by tools, explosions, fire, lava, redstone power").."\n"..S("Explosion radius: @1", tostring(TNT_RANGE)),
|
||||
_doc_items_longdesc = longdesc,
|
||||
_doc_items_usagehelp = S("Place the TNT and ignite it with one of the methods above. Quickly get in safe distance. The TNT will start to be affected by gravity and explodes in 4 seconds."),
|
||||
groups = { dig_immediate = 3, tnt = 1, enderman_takable=1 },
|
||||
groups = { dig_immediate = 3, tnt = 1, enderman_takable=1, flammable=-1 },
|
||||
mesecons = tnt_mesecons,
|
||||
on_blast = function(pos)
|
||||
local e = spawn_tnt(pos, "mcl_tnt:tnt")
|
||||
|
@ -78,6 +78,10 @@ minetest.register_node("mcl_tnt:tnt", {
|
|||
tnt.ignite(pointed_thing.under)
|
||||
return true
|
||||
end,
|
||||
_on_burn = function(pos)
|
||||
tnt.ignite(pos)
|
||||
return true
|
||||
end,
|
||||
_on_dispense = function(stack, pos, droppos, dropnode, dropdir)
|
||||
-- Place and ignite TNT
|
||||
if minetest.registered_nodes[dropnode.name].buildable_to then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue