1
0
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:
Paramat
2018-06-01 23:41:45 +01:00
committed by GitHub
parent e74e091e78
commit 37b206e49f
4 changed files with 41 additions and 12 deletions

View File

@ -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"}
}
})