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.
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")
Iron = Eisen
Mithril = Mithril
Silver = Silber
+Wooden = Holz
# Sorting
Sort =
Iron =
Mithril =
Silver =
+Wooden =
# Sorting
Sort =
--- /dev/null
+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