summaryrefslogtreecommitdiff
path: root/technic/technic_chests
diff options
context:
space:
mode:
Diffstat (limited to 'technic/technic_chests')
-rw-r--r--technic/technic_chests/README.md24
-rw-r--r--technic/technic_chests/common.lua71
-rw-r--r--technic/technic_chests/copper_chest.lua46
-rw-r--r--technic/technic_chests/depends.txt4
-rw-r--r--technic/technic_chests/gold_chest.lua57
-rw-r--r--technic/technic_chests/init.lua18
-rw-r--r--technic/technic_chests/iron_chest.lua53
-rw-r--r--technic/technic_chests/locale/de.txt41
-rw-r--r--technic/technic_chests/locale/template.txt39
-rw-r--r--technic/technic_chests/locale/tr.txt41
-rw-r--r--technic/technic_chests/mithril_chest.lua48
-rw-r--r--technic/technic_chests/register.lua303
-rw-r--r--technic/technic_chests/silver_chest.lua48
-rw-r--r--technic/technic_chests/textures/technic_checkmark_icon.pngbin233 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_form_bg.pngbin6404 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_black.pngbin248 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_blue.pngbin257 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_brown.pngbin288 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_cyan.pngbin259 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_dark_green.pngbin269 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_dark_grey.pngbin292 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_green.pngbin278 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_grey.pngbin299 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_magenta.pngbin302 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_orange.pngbin302 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_pink.pngbin304 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_red.pngbin262 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_violet.pngbin287 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_white.pngbin253 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_chest_overlay_yellow.pngbin274 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton0.pngbin147 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton1.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton10.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton11.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton12.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton13.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton14.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton15.pngbin3562 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton2.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton3.pngbin140 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton4.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton5.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton6.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton7.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton8.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_colorbutton9.pngbin148 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_copper_chest_front.pngbin607 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_copper_chest_inventory.pngbin7661 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_copper_chest_lock_overlay.pngbin160 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_copper_chest_side.pngbin570 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_copper_chest_top.pngbin557 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_form_bg.pngbin6404 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_gold_chest_front.pngbin687 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_gold_chest_inventory.pngbin9893 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_gold_chest_lock_overlay.pngbin204 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_gold_chest_side.pngbin743 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_gold_chest_top.pngbin729 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_iron_chest_front.pngbin750 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_iron_chest_inventory.pngbin7037 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_iron_chest_lock_overlay.pngbin153 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_iron_chest_side.pngbin746 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_iron_chest_top.pngbin860 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_main_inventory.pngbin7646 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_mithril_chest_front.pngbin770 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_mithril_chest_inventory.pngbin9893 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_mithril_chest_lock_overlay.pngbin155 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_mithril_chest_side.pngbin756 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_mithril_chest_top.pngbin775 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_pencil_icon.pngbin294 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_silver_chest_front.pngbin851 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_silver_chest_inventory.pngbin9163 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_silver_chest_lock_overlay.pngbin192 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_silver_chest_side.pngbin810 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_silver_chest_top.pngbin798 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/technic_wooden_chest_inventory.pngbin5496 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_copper_chest_front.pngbin2614 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_copper_chest_side.pngbin2568 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_copper_chest_top.pngbin2521 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_gold_chest_front.pngbin2653 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_gold_chest_side.pngbin2617 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_gold_chest_top.pngbin2558 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_iron_chest_front.pngbin2515 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_iron_chest_side.pngbin2478 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_iron_chest_top.pngbin2432 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_mithril_chest_front.pngbin2656 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_mithril_chest_side.pngbin2616 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_mithril_chest_top.pngbin2558 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_silver_chest_front.pngbin2241 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_silver_chest_side.pngbin2146 -> 0 bytes
-rw-r--r--technic/technic_chests/textures/x32/technic_silver_chest_top.pngbin2226 -> 0 bytes
-rw-r--r--technic/technic_chests/wooden_chest.lua51
91 files changed, 0 insertions, 844 deletions
diff --git a/technic/technic_chests/README.md b/technic/technic_chests/README.md
deleted file mode 100644
index a570346..0000000
--- a/technic/technic_chests/README.md
+++ /dev/null
@@ -1,24 +0,0 @@
-Technic chests
-==============
-
-License
--------
-
-Copyright (C) 2012-2014 Maciej Kasatkin (RealBadAngel)
-
-Technic chests code is licensed under the GNU LGPLv2+.
-
-Texture licenses:
-
-VanessaE: (WTFPL)
- * technic\_pencil\_icon.png
- * technic\_checkmark\_icon.png
- * technic\_chest\_overlay\_*.png
- * technic\_*\_chest\_lock\_overlay.png
-
-sdzen (Elise Staudter) modified by VanessaE (CC BY-SA 3.0):
- * copper, iron, silver, gold, mithril chest textures 16x16
-
-RealBadAngel: (WTFPL)
- * Everything else.
-
diff --git a/technic/technic_chests/common.lua b/technic/technic_chests/common.lua
deleted file mode 100644
index 47054f5..0000000
--- a/technic/technic_chests/common.lua
+++ /dev/null
@@ -1,71 +0,0 @@
-
-technic.chests.groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
- tubedevice=1, tubedevice_receiver=1}
-technic.chests.groups_noinv = {snappy=2, choppy=2, oddly_breakable_by_hand=2,
- tubedevice=1, tubedevice_receiver=1, not_in_creative_inventory=1}
-
-technic.chests.tube = {
- insert_object = function(pos, node, stack, direction)
- local meta = minetest.get_meta(pos)
- local inv = meta:get_inventory()
- return inv:add_item("main",stack)
- end,
- can_insert = function(pos, node, stack, direction)
- local meta = minetest.get_meta(pos)
- local inv = meta:get_inventory()
- return inv:room_for_item("main",stack)
- end,
- input_inventory = "main",
- connect_sides = {left=1, right=1, front=1, back=1, top=1, bottom=1},
-}
-
-technic.chests.can_dig = function(pos, player)
- local meta = minetest.get_meta(pos)
- local inv = meta:get_inventory()
- return inv:is_empty("main")
-end
-
-local function inv_change(pos, count, player)
- local meta = minetest.get_meta(pos)
- if not has_locked_chest_privilege(meta, player) then
- minetest.log("action", player:get_player_name()..
- " tried to access a locked chest belonging to "..
- meta:get_string("owner").." at "..
- minetest.pos_to_string(pos))
- return 0
- end
- return count
-end
-
-function technic.chests.inv_move(pos, from_list, from_index, to_list, to_index, count, player)
- return inv_change(pos, count, player)
-end
-function technic.chests.inv_put(pos, listname, index, stack, player)
- return inv_change(pos, stack:get_count(), player)
-end
-function technic.chests.inv_take(pos, listname, index, stack, player)
- return inv_change(pos, stack:get_count(), player)
-end
-
-function technic.chests.on_inv_move(pos, from_list, from_index, to_list, to_index, count, player)
- minetest.log("action", player:get_player_name()..
- " moves stuff in chest at "
- ..minetest.pos_to_string(pos))
-end
-
-function technic.chests.on_inv_put(pos, listname, index, stack, player)
- minetest.log("action", player:get_player_name()..
- " puts stuff in to chest at "
- ..minetest.pos_to_string(pos))
-end
-
-function technic.chests.on_inv_take(pos, listname, index, stack, player)
- minetest.log("action", player:get_player_name()..
- " takes stuff from chest at "
- ..minetest.pos_to_string(pos))
-end
-
-function has_locked_chest_privilege(meta, player)
- return player:get_player_name() == meta:get_string("owner")
-end
-
diff --git a/technic/technic_chests/copper_chest.lua b/technic/technic_chests/copper_chest.lua
deleted file mode 100644
index d40284b..0000000
--- a/technic/technic_chests/copper_chest.lua
+++ /dev/null
@@ -1,46 +0,0 @@
-minetest.register_craft({
- output = 'technic:copper_chest 1',
- recipe = {
- {'default:copper_ingot','default:copper_ingot','default:copper_ingot'},
- {'default:copper_ingot','technic:iron_chest','default:copper_ingot'},
- {'default:copper_ingot','default:copper_ingot','default:copper_ingot'},
- }
-})
-
-minetest.register_craft({
- output = 'technic:copper_locked_chest 1',
- recipe = {
- {'default:copper_ingot','default:copper_ingot','default:copper_ingot'},
- {'default:copper_ingot','technic:iron_locked_chest','default:copper_ingot'},
- {'default:copper_ingot','default:copper_ingot','default:copper_ingot'},
- }
-})
-
-minetest.register_craft({
- output = 'technic:copper_locked_chest 1',
- recipe = {
- {'default:steel_ingot'},
- {'technic:copper_chest'},
- }
-})
-
-technic.chests:register("Copper", {
- width = 12,
- height = 5,
- sort = true,
- autosort = true,
- infotext = false,
- color = false,
- locked = false,
-})
-
-technic.chests:register("Copper", {
- width = 12,
- height = 5,
- sort = true,
- autosort = true,
- infotext = false,
- color = false,
- locked = true,
-})
-
diff --git a/technic/technic_chests/depends.txt b/technic/technic_chests/depends.txt
deleted file mode 100644
index b9ca665..0000000
--- a/technic/technic_chests/depends.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-default
-moreores?
-pipeworks?
-intllib?
diff --git a/technic/technic_chests/gold_chest.lua b/technic/technic_chests/gold_chest.lua
deleted file mode 100644
index c66b2f6..0000000
--- a/technic/technic_chests/gold_chest.lua
+++ /dev/null
@@ -1,57 +0,0 @@
-
-local material_list
-if minetest.get_modpath("moreores") then
- material_list = { 'silver' }
-else
- -- Make the gold chest obtainable for mere mortals (the silver chest is not obtainable)
- material_list = { 'copper', 'silver' }
-end
-
-for _, material in ipairs(material_list) do
- minetest.register_craft({
- output = 'technic:gold_chest',
- recipe = {
- {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
- {'default:gold_ingot',"technic:"..material.."_chest",'default:gold_ingot'},
- {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
- }
- })
-
- minetest.register_craft({
- output = 'technic:gold_locked_chest',
- recipe = {
- {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
- {'default:gold_ingot',"technic:"..material.."_locked_chest",'default:gold_ingot'},
- {'default:gold_ingot','default:gold_ingot','default:gold_ingot'},
- }
- })
-end
-
-minetest.register_craft({
- output = 'technic:gold_locked_chest',
- recipe = {
- {'default:steel_ingot'},
- {'technic:gold_chest'},
- }
-})
-
-technic.chests:register("Gold", {
- width = 15,
- height = 6,
- sort = true,
- autosort = true,
- infotext = true,
- color = true,
- locked = false,
-})
-
-technic.chests:register("Gold", {
- width = 15,
- height = 6,
- sort = true,
- autosort = true,
- infotext = true,
- color = true,
- locked = true,
-})
-
diff --git a/technic/technic_chests/init.lua b/technic/technic_chests/init.lua
deleted file mode 100644
index af9e041..0000000
--- a/technic/technic_chests/init.lua
+++ /dev/null
@@ -1,18 +0,0 @@
--- Minetest 0.4.6 mod: technic_chests
--- namespace: technic
--- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
-
-local modpath = minetest.get_modpath("technic_chests")
-
-technic = rawget(_G, "technic") or {}
-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")
-dofile(modpath.."/gold_chest.lua")
-dofile(modpath.."/mithril_chest.lua")
-
diff --git a/technic/technic_chests/iron_chest.lua b/technic/technic_chests/iron_chest.lua
deleted file mode 100644
index 90434bb..0000000
--- a/technic/technic_chests/iron_chest.lua
+++ /dev/null
@@ -1,53 +0,0 @@
-local cast_iron_ingot
-if minetest.get_modpath("technic_worldgen") then
- cast_iron_ingot = "technic:cast_iron_ingot"
-else
- cast_iron_ingot = "default:steel_ingot"
-end
-
-minetest.register_craft({
- output = 'technic:iron_chest 1',
- recipe = {
- {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
- {cast_iron_ingot,'default:chest',cast_iron_ingot},
- {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
- }
-})
-
-minetest.register_craft({
- output = 'technic:iron_locked_chest 1',
- recipe = {
- {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
- {cast_iron_ingot,'default:chest_locked',cast_iron_ingot},
- {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot},
- }
-})
-
-minetest.register_craft({
- output = 'technic:iron_locked_chest 1',
- recipe = {
- {'default:steel_ingot'},
- {'technic:iron_chest'},
- }
-})
-
-technic.chests:register("Iron", {
- width = 9,
- height = 5,
- sort = true,
- autosort = false,
- infotext = false,
- color = false,
- locked = false,
-})
-
-technic.chests:register("Iron", {
- width = 9,
- height = 5,
- sort = true,
- autosort = false,
- infotext = false,
- color = false,
- locked = true,
-})
-
diff --git a/technic/technic_chests/locale/de.txt b/technic/technic_chests/locale/de.txt
deleted file mode 100644
index e22d2c2..0000000
--- a/technic/technic_chests/locale/de.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-# German Translation for technic_chests
-# Deutsche Übersetzung von technic_chests
-# by Xanthin
-
-%s Chest = %struhe
-%s Locked Chest = Verschlossene %struhe
-%s Locked Chest (owned by %s) = Verschlossene %struhe (gehoert %s)
-Color Filter: %s = Farbfilter: %s
-Edit chest description: = Bearbeite die Beschreibung
-
-# Colors
-Black = Schwarz
-Blue = Blau
-Brown = Braun
-Cyan = Tuerkis
-Dark Green = Dunkelgruen
-Dark Grey = Dunkelgrau
-Green = Gruen
-Grey = Grau
-Magenta = Magenta
-Orange = Orange
-Pink = Rosa
-Red = Rot
-Violet = Violett
-White = Weiss
-Yellow = Gelb
-None = Farblos
-
-# Materials
-Copper = Kupfer
-Gold = Gold
-Iron = Eisen
-Mithril = Mithril
-Silver = Silber
-Wooden = Holz
-
-# Sorting
-Sort =
-Auto-sort is %s =
-Off =
-On =
diff --git a/technic/technic_chests/locale/template.txt b/technic/technic_chests/locale/template.txt
deleted file mode 100644
index 4d422b2..0000000
--- a/technic/technic_chests/locale/template.txt
+++ /dev/null
@@ -1,39 +0,0 @@
-# technic_chests translation template
-
-%s Chest =
-%s Locked Chest =
-%s Locked Chest (owned by %s) =
-Color Filter: %s =
-Edit chest description: =
-
-# Colors
-Black =
-Blue =
-Brown =
-Cyan =
-Dark Green =
-Dark Grey =
-Green =
-Grey =
-Magenta =
-Orange =
-Pink =
-Red =
-Violet =
-White =
-Yellow =
-None =
-
-# Materials
-Copper =
-Gold =
-Iron =
-Mithril =
-Silver =
-Wooden =
-
-# Sorting
-Sort =
-Auto-sort is %s =
-Off =
-On =
diff --git a/technic/technic_chests/locale/tr.txt b/technic/technic_chests/locale/tr.txt
deleted file mode 100644
index 6bef5be..0000000
--- a/technic/technic_chests/locale/tr.txt
+++ /dev/null
@@ -1,41 +0,0 @@
-# Turkish translation
-# mahmutelmas06@hotmail.com
-# Türkçe çeviri
-
-%s Chest = %s Sandık
-%s Locked Chest = %s Kilitli sandık
-%s Locked Chest (owned by %s) = %s Kilitli sandık (Sahibi %s)
-Color Filter: %s = Renk süzgeci: %s
-Edit chest description: = Sandık bilgilerini düzenle
-
-# Colors - Renkler
-Black = Siyah
-Blue = Mavi
-Brown = Kahverengi
-Cyan = Cam göbeği
-Dark Green = Koyu yeşil
-Dark Grey = Koyu gri
-Green = Yeşil
-Grey = Gri
-Magenta = Mor
-Orange = Turuncu
-Pink = Pembe
-Red = Kırmızı
-Violet = Koyu mor
-White = Beyaz
-Yellow = Sarı
-None = Hiç
-
-# Materials - Metaryeller
-Copper = Bakır
-Gold = Altın
-Iron = Demir
-Mithril = Mithril
-Silver = Gümüş
-Wooden = Ahşap
-
-# Sorting - Sıralama
-Sort = Sırala
-Auto-sort is %s = Otomatik sıralama %s
-Off = Kapalı
-On = Açık
diff --git a/technic/technic_chests/mithril_chest.lua b/technic/technic_chests/mithril_chest.lua
deleted file mode 100644
index 909ff9e..0000000
--- a/technic/technic_chests/mithril_chest.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-if minetest.get_modpath("moreores") then
- minetest.register_craft({
- output = 'technic:mithril_chest 1',
- recipe = {
- {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
- {'moreores:mithril_ingot','technic:gold_chest','moreores:mithril_ingot'},
- {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
- }
- })
-
- minetest.register_craft({
- output = 'technic:mithril_locked_chest 1',
- recipe = {
- {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
- {'moreores:mithril_ingot','technic:gold_locked_chest','moreores:mithril_ingot'},
- {'moreores:mithril_ingot','moreores:mithril_ingot','moreores:mithril_ingot'},
- }
- })
-end
-
-minetest.register_craft({
- output = 'technic:mithril_locked_chest 1',
- recipe = {
- {'default:steel_ingot'},
- {'technic:mithril_chest'},
- }
-})
-
-technic.chests:register("Mithril", {
- width = 15,
- height = 6,
- sort = true,
- autosort = true,
- infotext = false,
- color = false,
- locked = false,
-})
-
-technic.chests:register("Mithril", {
- width = 15,
- height = 6,
- sort = true,
- autosort = true,
- infotext = false,
- color = false,
- locked = true,
-})
-
diff --git a/technic/technic_chests/register.lua b/technic/technic_chests/register.lua
deleted file mode 100644
index 25e4cde..0000000
--- a/technic/technic_chests/register.lua
+++ /dev/null
@@ -1,303 +0,0 @@
-local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
-
-local pipeworks = rawget(_G, "pipeworks")
-if not minetest.get_modpath("pipeworks") then
- -- Pipeworks is not installed. Simulate using a dummy table...
- pipeworks = {}
- local pipeworks_meta = {}
- setmetatable(pipeworks, pipeworks_meta)
- local dummy = function()
- end
- pipeworks_meta.__index = function(table, key)
- print("[technic_chests] WARNING: variable or method '"..key.."' not present in dummy pipeworks table - assuming it is a method...")
- pipeworks[key] = dummy
- return dummy
- end
- pipeworks.after_place = dummy
- pipeworks.after_dig = dummy
-end
-
-local chest_mark_colors = {
- {"black", S("Black")},
- {"blue", S("Blue")},
- {"brown", S("Brown")},
- {"cyan", S("Cyan")},
- {"dark_green", S("Dark Green")},
- {"dark_grey", S("Dark Grey")},
- {"green", S("Green")},
- {"grey", S("Grey")},
- {"magenta", S("Magenta")},
- {"orange", S("Orange")},
- {"pink", S("Pink")},
- {"red", S("Red")},
- {"violet", S("Violet")},
- {"white", S("White")},
- {"yellow", S("Yellow")},
-}
-
-
-local function colorid_to_postfix(id)
- return chest_mark_colors[id] and "_"..chest_mark_colors[id][1] or ""
-end
-
-
-local function get_color_buttons(coleft, lotop)
- local buttons_string = ""
- for y = 0, 3 do
- for x = 0, 3 do
- local file_name = "technic_colorbutton"..(y * 4 + x)..".png"
- buttons_string = buttons_string.."image_button["
- ..(coleft + 0.1 + x * 0.7)..","..(lotop + 0.1 + y * 0.7)
- ..";0.8,0.8;"..file_name..";color_button"
- ..(y * 4 + x + 1)..";]"
- end
- end
- return buttons_string
-end
-
-
-local function check_color_buttons(pos, meta, chest_name, fields)
- for i = 1, 16 do
- if fields["color_button"..i] then
- local node = minetest.get_node(pos)
- node.name = chest_name..colorid_to_postfix(i)
- minetest.swap_node(pos, node)
- meta:set_string("color", i)
- return
- end
- end
-end
-
-local function set_formspec(pos, data, page)
- local meta = minetest.get_meta(pos)
- local node = minetest.get_node(pos)
- local formspec = data.base_formspec
- if data.autosort then
- local status = meta:get_int("autosort")
- formspec = formspec.."button["..(data.hileft+2)..","..(data.height+1.1)..";3,0.8;autosort_to_"..(1-status)..";"..S("Auto-sort is %s"):format(status == 1 and S("On") or S("Off")).."]"
- end
- if data.infotext then
- local formspec_infotext = minetest.formspec_escape(meta:get_string("infotext"))
- if page == "main" then
- formspec = formspec.."image_button["..(data.hileft+2.1)..",0.1;0.8,0.8;"
- .."technic_pencil_icon.png;edit_infotext;]"
- .."label["..(data.hileft+3)..",0;"..formspec_infotext.."]"
- elseif page == "edit_infotext" then
- formspec = formspec.."image_button["..(data.hileft+2.1)..",0.1;0.8,0.8;"
- .."technic_checkmark_icon.png;save_infotext;]"
- .."field["..(data.hileft+3.3)..",0.2;4.8,1;"
- .."infotext_box;"..S("Edit chest description:")..";"
- ..formspec_infotext.."]"
- end
- end
- if data.color then
- local colorID = meta:get_int("color")
- local colorName
- if chest_mark_colors[colorID] then
- colorName = chest_mark_colors[colorID][2]
- else
- colorName = S("None")
- end
- formspec = formspec.."label["..(data.coleft+0.2)..","..(data.lotop+3)..";"..S("Color Filter: %s"):format(colorName).."]"
- end
- meta:set_string("formspec", formspec)
-end
-
-local function sort_inventory(inv)
- local inlist = inv:get_list("main")
- local typecnt = {}
- local typekeys = {}
- for _, st in ipairs(inlist) do
- if not st:is_empty() then
- local n = st:get_name()
- local w = st:get_wear()
- local m = st:get_metadata()
- local k = string.format("%s %05d %s", n, w, m)
- if not typecnt[k] then
- typecnt[k] = {
- name = n,
- wear = w,
- metadata = m,
- stack_max = st:get_stack_max(),
- count = 0,
- }
- table.insert(typekeys, k)
- end
- typecnt[k].count = typecnt[k].count + st:get_count()
- end
- end
- table.sort(typekeys)
- local outlist = {}
- for _, k in ipairs(typekeys) do
- local tc = typecnt[k]
- while tc.count > 0 do
- local c = math.min(tc.count, tc.stack_max)
- table.insert(outlist, ItemStack({
- name = tc.name,
- wear = tc.wear,
- metadata = tc.metadata,
- count = c,
- }))
- tc.count = tc.count - c
- end
- end
- if #outlist > #inlist then return end
- while #outlist < #inlist do
- table.insert(outlist, ItemStack(nil))
- end
- inv:set_list("main", outlist)
-end
-
-local function get_receive_fields(name, data)
- local lname = name:lower()
- return function(pos, formname, fields, sender)
- local meta = minetest.get_meta(pos)
- local page = "main"
- if fields.sort or (data.autosort and fields.quit and meta:get_int("autosort") == 1) then
- sort_inventory(meta:get_inventory())
- end
- if fields.edit_infotext then
- page = "edit_infotext"
- end
- if fields.autosort_to_1 then meta:set_int("autosort", 1) end
- if fields.autosort_to_0 then meta:set_int("autosort", 0) end
- if fields.infotext_box then
- meta:set_string("infotext", fields.infotext_box)
- end
- if data.color then
- -- This sets the node
- local nn = "technic:"..lname..(data.locked and "_locked" or "").."_chest"
- check_color_buttons(pos, meta, nn, fields)
- end
- meta:get_inventory():set_size("main", data.width * data.height)
- set_formspec(pos, data, page)
- end
-end
-
-
-function technic.chests:definition(name, data)
- local lname = name:lower()
- name = S(name)
- local d = {}
- for k, v in pairs(data) do d[k] = v end
- data = d
-
- data.lowidth = 8
- data.ovwidth = math.max(data.lowidth, data.width)
- data.hileft = (data.ovwidth - data.width) / 2
- data.loleft = (data.ovwidth - data.lowidth) / 2
- if data.color then
- if data.lowidth + 3 <= data.ovwidth then
- data.coleft = data.ovwidth - 3
- if data.loleft + data.lowidth > data.coleft then
- data.loleft = data.coleft - data.lowidth
- end
- else
- data.loleft = 0
- data.coleft = data.lowidth
- data.ovwidth = data.lowidth + 3
- end
- end
- data.lotop = data.height + 2
- data.ovheight = data.lotop + 4
-
- local locked_after_place = nil
- local front = {"technic_"..lname.."_chest_front.png"}
- data.base_formspec = "size["..data.ovwidth..","..data.ovheight.."]"..
- "label[0,0;"..S("%s Chest"):format(name).."]"..
- "list[context;main;"..data.hileft..",1;"..data.width..","..data.height..";]"..
- "list[current_player;main;"..data.loleft..","..data.lotop..";8,4;]"..
- "background[-0.19,-0.25;"..(data.ovwidth+0.4)..","..(data.ovheight+0.75)..";technic_chest_form_bg.png]"..
- "background["..data.hileft..",1;"..data.width..","..data.height..";technic_"..lname.."_chest_inventory.png]"..
- "background["..data.loleft..","..data.lotop..";8,4;technic_main_inventory.png]"..
- "listring[]"
- if data.sort then
- data.base_formspec = data.base_formspec.."button["..data.hileft..","..(data.height+1.1)..";1,0.8;sort;"..S("Sort").."]"
- end
- if data.color then
- data.base_formspec = data.base_formspec..get_color_buttons(data.coleft, data.lotop)
- end
-
- if data.locked then
- locked_after_place = function(pos, placer)
- local meta = minetest.get_meta(pos)
- meta:set_string("owner", placer:get_player_name() or "")
- meta:set_string("infotext",
- S("%s Locked Chest (owned by %s)")
- :format(name, meta:get_string("owner")))
- pipeworks.after_place(pos)
- end
- table.insert(front, "technic_"..lname.."_chest_lock_overlay.png")
- else
- locked_after_place = pipeworks.after_place
- end
-
- local desc
- if data.locked then
- desc = S("%s Locked Chest"):format(name)
- else
- desc = S("%s Chest"):format(name)
- end
-
- local def = {
- description = desc,
- tiles = {"technic_"..lname.."_chest_top.png", "technic_"..lname.."_chest_top.png",
- "technic_"..lname.."_chest_side.png", "technic_"..lname.."_chest_side.png",
- "technic_"..lname.."_chest_side.png", table.concat(front, "^")},
- paramtype2 = "facedir",
- groups = self.groups,
- tube = self.tube,
- legacy_facedir_simple = true,
- sounds = default.node_sound_wood_defaults(),
- after_place_node = locked_after_place,
- after_dig_node = pipeworks.after_dig,
-
- on_construct = function(pos)
- local meta = minetest.get_meta(pos)
- meta:set_string("infotext", S("%s Chest"):format(name))
- set_formspec(pos, data, "main")
- local inv = meta:get_inventory()
- inv:set_size("main", data.width * data.height)
- end,
- can_dig = self.can_dig,
- on_receive_fields = get_receive_fields(name, data),
- on_metadata_inventory_move = self.on_inv_move,
- on_metadata_inventory_put = self.on_inv_put,
- on_metadata_inventory_take = self.on_inv_take,
- }
- if data.locked then
- def.allow_metadata_inventory_move = self.inv_move
- def.allow_metadata_inventory_put = self.inv_put
- def.allow_metadata_inventory_take = self.inv_take
- end
- return def
-end
-
-function technic.chests:register(name, data)
- local def = technic.chests:definition(name, data)
-
- local nn = "technic:"..name:lower()..(data.locked and "_locked" or "").."_chest"
- minetest.register_node(":"..nn, def)
-
- if data.color then
- local mk_front
- if string.find(def.tiles[6], "%^") then
- mk_front = function (overlay) return def.tiles[6]:gsub("%^", "^"..overlay.."^") end
- else
- mk_front = function (overlay) return def.tiles[6].."^"..overlay end
- end
- for i = 1, 15 do
- local postfix = colorid_to_postfix(i)
- local colordef = {}
- for k, v in pairs(def) do
- colordef[k] = v
- end
- colordef.drop = nn
- colordef.groups = self.groups_noinv
- colordef.tiles = { def.tiles[1], def.tiles[2], def.tiles[3], def.tiles[4], def.tiles[5], mk_front("technic_chest_overlay"..postfix..".png") }
- minetest.register_node(":"..nn..postfix, colordef)
- end
- end
-
-end
-
diff --git a/technic/technic_chests/silver_chest.lua b/technic/technic_chests/silver_chest.lua
deleted file mode 100644
index c615304..0000000
--- a/technic/technic_chests/silver_chest.lua
+++ /dev/null
@@ -1,48 +0,0 @@
-if minetest.get_modpath("moreores") then
- minetest.register_craft({
- output = 'technic:silver_chest',
- recipe = {
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- {'moreores:silver_ingot','technic:copper_chest','moreores:silver_ingot'},
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- }
- })
-
- minetest.register_craft({
- output = 'technic:silver_locked_chest',
- recipe = {
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- {'moreores:silver_ingot','technic:copper_locked_chest','moreores:silver_ingot'},
- {'moreores:silver_ingot','moreores:silver_ingot','moreores:silver_ingot'},
- }
- })
-end
-
-minetest.register_craft({
- output = 'technic:silver_locked_chest',
- recipe = {
- {'default:steel_ingot'},
- {'technic:silver_chest'},
- }
-})
-
-technic.chests:register("Silver", {
- width = 12,
- height = 6,
- sort = true,
- autosort = true,
- infotext = true,
- color = false,
- locked = false,
-})
-
-technic.chests:register("Silver", {
- width = 12,
- height = 6,
- sort = true,
- autosort = true,
- infotext = true,
- color = false,
- locked = true,
-})
-
diff --git a/technic/technic_chests/textures/technic_checkmark_icon.png b/technic/technic_chests/textures/technic_checkmark_icon.png
deleted file mode 100644
index 369d294..0000000
--- a/technic/technic_chests/textures/technic_checkmark_icon.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_form_bg.png b/technic/technic_chests/textures/technic_chest_form_bg.png
deleted file mode 100644
index 37683f0..0000000
--- a/technic/technic_chests/textures/technic_chest_form_bg.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_black.png b/technic/technic_chests/textures/technic_chest_overlay_black.png
deleted file mode 100644
index fa25304..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_black.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_blue.png b/technic/technic_chests/textures/technic_chest_overlay_blue.png
deleted file mode 100644
index 512cd4f..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_blue.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_brown.png b/technic/technic_chests/textures/technic_chest_overlay_brown.png
deleted file mode 100644
index 64c1d55..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_brown.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_cyan.png b/technic/technic_chests/textures/technic_chest_overlay_cyan.png
deleted file mode 100644
index 46732f4..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_cyan.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_dark_green.png b/technic/technic_chests/textures/technic_chest_overlay_dark_green.png
deleted file mode 100644
index 941236b..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_dark_green.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_dark_grey.png b/technic/technic_chests/textures/technic_chest_overlay_dark_grey.png
deleted file mode 100644
index e6b8f77..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_dark_grey.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_green.png b/technic/technic_chests/textures/technic_chest_overlay_green.png
deleted file mode 100644
index 4b9543f..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_green.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_grey.png b/technic/technic_chests/textures/technic_chest_overlay_grey.png
deleted file mode 100644
index 8a1c9f0..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_grey.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_magenta.png b/technic/technic_chests/textures/technic_chest_overlay_magenta.png
deleted file mode 100644
index 75b220d..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_magenta.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_orange.png b/technic/technic_chests/textures/technic_chest_overlay_orange.png
deleted file mode 100644
index 02c095d..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_orange.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_pink.png b/technic/technic_chests/textures/technic_chest_overlay_pink.png
deleted file mode 100644
index 0b6ccb4..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_pink.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_red.png b/technic/technic_chests/textures/technic_chest_overlay_red.png
deleted file mode 100644
index 4b44642..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_red.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_violet.png b/technic/technic_chests/textures/technic_chest_overlay_violet.png
deleted file mode 100644
index 89471f9..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_violet.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_white.png b/technic/technic_chests/textures/technic_chest_overlay_white.png
deleted file mode 100644
index b49e253..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_white.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_chest_overlay_yellow.png b/technic/technic_chests/textures/technic_chest_overlay_yellow.png
deleted file mode 100644
index d563257..0000000
--- a/technic/technic_chests/textures/technic_chest_overlay_yellow.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton0.png b/technic/technic_chests/textures/technic_colorbutton0.png
deleted file mode 100644
index 35b7db2..0000000
--- a/technic/technic_chests/textures/technic_colorbutton0.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton1.png b/technic/technic_chests/textures/technic_colorbutton1.png
deleted file mode 100644
index cbf095d..0000000
--- a/technic/technic_chests/textures/technic_colorbutton1.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton10.png b/technic/technic_chests/textures/technic_colorbutton10.png
deleted file mode 100644
index 8dfc5f0..0000000
--- a/technic/technic_chests/textures/technic_colorbutton10.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton11.png b/technic/technic_chests/textures/technic_colorbutton11.png
deleted file mode 100644
index 3b279e0..0000000
--- a/technic/technic_chests/textures/technic_colorbutton11.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton12.png b/technic/technic_chests/textures/technic_colorbutton12.png
deleted file mode 100644
index a387b5f..0000000
--- a/technic/technic_chests/textures/technic_colorbutton12.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton13.png b/technic/technic_chests/textures/technic_colorbutton13.png
deleted file mode 100644
index b1e7790..0000000
--- a/technic/technic_chests/textures/technic_colorbutton13.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton14.png b/technic/technic_chests/textures/technic_colorbutton14.png
deleted file mode 100644
index c4ad486..0000000
--- a/technic/technic_chests/textures/technic_colorbutton14.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton15.png b/technic/technic_chests/textures/technic_colorbutton15.png
deleted file mode 100644
index b7060d6..0000000
--- a/technic/technic_chests/textures/technic_colorbutton15.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton2.png b/technic/technic_chests/textures/technic_colorbutton2.png
deleted file mode 100644
index caf1fc6..0000000
--- a/technic/technic_chests/textures/technic_colorbutton2.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton3.png b/technic/technic_chests/textures/technic_colorbutton3.png
deleted file mode 100644
index 6ac79a3..0000000
--- a/technic/technic_chests/textures/technic_colorbutton3.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton4.png b/technic/technic_chests/textures/technic_colorbutton4.png
deleted file mode 100644
index dc43592..0000000
--- a/technic/technic_chests/textures/technic_colorbutton4.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton5.png b/technic/technic_chests/textures/technic_colorbutton5.png
deleted file mode 100644
index 98b8c67..0000000
--- a/technic/technic_chests/textures/technic_colorbutton5.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton6.png b/technic/technic_chests/textures/technic_colorbutton6.png
deleted file mode 100644
index 66478bc..0000000
--- a/technic/technic_chests/textures/technic_colorbutton6.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton7.png b/technic/technic_chests/textures/technic_colorbutton7.png
deleted file mode 100644
index 85f6b93..0000000
--- a/technic/technic_chests/textures/technic_colorbutton7.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton8.png b/technic/technic_chests/textures/technic_colorbutton8.png
deleted file mode 100644
index 868c35d..0000000
--- a/technic/technic_chests/textures/technic_colorbutton8.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_colorbutton9.png b/technic/technic_chests/textures/technic_colorbutton9.png
deleted file mode 100644
index 50eac0b..0000000
--- a/technic/technic_chests/textures/technic_colorbutton9.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_copper_chest_front.png b/technic/technic_chests/textures/technic_copper_chest_front.png
deleted file mode 100644
index add51e8..0000000
--- a/technic/technic_chests/textures/technic_copper_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_copper_chest_inventory.png b/technic/technic_chests/textures/technic_copper_chest_inventory.png
deleted file mode 100644
index 70da510..0000000
--- a/technic/technic_chests/textures/technic_copper_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_copper_chest_lock_overlay.png b/technic/technic_chests/textures/technic_copper_chest_lock_overlay.png
deleted file mode 100644
index 49f7f2a..0000000
--- a/technic/technic_chests/textures/technic_copper_chest_lock_overlay.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_copper_chest_side.png b/technic/technic_chests/textures/technic_copper_chest_side.png
deleted file mode 100644
index 2231cce..0000000
--- a/technic/technic_chests/textures/technic_copper_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_copper_chest_top.png b/technic/technic_chests/textures/technic_copper_chest_top.png
deleted file mode 100644
index 69f1078..0000000
--- a/technic/technic_chests/textures/technic_copper_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_form_bg.png b/technic/technic_chests/textures/technic_form_bg.png
deleted file mode 100644
index 37683f0..0000000
--- a/technic/technic_chests/textures/technic_form_bg.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_gold_chest_front.png b/technic/technic_chests/textures/technic_gold_chest_front.png
deleted file mode 100644
index 27036d7..0000000
--- a/technic/technic_chests/textures/technic_gold_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_gold_chest_inventory.png b/technic/technic_chests/textures/technic_gold_chest_inventory.png
deleted file mode 100644
index d4aa8b3..0000000
--- a/technic/technic_chests/textures/technic_gold_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_gold_chest_lock_overlay.png b/technic/technic_chests/textures/technic_gold_chest_lock_overlay.png
deleted file mode 100644
index 51dea71..0000000
--- a/technic/technic_chests/textures/technic_gold_chest_lock_overlay.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_gold_chest_side.png b/technic/technic_chests/textures/technic_gold_chest_side.png
deleted file mode 100644
index 9a0de39..0000000
--- a/technic/technic_chests/textures/technic_gold_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_gold_chest_top.png b/technic/technic_chests/textures/technic_gold_chest_top.png
deleted file mode 100644
index abfc081..0000000
--- a/technic/technic_chests/textures/technic_gold_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_iron_chest_front.png b/technic/technic_chests/textures/technic_iron_chest_front.png
deleted file mode 100644
index 8c00473..0000000
--- a/technic/technic_chests/textures/technic_iron_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_iron_chest_inventory.png b/technic/technic_chests/textures/technic_iron_chest_inventory.png
deleted file mode 100644
index a33967b..0000000
--- a/technic/technic_chests/textures/technic_iron_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_iron_chest_lock_overlay.png b/technic/technic_chests/textures/technic_iron_chest_lock_overlay.png
deleted file mode 100644
index 1750b82..0000000
--- a/technic/technic_chests/textures/technic_iron_chest_lock_overlay.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_iron_chest_side.png b/technic/technic_chests/textures/technic_iron_chest_side.png
deleted file mode 100644
index 7233688..0000000
--- a/technic/technic_chests/textures/technic_iron_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_iron_chest_top.png b/technic/technic_chests/textures/technic_iron_chest_top.png
deleted file mode 100644
index 48d2437..0000000
--- a/technic/technic_chests/textures/technic_iron_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_main_inventory.png b/technic/technic_chests/textures/technic_main_inventory.png
deleted file mode 100644
index b65dabb..0000000
--- a/technic/technic_chests/textures/technic_main_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_mithril_chest_front.png b/technic/technic_chests/textures/technic_mithril_chest_front.png
deleted file mode 100644
index f0e0c23..0000000
--- a/technic/technic_chests/textures/technic_mithril_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_mithril_chest_inventory.png b/technic/technic_chests/textures/technic_mithril_chest_inventory.png
deleted file mode 100644
index d4aa8b3..0000000
--- a/technic/technic_chests/textures/technic_mithril_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_mithril_chest_lock_overlay.png b/technic/technic_chests/textures/technic_mithril_chest_lock_overlay.png
deleted file mode 100644
index d227c51..0000000
--- a/technic/technic_chests/textures/technic_mithril_chest_lock_overlay.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_mithril_chest_side.png b/technic/technic_chests/textures/technic_mithril_chest_side.png
deleted file mode 100644
index 1c2c3a7..0000000
--- a/technic/technic_chests/textures/technic_mithril_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_mithril_chest_top.png b/technic/technic_chests/textures/technic_mithril_chest_top.png
deleted file mode 100644
index e196baf..0000000
--- a/technic/technic_chests/textures/technic_mithril_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_pencil_icon.png b/technic/technic_chests/textures/technic_pencil_icon.png
deleted file mode 100644
index 8079ede..0000000
--- a/technic/technic_chests/textures/technic_pencil_icon.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_silver_chest_front.png b/technic/technic_chests/textures/technic_silver_chest_front.png
deleted file mode 100644
index 5ae5831..0000000
--- a/technic/technic_chests/textures/technic_silver_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_silver_chest_inventory.png b/technic/technic_chests/textures/technic_silver_chest_inventory.png
deleted file mode 100644
index b2fe835..0000000
--- a/technic/technic_chests/textures/technic_silver_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_silver_chest_lock_overlay.png b/technic/technic_chests/textures/technic_silver_chest_lock_overlay.png
deleted file mode 100644
index cb1bdb0..0000000
--- a/technic/technic_chests/textures/technic_silver_chest_lock_overlay.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_silver_chest_side.png b/technic/technic_chests/textures/technic_silver_chest_side.png
deleted file mode 100644
index 4b4ce54..0000000
--- a/technic/technic_chests/textures/technic_silver_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_silver_chest_top.png b/technic/technic_chests/textures/technic_silver_chest_top.png
deleted file mode 100644
index 79196d6..0000000
--- a/technic/technic_chests/textures/technic_silver_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/technic_wooden_chest_inventory.png b/technic/technic_chests/textures/technic_wooden_chest_inventory.png
deleted file mode 100644
index 5ffbc12..0000000
--- a/technic/technic_chests/textures/technic_wooden_chest_inventory.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_copper_chest_front.png b/technic/technic_chests/textures/x32/technic_copper_chest_front.png
deleted file mode 100644
index 1769435..0000000
--- a/technic/technic_chests/textures/x32/technic_copper_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_copper_chest_side.png b/technic/technic_chests/textures/x32/technic_copper_chest_side.png
deleted file mode 100644
index 2c7943f..0000000
--- a/technic/technic_chests/textures/x32/technic_copper_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_copper_chest_top.png b/technic/technic_chests/textures/x32/technic_copper_chest_top.png
deleted file mode 100644
index 2ab8104..0000000
--- a/technic/technic_chests/textures/x32/technic_copper_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_gold_chest_front.png b/technic/technic_chests/textures/x32/technic_gold_chest_front.png
deleted file mode 100644
index 9bc9615..0000000
--- a/technic/technic_chests/textures/x32/technic_gold_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_gold_chest_side.png b/technic/technic_chests/textures/x32/technic_gold_chest_side.png
deleted file mode 100644
index 5d5ad0f..0000000
--- a/technic/technic_chests/textures/x32/technic_gold_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_gold_chest_top.png b/technic/technic_chests/textures/x32/technic_gold_chest_top.png
deleted file mode 100644
index f9c8fec..0000000
--- a/technic/technic_chests/textures/x32/technic_gold_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_iron_chest_front.png b/technic/technic_chests/textures/x32/technic_iron_chest_front.png
deleted file mode 100644
index 79d5b49..0000000
--- a/technic/technic_chests/textures/x32/technic_iron_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_iron_chest_side.png b/technic/technic_chests/textures/x32/technic_iron_chest_side.png
deleted file mode 100644
index e12daa5..0000000
--- a/technic/technic_chests/textures/x32/technic_iron_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_iron_chest_top.png b/technic/technic_chests/textures/x32/technic_iron_chest_top.png
deleted file mode 100644
index da1ab7b..0000000
--- a/technic/technic_chests/textures/x32/technic_iron_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_mithril_chest_front.png b/technic/technic_chests/textures/x32/technic_mithril_chest_front.png
deleted file mode 100644
index 9f7ca7e..0000000
--- a/technic/technic_chests/textures/x32/technic_mithril_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_mithril_chest_side.png b/technic/technic_chests/textures/x32/technic_mithril_chest_side.png
deleted file mode 100644
index 0763511..0000000
--- a/technic/technic_chests/textures/x32/technic_mithril_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_mithril_chest_top.png b/technic/technic_chests/textures/x32/technic_mithril_chest_top.png
deleted file mode 100644
index 2429576..0000000
--- a/technic/technic_chests/textures/x32/technic_mithril_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_silver_chest_front.png b/technic/technic_chests/textures/x32/technic_silver_chest_front.png
deleted file mode 100644
index fe5ce2c..0000000
--- a/technic/technic_chests/textures/x32/technic_silver_chest_front.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_silver_chest_side.png b/technic/technic_chests/textures/x32/technic_silver_chest_side.png
deleted file mode 100644
index 3a2ed4a..0000000
--- a/technic/technic_chests/textures/x32/technic_silver_chest_side.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/textures/x32/technic_silver_chest_top.png b/technic/technic_chests/textures/x32/technic_silver_chest_top.png
deleted file mode 100644
index 353a11c..0000000
--- a/technic/technic_chests/textures/x32/technic_silver_chest_top.png
+++ /dev/null
Binary files differ
diff --git a/technic/technic_chests/wooden_chest.lua b/technic/technic_chests/wooden_chest.lua
deleted file mode 100644
index 0fad12c..0000000
--- a/technic/technic_chests/wooden_chest.lua
+++ /dev/null
@@ -1,51 +0,0 @@
-local udef = technic.chests:definition("Wooden", {
- width = 8,
- height = 4,
- sort = false,
- autosort = false,
- infotext = false,
- color = false,
- locked = false,
-})
-local uudef = {
- groups = udef.groups,
- tube = udef.tube,
- on_construct = udef.on_construct,
- can_dig = udef.can_dig,
- on_receive_fields = udef.on_receive_fields,
- on_metadata_inventory_move = udef.on_metadata_inventory_move,
- on_metadata_inventory_put = udef.on_metadata_inventory_put,
- on_metadata_inventory_take = udef.on_metadata_inventory_take,
-}
-if minetest.registered_nodes["default:chest"].description == "Chest" then
- uudef.description = udef.description
-end
-minetest.override_item("default:chest", uudef)
-
-local ldef = technic.chests:definition("Wooden", {
- width = 8,
- height = 4,
- sort = false,
- autosort = false,
- infotext = false,
- color = false,
- locked = true,
-})
-local lldef = {
- groups = ldef.groups,
- tube = ldef.tube,
- after_place_node = ldef.after_place_node,
- on_construct = ldef.on_construct,
- can_dig = ldef.can_dig,
- on_receive_fields = ldef.on_receive_fields,
- allow_metadata_inventory_move = ldef.allow_metadata_inventory_move,
- allow_metadata_inventory_put = ldef.allow_metadata_inventory_put,
- allow_metadata_inventory_take = ldef.allow_metadata_inventory_take,
- on_metadata_inventory_move = ldef.on_metadata_inventory_move,
- on_metadata_inventory_put = ldef.on_metadata_inventory_put,
- on_metadata_inventory_take = ldef.on_metadata_inventory_take,
-}
-if minetest.registered_nodes["default:chest_locked"].description == "Locked Chest" then
- lldef.description = ldef.description
-end
-minetest.override_item("default:chest_locked", lldef)