Compare commits
No commits in common. "6672c75d1a50784273d77f9cd78a0bcb8c1adf36" and "d9f85131005e68339ccd6f333ae6277ec00ae2b0" have entirely different histories.
6672c75d1a
...
d9f8513100
1 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,7 @@ local FLOORS = {
|
||||||
redstone.setOutput("top", false)
|
redstone.setOutput("top", false)
|
||||||
end,
|
end,
|
||||||
storage = "create:item_vault_17",
|
storage = "create:item_vault_17",
|
||||||
elevator_storage = "create:portable_storage_interface_11",
|
elevator_storage = "bottom",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
match = function (input)
|
match = function (input)
|
||||||
|
|
@ -26,7 +26,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_21"
|
local relay = "redstone_relay_21"
|
||||||
return peripheral.call(relay, "getInput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_21"
|
local relay = "redstone_relay_21"
|
||||||
|
|
@ -44,7 +44,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_22"
|
local relay = "redstone_relay_22"
|
||||||
return peripheral.call(relay, "getInput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_22"
|
local relay = "redstone_relay_22"
|
||||||
|
|
@ -62,7 +62,7 @@ local FLOORS = {
|
||||||
end,
|
end,
|
||||||
detect = function ()
|
detect = function ()
|
||||||
local relay = "redstone_relay_23"
|
local relay = "redstone_relay_23"
|
||||||
return peripheral.call(relay, "getInput", "top")
|
peripheral.call(relay, "getInput", "top")
|
||||||
end,
|
end,
|
||||||
call = function ()
|
call = function ()
|
||||||
local relay = "redstone_relay_23"
|
local relay = "redstone_relay_23"
|
||||||
|
|
@ -98,7 +98,7 @@ local PKG_QUEUE = {
|
||||||
end,
|
end,
|
||||||
check_cargo = function (self, inv, floors)
|
check_cargo = function (self, inv, floors)
|
||||||
for slot, item in pairs(peripheral.call(inv, "list")) do
|
for slot, item in pairs(peripheral.call(inv, "list")) do
|
||||||
local item_detail = peripheral.call(inv, "getItemDetail", slot)
|
local item_detail = peripheral.call(src, "getItemDetail", slot)
|
||||||
for i, floor in ipairs(floors) do
|
for i, floor in ipairs(floors) do
|
||||||
if item_detail.package ~= nil and
|
if item_detail.package ~= nil and
|
||||||
floor.match(item_detail.package.getAddress()) then
|
floor.match(item_detail.package.getAddress()) then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue