RealBadAngel
2013-04-05 fd3f25b5e06e4429c006b8c656c7c08a5258d460
split chests off into a separate modpack component
3 files added
5 files renamed
2 files modified
104 files deleted
335 ■■■■ changed files
technic/config.lua 1 ●●●● patch | view | raw | blame | history
technic/init.lua 8 ●●●●● patch | view | raw | blame | history
technic/mithril_subspace_chest.lua 145 ●●●●● patch | view | raw | blame | history
technic/textures/technic_copper_chest_front.png patch | view | raw | blame | history
technic/textures/technic_copper_chest_locked.png patch | view | raw | blame | history
technic/textures/technic_copper_chest_side.png patch | view | raw | blame | history
technic/textures/technic_copper_chest_top.png patch | view | raw | blame | history
technic/textures/technic_diamond.png patch | view | raw | blame | history
technic/textures/technic_diamond_block.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_black.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_blue.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_brown.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_cyan.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_dark_green.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_dark_grey.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_green.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_grey.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_magenta.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_orange.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_pink.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_red.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_violet.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_white.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_front_yellow.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_black.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_blue.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_brown.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_cyan.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_dark_green.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_dark_grey.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_green.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_grey.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_magenta.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_orange.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_pink.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_red.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_violet.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_white.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_locked_yellow.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_side.png patch | view | raw | blame | history
technic/textures/technic_gold_chest_top.png patch | view | raw | blame | history
technic/textures/technic_iron_chest_front.png patch | view | raw | blame | history
technic/textures/technic_iron_chest_locked.png patch | view | raw | blame | history
technic/textures/technic_iron_chest_side.png patch | view | raw | blame | history
technic/textures/technic_iron_chest_top.png patch | view | raw | blame | history
technic/textures/technic_mithril_chest_front.png patch | view | raw | blame | history
technic/textures/technic_mithril_chest_locked.png patch | view | raw | blame | history
technic/textures/technic_mithril_chest_side.png patch | view | raw | blame | history
technic/textures/technic_mithril_chest_top.png patch | view | raw | blame | history
technic/textures/technic_mithril_dust.png patch | view | raw | blame | history
technic/textures/technic_silver_chest_front.png patch | view | raw | blame | history
technic/textures/technic_silver_chest_locked.png patch | view | raw | blame | history
technic/textures/technic_silver_chest_side.png patch | view | raw | blame | history
technic/textures/technic_silver_chest_top.png patch | view | raw | blame | history
technic/textures/technicx32/technic_copper_chest_front.png patch | view | raw | blame | history
technic/textures/technicx32/technic_copper_chest_locked.png patch | view | raw | blame | history
technic/textures/technicx32/technic_copper_chest_side.png patch | view | raw | blame | history
technic/textures/technicx32/technic_copper_chest_top.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_black.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_blue.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_brown.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_cyan.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_dark_green.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_dark_grey.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_green.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_grey.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_magenta.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_orange.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_pink.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_red.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_violet.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_white.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_front_yellow.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_black.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_blue.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_brown.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_cyan.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_dark_green.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_dark_grey.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_green.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_grey.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_magenta.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_orange.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_pink.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_red.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_violet.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_white.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_locked_yellow.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_side.png patch | view | raw | blame | history
technic/textures/technicx32/technic_gold_chest_top.png patch | view | raw | blame | history
technic/textures/technicx32/technic_iron_chest_front.png patch | view | raw | blame | history
technic/textures/technicx32/technic_iron_chest_locked.png patch | view | raw | blame | history
technic/textures/technicx32/technic_iron_chest_side.png patch | view | raw | blame | history
technic/textures/technicx32/technic_iron_chest_top.png patch | view | raw | blame | history
technic/textures/technicx32/technic_mithril_chest_front.png patch | view | raw | blame | history
technic/textures/technicx32/technic_mithril_chest_locked.png patch | view | raw | blame | history
technic/textures/technicx32/technic_mithril_chest_side.png patch | view | raw | blame | history
technic/textures/technicx32/technic_mithril_chest_top.png patch | view | raw | blame | history
technic/textures/technicx32/technic_silver_chest_front.png patch | view | raw | blame | history
technic/textures/technicx32/technic_silver_chest_locked.png patch | view | raw | blame | history
technic/textures/technicx32/technic_silver_chest_side.png patch | view | raw | blame | history
technic/textures/technicx32/technic_silver_chest_top.png patch | view | raw | blame | history
technic_chests/chest_commons.lua patch | view | raw | blame | history
technic_chests/copper_chest.lua 8 ●●●● patch | view | raw | blame | history
technic_chests/depends.txt 3 ●●●●● patch | view | raw | blame | history
technic_chests/gold_chest.lua 12 ●●●● patch | view | raw | blame | history
technic_chests/init.lua 13 ●●●●● patch | view | raw | blame | history
technic_chests/iron_chest.lua 10 ●●●●● patch | view | raw | blame | history
technic_chests/mithril_chest.lua 4 ●●●● patch | view | raw | blame | history
technic_chests/silver_chest.lua 131 ●●●●● patch | view | raw | blame | history
technic/config.lua
@@ -7,4 +7,3 @@
enable_rubber_tree_generation=true
enable_marble_generation=true
enable_granite_generation=true
enable_obsidian_generation=true
technic/init.lua
@@ -9,14 +9,6 @@
--helper functions
dofile(modpath.."/helpers.lua")
-- chests
dofile(modpath.."/chest_commons.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")
--items 
dofile(modpath.."/items.lua")
technic/mithril_subspace_chest.lua
File was deleted
technic/textures/technic_copper_chest_front.png
Binary files differ
technic/textures/technic_copper_chest_locked.png
Binary files differ
technic/textures/technic_copper_chest_side.png
Binary files differ
technic/textures/technic_copper_chest_top.png
Binary files differ
technic/textures/technic_diamond.png
Binary files differ
technic/textures/technic_diamond_block.png
Binary files differ
technic/textures/technic_gold_chest_front.png
Binary files differ
technic/textures/technic_gold_chest_front_black.png
Binary files differ
technic/textures/technic_gold_chest_front_blue.png
Binary files differ
technic/textures/technic_gold_chest_front_brown.png
Binary files differ
technic/textures/technic_gold_chest_front_cyan.png
Binary files differ
technic/textures/technic_gold_chest_front_dark_green.png
Binary files differ
technic/textures/technic_gold_chest_front_dark_grey.png
Binary files differ
technic/textures/technic_gold_chest_front_green.png
Binary files differ
technic/textures/technic_gold_chest_front_grey.png
Binary files differ
technic/textures/technic_gold_chest_front_magenta.png
Binary files differ
technic/textures/technic_gold_chest_front_orange.png
Binary files differ
technic/textures/technic_gold_chest_front_pink.png
Binary files differ
technic/textures/technic_gold_chest_front_red.png
Binary files differ
technic/textures/technic_gold_chest_front_violet.png
Binary files differ
technic/textures/technic_gold_chest_front_white.png
Binary files differ
technic/textures/technic_gold_chest_front_yellow.png
Binary files differ
technic/textures/technic_gold_chest_locked.png
Binary files differ
technic/textures/technic_gold_chest_locked_black.png
Binary files differ
technic/textures/technic_gold_chest_locked_blue.png
Binary files differ
technic/textures/technic_gold_chest_locked_brown.png
Binary files differ
technic/textures/technic_gold_chest_locked_cyan.png
Binary files differ
technic/textures/technic_gold_chest_locked_dark_green.png
Binary files differ
technic/textures/technic_gold_chest_locked_dark_grey.png
Binary files differ
technic/textures/technic_gold_chest_locked_green.png
Binary files differ
technic/textures/technic_gold_chest_locked_grey.png
Binary files differ
technic/textures/technic_gold_chest_locked_magenta.png
Binary files differ
technic/textures/technic_gold_chest_locked_orange.png
Binary files differ
technic/textures/technic_gold_chest_locked_pink.png
Binary files differ
technic/textures/technic_gold_chest_locked_red.png
Binary files differ
technic/textures/technic_gold_chest_locked_violet.png
Binary files differ
technic/textures/technic_gold_chest_locked_white.png
Binary files differ
technic/textures/technic_gold_chest_locked_yellow.png
Binary files differ
technic/textures/technic_gold_chest_side.png
Binary files differ
technic/textures/technic_gold_chest_top.png
Binary files differ
technic/textures/technic_iron_chest_front.png
Binary files differ
technic/textures/technic_iron_chest_locked.png
Binary files differ
technic/textures/technic_iron_chest_side.png
Binary files differ
technic/textures/technic_iron_chest_top.png
Binary files differ
technic/textures/technic_mithril_chest_front.png
Binary files differ
technic/textures/technic_mithril_chest_locked.png
Binary files differ
technic/textures/technic_mithril_chest_side.png
Binary files differ
technic/textures/technic_mithril_chest_top.png
Binary files differ
technic/textures/technic_mithril_dust.png
Binary files differ
technic/textures/technic_silver_chest_front.png
Binary files differ
technic/textures/technic_silver_chest_locked.png
Binary files differ
technic/textures/technic_silver_chest_side.png
Binary files differ
technic/textures/technic_silver_chest_top.png
Binary files differ
technic/textures/technicx32/technic_copper_chest_front.png
Binary files differ
technic/textures/technicx32/technic_copper_chest_locked.png
Binary files differ
technic/textures/technicx32/technic_copper_chest_side.png
Binary files differ
technic/textures/technicx32/technic_copper_chest_top.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_black.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_blue.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_brown.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_cyan.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_dark_green.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_dark_grey.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_green.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_grey.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_magenta.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_orange.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_pink.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_red.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_violet.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_white.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_front_yellow.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_black.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_blue.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_brown.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_cyan.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_dark_green.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_dark_grey.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_green.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_grey.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_magenta.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_orange.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_pink.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_red.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_violet.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_white.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_locked_yellow.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_side.png
Binary files differ
technic/textures/technicx32/technic_gold_chest_top.png
Binary files differ
technic/textures/technicx32/technic_iron_chest_front.png
Binary files differ
technic/textures/technicx32/technic_iron_chest_locked.png
Binary files differ
technic/textures/technicx32/technic_iron_chest_side.png
Binary files differ
technic/textures/technicx32/technic_iron_chest_top.png
Binary files differ
technic/textures/technicx32/technic_mithril_chest_front.png
Binary files differ
technic/textures/technicx32/technic_mithril_chest_locked.png
Binary files differ
technic/textures/technicx32/technic_mithril_chest_side.png
Binary files differ
technic/textures/technicx32/technic_mithril_chest_top.png
Binary files differ
technic/textures/technicx32/technic_silver_chest_front.png
Binary files differ
technic/textures/technicx32/technic_silver_chest_locked.png
Binary files differ
technic/textures/technicx32/technic_silver_chest_side.png
Binary files differ
technic/textures/technicx32/technic_silver_chest_top.png
Binary files differ
technic_chests/chest_commons.lua
technic_chests/copper_chest.lua
File was renamed from technic/copper_chest.lua
@@ -24,16 +24,16 @@
    }
})
minetest.register_craftitem("technic:copper_chest", {
minetest.register_craftitem(":technic:copper_chest", {
    description = "Copper Chest",
    stack_max = 99,
})
minetest.register_craftitem("technic:copper_locked_chest", {
minetest.register_craftitem(":technic:copper_locked_chest", {
    description = "Copper Locked Chest",
    stack_max = 99,
})
minetest.register_node("technic:copper_chest", {
minetest.register_node(":technic:copper_chest", {
    description = "Copper Chest",
    tiles = {"technic_copper_chest_top.png", "technic_copper_chest_top.png", "technic_copper_chest_side.png",
        "technic_copper_chest_side.png", "technic_copper_chest_side.png", "technic_copper_chest_front.png"},
@@ -58,7 +58,7 @@
    on_metadata_inventory_take = def_on_metadata_inventory_take 
})
  
minetest.register_node("technic:copper_locked_chest", {
minetest.register_node(":technic:copper_locked_chest", {
    description = "Copper Locked Chest",
    tiles = {"technic_copper_chest_top.png", "technic_copper_chest_top.png", "technic_copper_chest_side.png",
        "technic_copper_chest_side.png", "technic_copper_chest_side.png", "technic_copper_chest_locked.png"},
technic_chests/depends.txt
New file
@@ -0,0 +1,3 @@
default
moreores
pipeworks
technic_chests/gold_chest.lua
File was renamed from technic/gold_chest.lua
@@ -42,11 +42,11 @@
    }
})
minetest.register_craftitem("technic:gold_chest", {
minetest.register_craftitem(":technic:gold_chest", {
    description = "Gold Chest",
    stack_max = 99,
})
minetest.register_craftitem("technic:gold_locked_chest", {
minetest.register_craftitem(":technic:gold_locked_chest", {
    description = "Gold Locked Chest",
    stack_max = 99,
})
@@ -57,7 +57,7 @@
gold_chest_inv_size = 12*4
minetest.register_node("technic:gold_chest", {
minetest.register_node(":technic:gold_chest", {
    description = "Gold Chest",
    tiles = {"technic_gold_chest_top.png", "technic_gold_chest_top.png", "technic_gold_chest_side.png",
        "technic_gold_chest_side.png", "technic_gold_chest_side.png", "technic_gold_chest_front.png"},
@@ -95,7 +95,7 @@
})
for i, state in ipairs(chest_mark_colors) do
minetest.register_node("technic:gold_chest".. state, {
minetest.register_node(":technic:gold_chest".. state, {
    description = "Gold Chest",
    tiles = {"technic_gold_chest_top.png", "technic_gold_chest_top.png", "technic_gold_chest_side.png",
        "technic_gold_chest_side.png", "technic_gold_chest_side.png", "technic_gold_chest_front"..state..".png"},
@@ -133,7 +133,7 @@
})
end
minetest.register_node("technic:gold_locked_chest", {
minetest.register_node(":technic:gold_locked_chest", {
    description = "Gold Locked Chest",
    tiles = {"technic_gold_chest_top.png", "technic_gold_chest_top.png", "technic_gold_chest_side.png",
        "technic_gold_chest_side.png", "technic_gold_chest_side.png", "technic_gold_chest_locked.png"},
@@ -184,7 +184,7 @@
})
for i, state in ipairs(chest_mark_colors) do
minetest.register_node("technic:gold_locked_chest".. state, {
minetest.register_node(":technic:gold_locked_chest".. state, {
    description = "Gold Locked Chest",
    tiles = {"technic_gold_chest_top.png", "technic_gold_chest_top.png", "technic_gold_chest_side.png",
        "technic_gold_chest_side.png", "technic_gold_chest_side.png", "technic_gold_chest_locked"..state..".png"},
technic_chests/init.lua
New file
@@ -0,0 +1,13 @@
-- Minetest 0.4.6 mod: technic_chests
-- namespace: technic
-- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl>
modpath=minetest.get_modpath("technic_chests")
-- chests
dofile(modpath.."/chest_commons.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")
technic_chests/iron_chest.lua
File was renamed from technic/iron_chest.lua
@@ -25,18 +25,16 @@
})
minetest.register_craftitem("technic:iron_chest", {
minetest.register_craftitem(":technic:iron_chest", {
    description = "Iron Chest",
    stack_max = 99,
})
minetest.register_craftitem("technic:iron_locked_chest", {
minetest.register_craftitem(":technic:iron_locked_chest", {
    description = "Iron Locked Chest",
    stack_max = 99,
})
minetest.register_alias("blabla", "technic:iron_chest")
minetest.register_node("technic:iron_chest", {
minetest.register_node(":technic:iron_chest", {
    description = "Iron Chest",
    tiles = {"technic_iron_chest_top.png", "technic_iron_chest_top.png", "technic_iron_chest_side.png",
        "technic_iron_chest_side.png", "technic_iron_chest_side.png", "technic_iron_chest_front.png"},
@@ -61,7 +59,7 @@
    on_metadata_inventory_take = def_on_metadata_inventory_take 
})
minetest.register_node("technic:iron_locked_chest", {
minetest.register_node(":technic:iron_locked_chest", {
    description = "Iron Locked Chest",
    tiles = {"technic_iron_chest_top.png", "technic_iron_chest_top.png", "technic_iron_chest_side.png",
        "technic_iron_chest_side.png", "technic_iron_chest_side.png", "technic_iron_chest_locked.png"},
technic_chests/mithril_chest.lua
File was renamed from technic/mithril_chest.lua
@@ -24,7 +24,7 @@
    }
})
minetest.register_node("technic:mithril_chest", {
minetest.register_node(":technic:mithril_chest", {
    description = "Mithril Chest",
    tiles = {"technic_mithril_chest_top.png", "technic_mithril_chest_top.png", "technic_mithril_chest_side.png",
        "technic_mithril_chest_side.png", "technic_mithril_chest_side.png", "technic_mithril_chest_front.png"},
@@ -67,7 +67,7 @@
    end,
})
minetest.register_node("technic:mithril_locked_chest", {
minetest.register_node(":technic:mithril_locked_chest", {
    description = "Mithril Locked Chest",
    tiles = {"technic_mithril_chest_top.png", "technic_mithril_chest_top.png", "technic_mithril_chest_side.png",
        "technic_mithril_chest_side.png", "technic_mithril_chest_side.png", "technic_mithril_chest_locked.png"},
technic_chests/silver_chest.lua
New file
@@ -0,0 +1,131 @@
minetest.register_craft({
    output = 'technic:silver_chest 1',
    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 1',
    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'},
    }
})
minetest.register_craft({
    output = 'technic:silver_locked_chest 1',
    recipe = {
        {'default:steel_ingot'},
        {'technic:silver_chest'},
    }
})
minetest.register_craftitem(":technic:silver_chest", {
    description = "Silver Chest",
    stack_max = 99,
})
minetest.register_craftitem(":technic:silver_locked_chest", {
    description = "Silver Locked Chest",
    stack_max = 99,
})
minetest.register_node(":technic:silver_chest", {
    description = "Silver Chest",
    tiles = {"technic_silver_chest_top.png", "technic_silver_chest_top.png", "technic_silver_chest_side.png",
        "technic_silver_chest_side.png", "technic_silver_chest_side.png", "technic_silver_chest_front.png"},
    paramtype2 = "facedir",
    groups = chest_groups1,
    tube = tubes_properties,
    legacy_facedir_simple = true,
    sounds = default.node_sound_wood_defaults(),
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "invsize[11,9;]"..
                "list[current_name;main;0,0;11,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "Silver Chest")
        local inv = meta:get_inventory()
        inv:set_size("main", 11*4)
    end,
    can_dig = chest_can_dig,
    on_punch = function (pos, node, puncher)
            local meta = minetest.env:get_meta(pos);
                meta:set_string("formspec", "hack:sign_text_input")
    end,
    on_receive_fields = function(pos, formname, fields, sender)
        local meta = minetest.env:get_meta(pos);
              fields.text = fields.text or ""
        meta:set_string("text", fields.text)
        meta:set_string("infotext", '"'..fields.text..'"')
        meta:set_string("formspec",
                "invsize[11,9;]"..
                "list[current_name;main;0,0;11,4;]"..
                "list[current_player;main;0,5;8,4;]")
    end,
    on_metadata_inventory_move = def_on_metadata_inventory_move,
    on_metadata_inventory_put = def_on_metadata_inventory_put,
    on_metadata_inventory_take = def_on_metadata_inventory_take
})
minetest.register_node(":technic:silver_locked_chest", {
    description = "Silver Locked Chest",
    tiles = {"technic_silver_chest_top.png", "technic_silver_chest_top.png", "technic_silver_chest_side.png",
        "technic_silver_chest_side.png", "technic_silver_chest_side.png", "technic_silver_chest_locked.png"},
    paramtype2 = "facedir",
    groups = chest_groups1,
    tube = tubes_properties,
    legacy_facedir_simple = true,
    sounds = default.node_sound_wood_defaults(),
    after_place_node = function(pos, placer)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("owner", placer:get_player_name() or "")
        meta:set_string("infotext", "Silver Locked Chest (owned by "..
            meta:get_string("owner")..")")
    end,
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        meta:set_string("formspec",
                "invsize[11,9;]"..
                "list[current_name;main;0,0;11,4;]"..
                "list[current_player;main;0,5;8,4;]")
        meta:set_string("infotext", "Silver Locked Chest")
        meta:set_string("owner", "")
        local inv = meta:get_inventory()
        inv:set_size("main", 11*4)
    end,
    can_dig = chest_can_dig,
    on_punch = function (pos, node, puncher)
            local meta = minetest.env:get_meta(pos);
                meta:set_string("formspec", "hack:sign_text_input")
    end,
    on_receive_fields = function(pos, formname, fields, sender)
        local meta = minetest.env:get_meta(pos);
              fields.text = fields.text or ""
        meta:set_string("text", fields.text)
        meta:set_string("infotext", '"'..fields.text..'"')
        meta:set_string("formspec",
                "invsize[11,9;]"..
                "list[current_name;main;0,0;11,4;]"..
                "list[current_player;main;0,5;8,4;]")
    end,
    allow_metadata_inventory_move = def_allow_metadata_inventory_move,
    allow_metadata_inventory_put = def_allow_metadata_inventory_put,
    allow_metadata_inventory_take = def_allow_metadata_inventory_take,
    on_metadata_inventory_move = def_on_metadata_inventory_move,
    on_metadata_inventory_put = def_on_metadata_inventory_put,
    on_metadata_inventory_take = def_on_metadata_inventory_take
})