mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-29 13:20:25 +02:00
TNT: Raise cost of TNT by adding a TNT stick crafting stage
6 gunpowder and 1 paper crafts to 2 TNT stick craftitems. 9 TNT sticks craft to 1 TNT. TNT stick is not yet usable as an explosive, possibly later.
This commit is contained in:
@ -546,13 +546,28 @@ minetest.register_craft({
|
||||
recipe = {"default:coal_lump", "default:gravel"}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("tnt:tnt_stick", {
|
||||
description = "TNT Stick",
|
||||
inventory_image = "tnt_tnt_stick.png",
|
||||
groups = {flammable = 5},
|
||||
})
|
||||
|
||||
if enable_tnt then
|
||||
minetest.register_craft({
|
||||
output = "tnt:tnt_stick 2",
|
||||
recipe = {
|
||||
{"tnt:gunpowder", "", "tnt:gunpowder"},
|
||||
{"tnt:gunpowder", "default:paper", "tnt:gunpowder"},
|
||||
{"tnt:gunpowder", "", "tnt:gunpowder"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "tnt:tnt",
|
||||
recipe = {
|
||||
{"group:wood", "tnt:gunpowder", "group:wood"},
|
||||
{"tnt:gunpowder", "tnt:gunpowder", "tnt:gunpowder"},
|
||||
{"group:wood", "tnt:gunpowder", "group:wood"}
|
||||
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"},
|
||||
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"},
|
||||
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"}
|
||||
}
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user