forked from minetest-mods/technic
26 lines
687 B
Lua
26 lines
687 B
Lua
-- 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.."/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
|
|
})
|