Rename mod: locks → rp_locks

master
Wuzzy 2022-04-23 00:03:20 +02:00
parent 655bd8cbab
commit 09b3f8c6be
21 changed files with 25 additions and 21 deletions

View File

@ -182,7 +182,7 @@ for _, npc_type_table in pairs(npc_types) do
end
elseif iname == "mobs:lasso" then
say(S("It's used to capture large animals."), name)
elseif iname == "locks:pick" then
elseif iname == "rp_locks:pick" then
say(S("Why are you carrying this around? Do you want crack open our locked chests?"), name)
elseif iname == "mobs:net" then
say(S("It's used to capture small animals."), name)

View File

@ -4,7 +4,7 @@
-- By Kaadmy, for Pixture
--
local S = minetest.get_translator("locks")
local S = minetest.get_translator("rp_locks")
locks = {}
@ -49,7 +49,7 @@ end
-- Items and nodes
minetest.register_tool(
"locks:pick",
"rp_locks:pick",
{
description = S("Lock Pick"),
_tt_help = S("Cracks locked chests"),
@ -149,7 +149,7 @@ local put_lock = function(itemstack, putter, pointed_thing)
minetest.record_protection_violation(pos, name)
return itemstack
end
node.name = "locks:chest"
node.name = "rp_locks:chest"
minetest.swap_node(pos, node)
local meta = minetest.get_meta(pos)
if name ~= "" then
@ -166,7 +166,7 @@ local put_lock = function(itemstack, putter, pointed_thing)
end
minetest.register_craftitem(
"locks:lock",
"rp_locks:lock",
{
description = S("Lock"),
_tt_help = S("Used to craft locked chests"),
@ -180,7 +180,7 @@ minetest.register_craftitem(
})
minetest.register_node(
"locks:chest",
"rp_locks:chest",
{
description = S("Locked Chest"),
_tt_help = S("Provides 32 inventory slots") .. "\n" .. S("Can only be opened by its owner and those who have a lockpick"),
@ -302,7 +302,7 @@ minetest.register_node(
crafting.register_craft(
{
output = "locks:pick",
output = "rp_locks:pick",
items = {
"rp_default:ingot_steel 2",
"rp_default:stick 3",
@ -311,7 +311,7 @@ crafting.register_craft(
crafting.register_craft(
{
output = "locks:lock",
output = "rp_locks:lock",
items = {
"rp_default:ingot_steel 3",
"group:planks 2",
@ -320,10 +320,10 @@ crafting.register_craft(
crafting.register_craft(
{
output = "locks:chest",
output = "rp_locks:chest",
items = {
"rp_default:chest",
"locks:lock",
"rp_locks:lock",
},
})
@ -335,7 +335,7 @@ achievements.register_achievement(
title = S("Locksmith"),
description = S("Craft a lock."),
times = 1,
craftitem = "locks:lock",
craftitem = "rp_locks:lock",
})
achievements.register_achievement(
@ -346,4 +346,8 @@ achievements.register_achievement(
times = 1,
})
default.log("mod:locks", "loaded")
minetest.register_alias("locks:chest", "rp_locks:chest")
minetest.register_alias("locks:lock", "rp_locks:lock")
minetest.register_alias("locks:pick", "rp_locks:pick")
default.log("mod:rp_locks", "loaded")

View File

@ -1,4 +1,4 @@
# textdomain: locks
# textdomain: rp_locks
Lock Pick=Dietrich
@1 has broken into your locked chest!=@1 hat Ihre abgeschlossene Truhe geknackt!
You have broken the lock!=Sie haben das Schloss geknackt!

View File

@ -1,4 +1,4 @@
# textdomain: locks
# textdomain: rp_locks
Lock Pick=Crochet de serrure
@1 has broken into your locked chest!=@1 a forcé votre coffre fermé à clé!
You have broken the lock!=Tu as cassé la serrure!

View File

@ -1,4 +1,4 @@
# textdomain: locks
# textdomain: rp_locks
Lock Pick=
@1 has broken into your locked chest!=
You have broken the lock!=

View File

@ -1,2 +1,2 @@
name = locks
name = rp_locks
depends = rp_default, rp_crafting, rp_achievements

View File

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

View File

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 165 B

View File

Before

Width:  |  Height:  |  Size: 141 B

After

Width:  |  Height:  |  Size: 141 B

View File

@ -120,7 +120,7 @@ function util.reconstruct(pos1, pos2, nomanip)
end
-- Fix chests, locked chests, music players, furnaces
local nodetypes = { "rp_default:chest", "locks:chest", "music:player", "rp_default:furnace" }
local nodetypes = { "rp_default:chest", "rp_locks:chest", "music:player", "rp_default:furnace" }
for n=1, #nodetypes do
local nodes = minetest.find_nodes_in_area(pos1, pos2, nodetypes[n])
local node = minetest.registered_nodes[nodetypes[n]]

View File

@ -10,7 +10,7 @@ village.villages = {}
local village_file = minetest.get_worldpath() .. "/villages.dat"
local modpath = minetest.get_modpath("village")
local mod_locks = minetest.get_modpath("locks") ~= nil
local mod_locks = minetest.get_modpath("rp_locks") ~= nil
local mapseed = minetest.get_mapgen_setting("seed")
local water_level = tonumber(minetest.get_mapgen_setting("water_level"))
@ -350,7 +350,7 @@ function village.spawn_chunk(pos, state, orient, replace, pr, chunktype, nofill,
function(pos)
if pr:next(1,4) == 1 then
local node = minetest.get_node(pos)
node.name = "locks:chest"
node.name = "rp_locks:chest"
minetest.swap_node(pos, node)
end
end, true)
@ -361,7 +361,7 @@ function village.spawn_chunk(pos, state, orient, replace, pr, chunktype, nofill,
util.nodefunc(
pos,
{x = pos.x+12, y = pos.y+12, z = pos.z+12},
{"rp_default:chest", "locks:chest"},
{"rp_default:chest", "rp_locks:chest"},
function(pos)
goodies.fill(pos, chunktype, pr, "main", 3)
end, true)

View File

@ -1,3 +1,3 @@
name = village
depends = rp_default, rp_util, mobs, goodies, nav, rp_privs
optional_depends = locks
optional_depends = rp_locks