| | |
| | | -- namespace: technic |
| | | -- (c) 2012-2013 by RealBadAngel <mk@realbadangel.pl> |
| | | |
| | | modpath=minetest.get_modpath("technic_chests") |
| | | local modpath = minetest.get_modpath("technic_chests") |
| | | |
| | | -- chests |
| | | dofile(modpath.."/chest_commons.lua") |
| | | technic = rawget(_G, "technic") or {} |
| | | technic.chests = {} |
| | | |
| | | dofile(modpath.."/common.lua") |
| | | dofile(modpath.."/register.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") |
| | | |
| | | minetest.register_lbm({ |
| | | name = "technic_chests:fix_wooden_chests", |
| | | nodenames = {"default:chest"}, |
| | | action = function(pos, node) |
| | | local meta = minetest.get_meta(pos) |
| | | meta:set_string("formspec", "") |
| | | end |
| | | }) |