Posted 12 December 2013 - 05:39 PM
Greetings fellow ComputerCrafters,
Since I can't find this issue anywhere on the forums, I've decided to go ahead and register and create a new topic.
I've been trying to replicate the code used by DW20 for the crystal portal as seen in his series.
I've been having issues when issuing the "pullItem" or "pushItem" commands with the following error: Target direction is not a valid inventory
I've put a chest at each direction, except for "south"
Here's my code:
My trial and error code testing does extend a lot more, so that's the summarized version.
Can anyone help me out ?
Since I can't find this issue anywhere on the forums, I've decided to go ahead and register and create a new topic.
I've been trying to replicate the code used by DW20 for the crystal portal as seen in his series.
I've been having issues when issuing the "pullItem" or "pushItem" commands with the following error: Target direction is not a valid inventory
I've put a chest at each direction, except for "south"
Here's my code:
chest = peripheral.wrap('top')
info = chest,getInventorySize()
print(info)
chest.pushItem('up',1,1)
My trial and error code testing does extend a lot more, so that's the summarized version.
Can anyone help me out ?