Rename tnt mod to rp_tnt

This commit is contained in:
Wuzzy 2022-04-22 20:47:20 +02:00
parent 0d35927983
commit 2313c410ea
24 changed files with 20 additions and 20 deletions

View File

@ -151,7 +151,7 @@ minetest.register_abm(
util.nodefunc(
{x = pos.x-1, y = pos.y-1, z = pos.z-1},
{x = pos.x+1, y = pos.y+1, z = pos.z+1},
"tnt:tnt",
"rp_tnt:tnt",
function(pos)
tnt.burn(pos)
end,

View File

@ -1,2 +1,2 @@
name = lumien
depends = rp_default, tnt, util, crafting, achievements
depends = rp_default, rp_tnt, util, crafting, achievements

View File

@ -31,7 +31,7 @@ mobs:register_mob(
jump = true,
view_range = 10,
drops = {
{name = "tnt:tnt",
{name = "rp_tnt:tnt",
chance = 1, min = 1, max = 3},
},
water_damage = 0,

View File

@ -246,7 +246,7 @@ for _, npc_type_table in pairs(npc_types) do
else
say(S("You can use this to light up torches."), name)
end
elseif iname == "tnt:tnt" then
elseif iname == "rp_tnt:tnt" then
if minetest.settings:get_bool("tnt_enable", true) then
say(S("TNT needs to be ignited by a flint and steel."), name)
else

View File

@ -862,8 +862,8 @@ minetest.register_tool(
})
wear = true
elseif nodename == "tnt:tnt" then
local y = minetest.registered_nodes["tnt:tnt"]
elseif nodename == "rp_tnt:tnt" then
local y = minetest.registered_nodes["rp_tnt:tnt"]
if y ~= nil then
y.on_punch(pos, node, user)
wear = true

View File

@ -4,7 +4,7 @@
-- By PilzAdam and ShadowNinja
-- Tweaked by Kaadmy, for Pixture
--
local S = minetest.get_translator("tnt")
local S = minetest.get_translator("rp_tnt")
tnt = {}
@ -158,9 +158,9 @@ end
function tnt.burn(pos)
local name = minetest.get_node(pos).name
if tnt_enable and name == "tnt:tnt" then
if tnt_enable and name == "rp_tnt:tnt" then
minetest.sound_play("tnt_ignite", {pos = pos}, true)
minetest.set_node(pos, {name = "tnt:tnt_burning"})
minetest.set_node(pos, {name = "rp_tnt:tnt_burning"})
minetest.get_node_timer(pos):start(2)
end
end
@ -254,7 +254,7 @@ else
end
minetest.register_node(
"tnt:tnt",
"rp_tnt:tnt",
{
description = desc,
_tt_help = tt,
@ -294,7 +294,7 @@ minetest.register_node(
-- Nodes
minetest.register_node(
"tnt:tnt_burning",
"rp_tnt:tnt_burning",
{
tiles = {
{
@ -308,7 +308,7 @@ minetest.register_node(
},
"tnt_bottom.png", "tnt_sides.png"},
light_source = 5,
drop = "tnt:tnt",
drop = "rp_tnt:tnt",
is_ground_content = false,
groups = {handy = 2},
sounds = default.node_sound_wood_defaults(),
@ -322,7 +322,7 @@ minetest.register_node(
crafting.register_craft(
{
output = "tnt:tnt",
output = "rp_tnt:tnt",
items = {
"group:planks 4",
"rp_default:flint_and_steel",
@ -332,7 +332,7 @@ crafting.register_craft(
minetest.register_craft(
{
type = "fuel",
recipe = "tnt:tnt",
recipe = "rp_tnt:tnt",
burntime = 13,
})
@ -354,8 +354,8 @@ else
title = S("Boom?"),
description = S("Craft defused TNT."),
times = 1,
craftitem = "tnt:tnt",
craftitem = "rp_tnt:tnt",
})
end
default.log("mod:tnt", "loaded")
default.log("mod:rp_tnt", "loaded")

View File

@ -1,4 +1,4 @@
# textdomain: tnt
# textdomain: rp_tnt
TNT=TNT
TNT (defused)=TNT (entschärft)
Boom!=Bumm!

View File

@ -1,4 +1,4 @@
# textdomain: tnt
# textdomain: rp_tnt
TNT=Explosif
TNT (defused)=Explosif (désamorcé)
Boom!=Boom!

View File

@ -1,4 +1,4 @@
# textdomain: tnt
# textdomain: rp_tnt
TNT=
TNT (defused)=
Boom!=

View File

@ -1,2 +1,2 @@
name = tnt
name = rp_tnt
depends = rp_default, crafting, achievements

View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 122 B

View File

Before

Width:  |  Height:  |  Size: 198 B

After

Width:  |  Height:  |  Size: 198 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View File

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 143 B

View File

Before

Width:  |  Height:  |  Size: 159 B

After

Width:  |  Height:  |  Size: 159 B