mirror of
https://github.com/minetest-mods/technic.git
synced 2025-06-28 06:20:30 +02:00
Rename default chest to "Wooden Chest"
All the chests added by technic specify their material in their description, so the description "Chest" for the default chest looks ambiguous. Rename it to seamlessly fit into the range of chest types.
This commit is contained in:
@ -8,6 +8,7 @@ technic.chests = {}
|
||||
|
||||
dofile(modpath.."/common.lua")
|
||||
dofile(modpath.."/register.lua")
|
||||
dofile(modpath.."/wooden_chest.lua")
|
||||
dofile(modpath.."/iron_chest.lua")
|
||||
dofile(modpath.."/copper_chest.lua")
|
||||
dofile(modpath.."/silver_chest.lua")
|
||||
|
@ -32,6 +32,7 @@ Gold = Gold
|
||||
Iron = Eisen
|
||||
Mithril = Mithril
|
||||
Silver = Silber
|
||||
Wooden = Holz
|
||||
|
||||
# Sorting
|
||||
Sort =
|
||||
|
@ -30,6 +30,7 @@ Gold =
|
||||
Iron =
|
||||
Mithril =
|
||||
Silver =
|
||||
Wooden =
|
||||
|
||||
# Sorting
|
||||
Sort =
|
||||
|
14
technic_chests/wooden_chest.lua
Normal file
14
technic_chests/wooden_chest.lua
Normal file
@ -0,0 +1,14 @@
|
||||
local S
|
||||
if intllib then
|
||||
S = intllib.Getter()
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
|
||||
if minetest.registered_nodes["default:chest"].description == "Chest" then
|
||||
minetest.override_item("default:chest", { description = S("%s Chest"):format(S("Wooden")) })
|
||||
end
|
||||
|
||||
if minetest.registered_nodes["default:chest_locked"].description == "Locked Chest" then
|
||||
minetest.override_item("default:chest_locked", { description = S("%s Locked Chest"):format(S("Wooden")) })
|
||||
end
|
Reference in New Issue
Block a user