Posted 21 December 2015 - 11:26 AM
I'm trying to move items from slots in a player's inventory with a PIM and move it into an ME interface (both connected with Wired Modems)
This is my code:
By the way, pim.condenseItems is commented out on purpose (so I can check it is taking all inventory slots I want it to).
I get this error when i use the code:
This is my code:
local pim = peripheral.find("pim")
local interface = peripheral.find("tileinterface")
if pim and pim.getInventorySize() > 0 then
--pim.condenseItems()
if interface then
for i=10, 35 do
pim.pushItem("tileinterface_0", i)
end
end
By the way, pim.condenseItems is commented out on purpose (so I can check it is taking all inventory slots I want it to).
I get this error when i use the code:
startup:7:Failed to convert arg 'direction', cause: ''tileinterface_0' is not valid enum value, must be [DOWN, UP, NORTH, SOUTH, WEST, EAST, UNKNOWN] or 1..7'