Skip to content

Commit 37b206e

Browse files
authoredJun 1, 2018
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.
1 parent e74e091 commit 37b206e

File tree

4 files changed

+40
-11
lines changed

4 files changed

+40
-11
lines changed
 

Diff for: ‎mods/tnt/README.txt

+21-8
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,35 @@ All gunpowder textures except tnt_gunpowder_inventory.png.
2323
sofar (sofar@foo-projects.org) (CC BY-SA 3.0):
2424
tnt_blast.png
2525

26+
paramat (CC BY-SA 3.0)
27+
tnt_tnt_stick.png - Derived from a texture by benrob0329.
28+
2629
Introduction
2730
------------
2831
This mod adds TNT to Minetest. TNT is a tool to help the player
2932
in mining.
3033

3134
How to use the mod:
35+
3236
Craft gunpowder by placing coal and gravel in the crafting area.
33-
The gunpowder can be used to craft TNT or as fuse for TNT.
34-
To craft TNT place items like this:
35-
-- wood - gunpowder -- wood -
36-
gunpowder gunpowder gunpowder
37-
-- wood - gunpowder -- wood -
37+
The gunpowder can be used to craft TNT sticks or as a fuse trail for TNT.
38+
39+
To craft 2 TNT sticks:
40+
G_G
41+
GPG
42+
G_G
43+
G = gunpowder
44+
P = paper
45+
The sticks are not usable as an explosive.
46+
47+
Craft TNT from 9 TNT sticks.
3848

39-
There are different ways to blow up TNT:
49+
There are different ways to ignite TNT:
4050
1. Hit it with a torch.
41-
2. Hit a gunpowder fuse that leads to a TNT block with a torch or flint-and-steel.
51+
2. Hit a gunpowder fuse trail that leads to TNT with a torch or
52+
flint-and-steel.
4253
3. Activate it with mesecons (fastest way).
4354

44-
Be aware of the damage radius of 6 blocks!
55+
For 1 TNT:
56+
Node destruction radius is 3 nodes.
57+
Player and object damage radius is 6 nodes.

Diff for: ‎mods/tnt/init.lua

+18-3
Original file line numberDiff line numberDiff line change
@@ -546,13 +546,28 @@ minetest.register_craft({
546546
recipe = {"default:coal_lump", "default:gravel"}
547547
})
548548

549+
minetest.register_craftitem("tnt:tnt_stick", {
550+
description = "TNT Stick",
551+
inventory_image = "tnt_tnt_stick.png",
552+
groups = {flammable = 5},
553+
})
554+
549555
if enable_tnt then
556+
minetest.register_craft({
557+
output = "tnt:tnt_stick 2",
558+
recipe = {
559+
{"tnt:gunpowder", "", "tnt:gunpowder"},
560+
{"tnt:gunpowder", "default:paper", "tnt:gunpowder"},
561+
{"tnt:gunpowder", "", "tnt:gunpowder"},
562+
}
563+
})
564+
550565
minetest.register_craft({
551566
output = "tnt:tnt",
552567
recipe = {
553-
{"group:wood", "tnt:gunpowder", "group:wood"},
554-
{"tnt:gunpowder", "tnt:gunpowder", "tnt:gunpowder"},
555-
{"group:wood", "tnt:gunpowder", "group:wood"}
568+
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"},
569+
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"},
570+
{"tnt:tnt_stick", "tnt:tnt_stick", "tnt:tnt_stick"}
556571
}
557572
})
558573

Diff for: ‎mods/tnt/license.txt

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Copyright (C) 2014-2016 BlockMen
3535
Copyright (C) 2014-2016 ShadowNinja
3636
Copyright (C) 2015-2016 Wuzzy
3737
Copyright (C) 2016 sofar (sofar@foo-projects.org)
38+
Copyright (C) 2018 paramat
3839

3940
You are free to:
4041
Share — copy and redistribute the material in any medium or format.

Diff for: ‎mods/tnt/textures/tnt_tnt_stick.png

149 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.