From f7d103cd96f609f6c0002074d46d661ba14c2ae5 Mon Sep 17 00:00:00 2001 From: Zefram Date: Fri, 20 Jun 2014 15:44:05 +0100 Subject: 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. --- technic_chests/wooden_chest.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 technic_chests/wooden_chest.lua (limited to 'technic_chests/wooden_chest.lua') diff --git a/technic_chests/wooden_chest.lua b/technic_chests/wooden_chest.lua new file mode 100644 index 0000000..8ff33b0 --- /dev/null +++ b/technic_chests/wooden_chest.lua @@ -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 -- cgit v1.2.3