summaryrefslogtreecommitdiff
path: root/technic_chests/wooden_chest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'technic_chests/wooden_chest.lua')
-rw-r--r--technic_chests/wooden_chest.lua14
1 files changed, 14 insertions, 0 deletions
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