mirror of
https://github.com/theFox6/microexpansion.git
synced 2025-01-15 08:57:33 +01:00
Add cell based drawer upgrades.
This commit is contained in:
parent
747242b84a
commit
435c8a4bad
@ -1,6 +1,10 @@
|
|||||||
-- Interoperability file for drawers support.
|
-- Interoperability file for drawers support.
|
||||||
local me = microexpansion
|
local me = microexpansion
|
||||||
|
|
||||||
|
local S = function(d)
|
||||||
|
return d
|
||||||
|
end
|
||||||
|
|
||||||
me.register_inventory("drawers:wood1", function(net, ctrl_inv, int_meta, n, pos, doinventories)
|
me.register_inventory("drawers:wood1", function(net, ctrl_inv, int_meta, n, pos, doinventories)
|
||||||
if not doinventories then return end
|
if not doinventories then return end
|
||||||
local c = drawers.drawer_get_content(n.pos, "")
|
local c = drawers.drawer_get_content(n.pos, "")
|
||||||
@ -37,3 +41,10 @@ end)
|
|||||||
me.register_inventory("drawers:controller", function(net, ctrl_inv, int_meta, n, pos)
|
me.register_inventory("drawers:controller", function(net, ctrl_inv, int_meta, n, pos)
|
||||||
-- inv:add_item("src", ItemStack("default:stone"))
|
-- inv:add_item("src", ItemStack("default:stone"))
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
drawers.register_drawer_upgrade("microexpansion:upgrade_me64k", {
|
||||||
|
description = S("Microexpansion Drawer Upgrade (x64*4)"),
|
||||||
|
inventory_image = "drawers_upgrade_mithril.png",
|
||||||
|
groups = {drawer_upgrade = 8000},
|
||||||
|
recipe_item = "microexpansion:cell_64k"
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user