mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-14 14:30:44 +01:00
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
|
|
})
|