Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
16e11918c5 | ||
|
9f16221ded | ||
|
5296521b7f | ||
|
8adeea2fb3 | ||
|
e151d018b9 | ||
|
8b3307cc70 | ||
|
351a70b530 | ||
|
eae0d158d7 |
21
README.txt
21
README.txt
@@ -9,8 +9,8 @@ ShadowNinja (MIT)
|
|||||||
sofar (sofar@foo-projects.org) (MIT)
|
sofar (sofar@foo-projects.org) (MIT)
|
||||||
Various Minetest developers and contributors (MIT)
|
Various Minetest developers and contributors (MIT)
|
||||||
|
|
||||||
Authors of media (textures)
|
Authors of media
|
||||||
---------------------------
|
----------------
|
||||||
BlockMen (CC BY-SA 3.0):
|
BlockMen (CC BY-SA 3.0):
|
||||||
All textures not mentioned below.
|
All textures not mentioned below.
|
||||||
|
|
||||||
@@ -26,6 +26,23 @@ tnt_blast.png
|
|||||||
paramat (CC BY-SA 3.0)
|
paramat (CC BY-SA 3.0)
|
||||||
tnt_tnt_stick.png - Derived from a texture by benrob0329.
|
tnt_tnt_stick.png - Derived from a texture by benrob0329.
|
||||||
|
|
||||||
|
TumeniNodes (CC0 1.0)
|
||||||
|
tnt_explode.ogg
|
||||||
|
renamed, edited, and converted to .ogg from Explosion2.wav
|
||||||
|
by steveygos93 (CC0 1.0)
|
||||||
|
<https://freesound.org/s/80401/>
|
||||||
|
|
||||||
|
tnt_ignite.ogg
|
||||||
|
renamed, edited, and converted to .ogg from sparkler_fuse_nm.wav
|
||||||
|
by theneedle.tv (CC0 1.0)
|
||||||
|
<https://freesound.org/s/316682/>
|
||||||
|
|
||||||
|
tnt_gunpowder_burning.ogg
|
||||||
|
renamed, edited, and converted to .ogg from road flare ignite burns.wav
|
||||||
|
by frankelmedico (CC0 1.0)
|
||||||
|
<https://freesound.org/s/348767/>
|
||||||
|
|
||||||
|
|
||||||
Introduction
|
Introduction
|
||||||
------------
|
------------
|
||||||
This mod adds TNT to Minetest. TNT is a tool to help the player
|
This mod adds TNT to Minetest. TNT is a tool to help the player
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
default
|
|
||||||
fire
|
|
||||||
|
|
14
init.lua
14
init.lua
@@ -1,5 +1,11 @@
|
|||||||
|
-- tnt/init.lua
|
||||||
|
|
||||||
tnt = {}
|
tnt = {}
|
||||||
|
|
||||||
|
-- Load support for MT game translation.
|
||||||
|
local S = minetest.get_translator("tnt")
|
||||||
|
|
||||||
|
|
||||||
-- Default to enabled when in singleplayer
|
-- Default to enabled when in singleplayer
|
||||||
local enable_tnt = minetest.settings:get_bool("enable_tnt")
|
local enable_tnt = minetest.settings:get_bool("enable_tnt")
|
||||||
if enable_tnt == nil then
|
if enable_tnt == nil then
|
||||||
@@ -396,7 +402,7 @@ function tnt.boom(pos, def)
|
|||||||
minetest.set_node(pos, {name = "tnt:boom"})
|
minetest.set_node(pos, {name = "tnt:boom"})
|
||||||
end
|
end
|
||||||
local sound = def.sound or "tnt_explode"
|
local sound = def.sound or "tnt_explode"
|
||||||
minetest.sound_play(sound, {pos = pos, gain = 1.5,
|
minetest.sound_play(sound, {pos = pos, gain = 2.5,
|
||||||
max_hear_distance = math.min(def.radius * 20, 128)})
|
max_hear_distance = math.min(def.radius * 20, 128)})
|
||||||
local drops, radius = tnt_explode(pos, def.radius, def.ignore_protection,
|
local drops, radius = tnt_explode(pos, def.radius, def.ignore_protection,
|
||||||
def.ignore_on_blast, owner, def.explode_center)
|
def.ignore_on_blast, owner, def.explode_center)
|
||||||
@@ -422,7 +428,7 @@ minetest.register_node("tnt:boom", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("tnt:gunpowder", {
|
minetest.register_node("tnt:gunpowder", {
|
||||||
description = "Gun Powder",
|
description = S("Gun Powder"),
|
||||||
drawtype = "raillike",
|
drawtype = "raillike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
@@ -547,7 +553,7 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("tnt:tnt_stick", {
|
minetest.register_craftitem("tnt:tnt_stick", {
|
||||||
description = "TNT Stick",
|
description = S("TNT Stick"),
|
||||||
inventory_image = "tnt_tnt_stick.png",
|
inventory_image = "tnt_tnt_stick.png",
|
||||||
groups = {flammable = 5},
|
groups = {flammable = 5},
|
||||||
})
|
})
|
||||||
@@ -675,6 +681,6 @@ end
|
|||||||
|
|
||||||
tnt.register_tnt({
|
tnt.register_tnt({
|
||||||
name = "tnt:tnt",
|
name = "tnt:tnt",
|
||||||
description = "TNT",
|
description = S("TNT"),
|
||||||
radius = tnt_radius,
|
radius = tnt_radius,
|
||||||
})
|
})
|
||||||
|
38
license.txt
38
license.txt
@@ -26,9 +26,10 @@ DEALINGS IN THE SOFTWARE.
|
|||||||
For more details:
|
For more details:
|
||||||
https://opensource.org/licenses/MIT
|
https://opensource.org/licenses/MIT
|
||||||
|
|
||||||
|
===================================
|
||||||
|
|
||||||
Licenses of media (textures)
|
Licenses of media
|
||||||
----------------------------
|
-----------------
|
||||||
|
|
||||||
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
|
||||||
Copyright (C) 2014-2016 BlockMen
|
Copyright (C) 2014-2016 BlockMen
|
||||||
@@ -64,3 +65,36 @@ rights may limit how you use the material.
|
|||||||
|
|
||||||
For more details:
|
For more details:
|
||||||
http://creativecommons.org/licenses/by-sa/3.0/
|
http://creativecommons.org/licenses/by-sa/3.0/
|
||||||
|
|
||||||
|
====================================================
|
||||||
|
|
||||||
|
CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
|
||||||
|
for audio files (found in sounds folder)
|
||||||
|
TumeniNodes
|
||||||
|
steveygos93
|
||||||
|
theneedle.tv
|
||||||
|
frankelmedico
|
||||||
|
|
||||||
|
No Copyright
|
||||||
|
|
||||||
|
The person who associated a work with this deed has dedicated the work to the public domain
|
||||||
|
by waiving all of his or her rights to the work worldwide under copyright law, including all
|
||||||
|
related and neighboring rights, to the extent allowed by law.
|
||||||
|
|
||||||
|
You can copy, modify, distribute and perform the work, even for commercial purposes, all
|
||||||
|
without asking permission. See Other Information below.
|
||||||
|
|
||||||
|
In no way are the patent or trademark rights of any person affected by CC0, nor are the
|
||||||
|
rights that other persons may have in the work or in how the work is used, such as publicity
|
||||||
|
or privacy rights.
|
||||||
|
|
||||||
|
Unless expressly stated otherwise, the person who associated a work with this deed makes no
|
||||||
|
warranties about the work, and disclaims liability for all uses of the work, to the fullest
|
||||||
|
extent permitted by applicable law.
|
||||||
|
|
||||||
|
When using or citing the work, you should not imply endorsement by the author or the affirmer.
|
||||||
|
|
||||||
|
This license is acceptable for Free Cultural Works.
|
||||||
|
For more Information:
|
||||||
|
https://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
4
locale/template.txt
Normal file
4
locale/template.txt
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# textdomain: tnt
|
||||||
|
Gun Powder=
|
||||||
|
TNT Stick=
|
||||||
|
TNT=
|
4
locale/tnt.de.tr
Normal file
4
locale/tnt.de.tr
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# textdomain: tnt
|
||||||
|
Gun Powder=Schießpulver
|
||||||
|
TNT Stick=TNT-Stange
|
||||||
|
TNT=TNT
|
4
locale/tnt.es.tr
Normal file
4
locale/tnt.es.tr
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# textdomain: tnt
|
||||||
|
Gun Powder=Pólvora
|
||||||
|
TNT Stick=Cartucho de TNT
|
||||||
|
TNT=TNT
|
4
locale/tnt.fr.tr
Normal file
4
locale/tnt.fr.tr
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# textdomain: tnt
|
||||||
|
Gun Powder=Poudre à canon
|
||||||
|
TNT Stick=Bâton de TNT
|
||||||
|
TNT=TNT
|
4
locale/tnt.it.tr
Normal file
4
locale/tnt.it.tr
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# textdomain: tnt
|
||||||
|
Gun Powder=Polvere da sparo
|
||||||
|
TNT Stick=Candelotto di TNT
|
||||||
|
TNT=TNT
|
3
mod.conf
Normal file
3
mod.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
name = tnt
|
||||||
|
description = Minetest Game mod: tnt
|
||||||
|
depends = default, fire
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user