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( 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},
{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) function(pos)
tnt.burn(pos) tnt.burn(pos)
end, end,

View File

@ -1,2 +1,2 @@
name = lumien 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, jump = true,
view_range = 10, view_range = 10,
drops = { drops = {
{name = "tnt:tnt", {name = "rp_tnt:tnt",
chance = 1, min = 1, max = 3}, chance = 1, min = 1, max = 3},
}, },
water_damage = 0, water_damage = 0,

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,2 +1,2 @@
name = tnt name = rp_tnt
depends = rp_default, crafting, achievements 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