made tnt burnable as fuel
This commit is contained in:
parent
626c889d02
commit
55dea76d3c
@ -214,7 +214,7 @@ minetest.register_node(
|
|||||||
description = "TNT",
|
description = "TNT",
|
||||||
tiles = {"tnt_top.png", "tnt_bottom.png", "tnt_sides.png"},
|
tiles = {"tnt_top.png", "tnt_bottom.png", "tnt_sides.png"},
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = {dig_immediate=2, mesecon=2},
|
groups = {dig_immediate = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_punch = function(pos, node, puncher)
|
on_punch = function(pos, node, puncher)
|
||||||
local itemname = puncher:get_wielded_item():get_name()
|
local itemname = puncher:get_wielded_item():get_name()
|
||||||
@ -243,7 +243,8 @@ minetest.register_node(
|
|||||||
},
|
},
|
||||||
"tnt_bottom.png", "tnt_sides.png"},
|
"tnt_bottom.png", "tnt_sides.png"},
|
||||||
light_source = 5,
|
light_source = 5,
|
||||||
drop = "",
|
drop = "tnt:tnt",
|
||||||
|
groups = {dig_immediate = 2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_timer = boom,
|
on_timer = boom,
|
||||||
-- unaffected by explosions
|
-- unaffected by explosions
|
||||||
@ -260,4 +261,11 @@ minetest.register_craft(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft(
|
||||||
|
{
|
||||||
|
type = "fuel",
|
||||||
|
recipe = "tnt:tnt",
|
||||||
|
burntime = 13,
|
||||||
|
})
|
||||||
|
|
||||||
default.log("mod:tnt", "loaded")
|
default.log("mod:tnt", "loaded")
|
Loading…
Reference in New Issue
Block a user