2018-04-07 15:27:34 +00:00
|
|
|
-- Storage Grid
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.grid = {}
|
2018-04-07 18:32:41 +00:00
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.sort(inlist)
|
2018-04-08 11:04:54 +00:00
|
|
|
local typecnt = {}
|
|
|
|
local typekeys = {}
|
|
|
|
for _, st in ipairs(inlist) do
|
|
|
|
if not st:is_empty() then
|
|
|
|
local n = st:get_name()
|
|
|
|
local w = st:get_wear()
|
|
|
|
local m = st:get_metadata()
|
|
|
|
local k = string.format("%s %05d %s", n, w, m)
|
|
|
|
if not typecnt[k] then
|
|
|
|
typecnt[k] = {
|
|
|
|
name = n,
|
|
|
|
wear = w,
|
|
|
|
metadata = m,
|
|
|
|
stack_max = st:get_stack_max(),
|
|
|
|
count = 0,
|
|
|
|
}
|
|
|
|
table.insert(typekeys, k)
|
|
|
|
end
|
|
|
|
typecnt[k].count = typecnt[k].count + st:get_count()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
table.sort(typekeys)
|
|
|
|
local outlist = {}
|
|
|
|
for _, k in ipairs(typekeys) do
|
|
|
|
local tc = typecnt[k]
|
|
|
|
while tc.count > 0 do
|
|
|
|
local c = math.min(tc.count, tc.stack_max)
|
|
|
|
table.insert(outlist, ItemStack({
|
|
|
|
name = tc.name,
|
|
|
|
wear = tc.wear,
|
|
|
|
metadata = tc.metadata,
|
|
|
|
count = c,
|
|
|
|
}))
|
|
|
|
tc.count = tc.count - c
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if #outlist > #inlist then return end
|
|
|
|
while #outlist < #inlist do
|
|
|
|
table.insert(outlist, ItemStack(nil))
|
|
|
|
end
|
|
|
|
return outlist
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.get_formspec(scroll_lvl, pages, craft_inv)
|
2018-04-08 09:39:06 +00:00
|
|
|
local craft = ""
|
|
|
|
local title = "Grid"
|
|
|
|
local height = 6
|
|
|
|
|
|
|
|
if craft_inv then
|
|
|
|
title = "Crafting Grid"
|
|
|
|
height = 3
|
2018-04-08 13:35:50 +00:00
|
|
|
craft = "list[current_player;craft;1.5,3.8;3,3;]"..
|
|
|
|
"image[4.5,4.8;1,1;gui_furnace_arrow_bg.png^[transformR270]"..
|
|
|
|
"list[current_player;craftpreview;5.5,4.8;1,1;]"
|
2018-04-08 11:04:54 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
local scroll = ""
|
|
|
|
if scroll_lvl < pages then
|
|
|
|
scroll = scroll.."button[7,"..(height-0.5)..";1,1;down;Down]"
|
|
|
|
end
|
|
|
|
|
|
|
|
if scroll_lvl > 0 then
|
|
|
|
scroll = scroll.."button[7,0.5;1,1;up;Up]"
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
|
|
|
|
2018-04-07 18:32:41 +00:00
|
|
|
return "size[8,12]"..
|
|
|
|
default.gui_bg..
|
|
|
|
default.gui_bg_img..
|
|
|
|
default.gui_slots..
|
2018-04-08 09:39:06 +00:00
|
|
|
"label[0,0;"..title.."]"..
|
2018-04-08 11:04:54 +00:00
|
|
|
"field[1.25,7.45;4,1;search;Search..;]"..
|
|
|
|
"field_close_on_enter[search;false]"..
|
2018-04-08 09:39:06 +00:00
|
|
|
"list[context;main;0,7;1,1;]"..
|
|
|
|
"list[context;grid;0,0.5;7,"..height..";]"..
|
2018-04-07 18:32:41 +00:00
|
|
|
"list[current_player;main;0,8;8,1;]"..
|
|
|
|
"list[current_player;main;0,9.2;8,3;8]"..
|
2018-04-08 09:39:06 +00:00
|
|
|
craft..
|
2018-04-08 11:04:54 +00:00
|
|
|
scroll..
|
2018-04-07 18:32:41 +00:00
|
|
|
"listring[context;main]"..
|
|
|
|
"listring[current_player;main]"..
|
|
|
|
default.get_hotbar_bg(0, 8)
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.to_network(meta)
|
2018-04-08 09:39:06 +00:00
|
|
|
local ctrl = meta:get_string("controller")
|
|
|
|
if not ctrl or ctrl == "" then return nil end
|
|
|
|
local network = minetest.hash_node_position(minetest.string_to_pos(ctrl))
|
|
|
|
return network
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.handle_grid(pos, meta, network, inv)
|
2018-04-08 09:39:06 +00:00
|
|
|
local refresh = false
|
|
|
|
local limited_items = {}
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
local items = holostorage.network.get_storage_inventories(network)
|
2018-04-08 09:39:06 +00:00
|
|
|
local scroll = meta:get_int("scroll_len") or 0
|
|
|
|
local grid = inv:get_size("grid")
|
|
|
|
|
2018-04-08 11:04:54 +00:00
|
|
|
-- Sort the items
|
2018-04-08 14:11:39 +00:00
|
|
|
items = holostorage.grid.sort(items)
|
2018-04-08 11:04:54 +00:00
|
|
|
|
|
|
|
-- Search
|
|
|
|
local search = meta:get_string("search")
|
|
|
|
local preserve = {}
|
|
|
|
if search and search ~= "" then
|
|
|
|
for _, v in pairs(items) do
|
|
|
|
if v:get_name():find(search) then
|
|
|
|
preserve[#preserve + 1] = v
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
preserve = items
|
|
|
|
end
|
|
|
|
|
2018-04-08 09:39:06 +00:00
|
|
|
for i = (scroll * 7) + 1, grid + (scroll * 7) do
|
2018-04-08 11:04:54 +00:00
|
|
|
if preserve[i] then
|
|
|
|
limited_items[#limited_items + 1] = preserve[i]
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
inv:set_list("grid", limited_items)
|
|
|
|
|
|
|
|
-- Handle inputting items
|
|
|
|
local input = inv:get_stack("main", 1)
|
|
|
|
if not input:is_empty() then
|
2018-04-08 14:11:39 +00:00
|
|
|
local success, leftover = holostorage.network.insert_item(network, input)
|
2018-04-08 09:39:06 +00:00
|
|
|
if success then
|
|
|
|
inv:set_stack("main", 1, leftover)
|
|
|
|
refresh = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-04-08 11:04:54 +00:00
|
|
|
-- Reset formspec, recalculate scrolls
|
|
|
|
local grid_craft = meta:get_int("craft") == 1
|
|
|
|
local height = math.floor(#preserve / 8)
|
|
|
|
meta:set_int("scroll_height", height)
|
2018-04-08 14:11:39 +00:00
|
|
|
meta:set_string("formspec", holostorage.grid.get_formspec(scroll, height, grid_craft))
|
2018-04-08 11:04:54 +00:00
|
|
|
|
2018-04-08 09:39:06 +00:00
|
|
|
return refresh
|
|
|
|
end
|
|
|
|
|
2018-04-08 11:04:54 +00:00
|
|
|
local function on_receive_fields(pos, formname, fields, sender)
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
if fields["up"] then
|
|
|
|
if meta:get_int("scroll_len") > 0 then
|
|
|
|
meta:set_int("scroll_len", meta:get_int("scroll_len") - 1)
|
|
|
|
end
|
|
|
|
elseif fields["down"] then
|
|
|
|
if meta:get_int("scroll_len") < meta:get_int("scroll_height") then
|
|
|
|
meta:set_int("scroll_len", meta:get_int("scroll_len") + 1)
|
|
|
|
end
|
|
|
|
elseif fields["search"] and fields["key_enter"] then
|
|
|
|
meta:set_string("search", fields["search"])
|
|
|
|
meta:set_int("scroll_len", 0)
|
|
|
|
elseif fields["quit"] then
|
|
|
|
meta:set_string("search", "")
|
|
|
|
meta:set_int("scroll_len", 0)
|
|
|
|
end
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.allow_put(pos, listname, index, stack, player)
|
2018-04-08 09:39:06 +00:00
|
|
|
if minetest.is_protected(pos, player:get_player_name()) then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
if listname == "grid" or listname == "craftpreview" then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
return stack:get_count()
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.allow_move_active(pos, from_list, from_index, to_list, to_index, count, player)
|
2018-04-08 09:39:06 +00:00
|
|
|
if from_list == "grid" and to_list == "main" then
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
local stack = inv:get_stack(from_list, from_index)
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
return holostorage.grid.allow_put(pos, to_list, to_index, stack, player)
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.on_disable(pos)
|
2018-04-08 09:39:06 +00:00
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local prev = meta:get_string("controller")
|
|
|
|
if prev and prev ~= "" then
|
|
|
|
meta:set_string("controller", "")
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.on_move(pos, from_list, from_index, to_list, to_index, count, player)
|
2018-04-08 09:39:06 +00:00
|
|
|
if from_list == "grid" and to_list == "craft" then
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
local stack = inv:get_stack(to_list, to_index)
|
|
|
|
local meta = minetest.get_meta(pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
local network = holostorage.grid.to_network(meta)
|
2018-04-08 09:39:06 +00:00
|
|
|
if network then
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.network.take_item(network, stack)
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
function holostorage.grid.on_take(pos, listname, index, stack, player)
|
2018-04-08 09:39:06 +00:00
|
|
|
if listname == "grid" then
|
|
|
|
local meta = minetest.get_meta(pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
local network = holostorage.grid.to_network(meta)
|
2018-04-08 09:39:06 +00:00
|
|
|
if network then
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.network.take_item(network, stack)
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end
|
|
|
|
|
2018-04-07 15:27:34 +00:00
|
|
|
local function timer(pos, elapsed)
|
|
|
|
local refresh = false
|
|
|
|
local meta = minetest.get_meta(pos)
|
|
|
|
local node = minetest.get_node(pos)
|
2018-04-08 09:39:06 +00:00
|
|
|
local inv = meta:get_inventory()
|
2018-04-08 14:11:39 +00:00
|
|
|
local network = holostorage.grid.to_network(meta)
|
2018-04-08 09:39:06 +00:00
|
|
|
|
|
|
|
if not network then
|
|
|
|
inv:set_list("grid", {})
|
|
|
|
else
|
2018-04-08 14:11:39 +00:00
|
|
|
refresh = holostorage.grid.handle_grid(pos, meta, network, inv)
|
2018-04-08 09:39:06 +00:00
|
|
|
end
|
2018-04-07 15:27:34 +00:00
|
|
|
|
|
|
|
return refresh
|
|
|
|
end
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
minetest.register_node("holostorage:grid", {
|
2018-04-07 15:27:34 +00:00
|
|
|
description = "Grid",
|
|
|
|
tiles = {
|
2018-04-08 14:11:39 +00:00
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_machine_block.png",
|
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_grid.png",
|
2018-04-07 15:27:34 +00:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_timer = timer,
|
|
|
|
groups = {
|
|
|
|
cracky = 1,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_distributor = 1,
|
|
|
|
holostorage_device = 1,
|
2018-04-07 15:27:34 +00:00
|
|
|
},
|
|
|
|
on_construct = function (pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.network.clear_networks(pos)
|
2018-04-07 18:32:41 +00:00
|
|
|
local meta = minetest.get_meta(pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
meta:set_string("formspec", holostorage.grid.get_formspec(0, 1))
|
2018-04-07 18:32:41 +00:00
|
|
|
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("main", 1)
|
|
|
|
inv:set_size("grid", 7*6)
|
2018-04-08 09:39:06 +00:00
|
|
|
|
|
|
|
meta:set_int("scroll_len", 0)
|
2018-04-08 11:04:54 +00:00
|
|
|
meta:set_int("scroll_height", 6)
|
2018-04-08 09:39:06 +00:00
|
|
|
end,
|
|
|
|
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
return itemstack
|
2018-04-07 15:27:34 +00:00
|
|
|
end,
|
2018-04-09 09:01:17 +00:00
|
|
|
after_dig_node = holostorage.network.clear_networks,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_run = holostorage.helpers.grid_refresh,
|
2018-04-08 09:39:06 +00:00
|
|
|
allow_metadata_inventory_move = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_put = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_take = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_enabled_name = "holostorage:grid_active",
|
|
|
|
holostorage_on_disable = holostorage.grid.on_disable,
|
2018-04-07 15:27:34 +00:00
|
|
|
})
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
minetest.register_node("holostorage:grid_active", {
|
2018-04-07 15:27:34 +00:00
|
|
|
description = "Grid",
|
|
|
|
tiles = {
|
2018-04-08 14:11:39 +00:00
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_machine_block.png",
|
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_grid_active.png",
|
2018-04-07 15:27:34 +00:00
|
|
|
},
|
2018-04-08 14:11:39 +00:00
|
|
|
drop = "holostorage:grid",
|
2018-04-08 14:25:50 +00:00
|
|
|
paramtype = "light",
|
|
|
|
light_source = 8,
|
2018-04-07 15:27:34 +00:00
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_timer = timer,
|
|
|
|
groups = {
|
|
|
|
cracky = 1,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_distributor = 1,
|
|
|
|
holostorage_device = 1,
|
2018-04-07 15:27:34 +00:00
|
|
|
not_in_creative_inventory = 1
|
|
|
|
},
|
2018-04-08 14:11:39 +00:00
|
|
|
on_metadata_inventory_move = holostorage.grid.on_move,
|
2018-04-08 09:39:06 +00:00
|
|
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end,
|
2018-04-08 14:11:39 +00:00
|
|
|
on_metadata_inventory_take = holostorage.grid.on_take,
|
2018-04-08 09:39:06 +00:00
|
|
|
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
minetest.get_node_timer(pos):start(0.05)
|
|
|
|
return itemstack
|
|
|
|
end,
|
2018-04-09 09:01:17 +00:00
|
|
|
after_dig_node = holostorage.network.clear_networks,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_run = holostorage.helpers.grid_refresh,
|
|
|
|
holostorage_disabled_name = "holostorage:grid",
|
|
|
|
allow_metadata_inventory_move = holostorage.grid.allow_move_active,
|
|
|
|
allow_metadata_inventory_put = holostorage.grid.allow_put,
|
2018-04-08 11:04:54 +00:00
|
|
|
on_receive_fields = on_receive_fields,
|
2018-04-08 09:39:06 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
-- Crafting version
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
minetest.register_node("holostorage:crafting_grid", {
|
2018-04-08 09:39:06 +00:00
|
|
|
description = "Crafting Grid",
|
|
|
|
tiles = {
|
2018-04-08 14:11:39 +00:00
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_machine_block.png",
|
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_crafting_grid.png",
|
2018-04-08 09:39:06 +00:00
|
|
|
},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
on_timer = timer,
|
|
|
|
groups = {
|
|
|
|
cracky = 1,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_distributor = 1,
|
|
|
|
holostorage_device = 1,
|
2018-04-08 09:39:06 +00:00
|
|
|
},
|
|
|
|
on_construct = function (pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.network.clear_networks(pos)
|
2018-04-08 09:39:06 +00:00
|
|
|
local meta = minetest.get_meta(pos)
|
2018-04-08 14:11:39 +00:00
|
|
|
meta:set_string("formspec", holostorage.grid.get_formspec(0, 1, true))
|
2018-04-08 09:39:06 +00:00
|
|
|
|
|
|
|
local inv = meta:get_inventory()
|
|
|
|
inv:set_size("main", 1)
|
|
|
|
inv:set_size("grid", 7*3)
|
|
|
|
|
|
|
|
meta:set_int("scroll_len", 0)
|
2018-04-08 11:04:54 +00:00
|
|
|
meta:set_int("scroll_height", 3)
|
|
|
|
|
|
|
|
meta:set_int("craft", 1)
|
2018-04-08 09:39:06 +00:00
|
|
|
end,
|
|
|
|
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
return itemstack
|
|
|
|
end,
|
2018-04-09 09:01:17 +00:00
|
|
|
after_dig_node = holostorage.network.clear_networks,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_run = holostorage.helpers.grid_refresh,
|
2018-04-08 09:39:06 +00:00
|
|
|
allow_metadata_inventory_move = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_put = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
|
|
|
allow_metadata_inventory_take = function ()
|
|
|
|
return 0
|
|
|
|
end,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_enabled_name = "holostorage:crafting_grid_active",
|
|
|
|
holostorage_on_disable = holostorage.grid.on_disable,
|
2018-04-08 09:39:06 +00:00
|
|
|
})
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
minetest.register_node("holostorage:crafting_grid_active", {
|
2018-04-08 09:39:06 +00:00
|
|
|
description = "Crafting Grid",
|
|
|
|
tiles = {
|
2018-04-08 14:11:39 +00:00
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_machine_block.png",
|
|
|
|
"holostorage_machine_block.png", "holostorage_machine_block.png", "holostorage_crafting_grid_active.png",
|
2018-04-08 09:39:06 +00:00
|
|
|
},
|
2018-04-08 14:11:39 +00:00
|
|
|
drop = "holostorage:crafting_grid",
|
2018-04-08 09:39:06 +00:00
|
|
|
paramtype2 = "facedir",
|
2018-04-08 14:25:50 +00:00
|
|
|
paramtype = "light",
|
|
|
|
light_source = 8,
|
2018-04-08 09:39:06 +00:00
|
|
|
on_timer = timer,
|
|
|
|
groups = {
|
|
|
|
cracky = 1,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_distributor = 1,
|
|
|
|
holostorage_device = 1,
|
2018-04-08 09:39:06 +00:00
|
|
|
not_in_creative_inventory = 1
|
|
|
|
},
|
2018-04-08 14:11:39 +00:00
|
|
|
on_metadata_inventory_move = holostorage.grid.on_move,
|
2018-04-08 09:39:06 +00:00
|
|
|
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
|
|
minetest.get_node_timer(pos):start(0.02)
|
|
|
|
end,
|
2018-04-08 14:11:39 +00:00
|
|
|
on_metadata_inventory_take = holostorage.grid.on_take,
|
2018-04-08 09:39:06 +00:00
|
|
|
on_rightclick = function (pos, node, clicker, itemstack, pointed_thing)
|
|
|
|
minetest.get_node_timer(pos):start(0.05)
|
|
|
|
return itemstack
|
|
|
|
end,
|
2018-04-09 09:01:17 +00:00
|
|
|
after_dig_node = holostorage.network.clear_networks,
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage_run = holostorage.helpers.grid_refresh,
|
|
|
|
holostorage_disabled_name = "holostorage:crafting_grid",
|
|
|
|
allow_metadata_inventory_move = holostorage.grid.allow_move_active,
|
|
|
|
allow_metadata_inventory_put = holostorage.grid.allow_put,
|
2018-04-08 11:04:54 +00:00
|
|
|
on_receive_fields = on_receive_fields,
|
2018-04-07 15:27:34 +00:00
|
|
|
})
|
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.devices["holostorage:grid"] = true
|
|
|
|
holostorage.devices["holostorage:grid_active"] = true
|
2018-04-08 09:39:06 +00:00
|
|
|
|
2018-04-08 14:11:39 +00:00
|
|
|
holostorage.devices["holostorage:crafting_grid"] = true
|
|
|
|
holostorage.devices["holostorage:crafting_grid_active"] = true
|