Posted 04 June 2014 - 12:31 AM
Okay, so I've got a chest on the west side of a computer, and one on the east.
The computer's front is facing to the south, so right is the chest on the east.
Like this:
I put a sign in the top-left slot in the right chest and i dis in the lua program:
Btw, peripheral.getType("right") and peripheral.getType("left") both return "container_chest"
It should move it, right?
c.getStackInSlot(1) returns:
{
id = 323,
name = "Sign",
maxdmg = 0,
rawName = "item.sign",
dmg = 0,
maxSize = 16,
ench = {},
qty = 1
}
EDIT: BTW, pushItem("left",1) just says "invalid direction"
The computer's front is facing to the south, so right is the chest on the east.
Like this:
I put a sign in the top-left slot in the right chest and i dis in the lua program:
c=peripheral.wrap("right"); --East chest
c.pushItem("west",1);
The pushItem doesn't return anything and the sign doesn't move to the left(west).Btw, peripheral.getType("right") and peripheral.getType("left") both return "container_chest"
It should move it, right?
c.getStackInSlot(1) returns:
{
id = 323,
name = "Sign",
maxdmg = 0,
rawName = "item.sign",
dmg = 0,
maxSize = 16,
ench = {},
qty = 1
}
EDIT: BTW, pushItem("left",1) just says "invalid direction"
Edited on 03 June 2014 - 10:32 PM