This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Hydrotronics's profile picture

openPeripherals problem

Started by Hydrotronics, 19 August 2015 - 03:25 PM
Hydrotronics #1
Posted 19 August 2015 - 05:25 PM
So, I was on my single player, jumping around the place when I thought "I wanna make a system that will remove your armour, and re-charge it for you" as I was wearing power armour. Anyway, I set course makign a basic program where if you stand on a PIM and open the computer, it pushes the items out of your armour slots and into the chest next to me. But it didn't work, it kept on saying that the ID number had to be lower than 40 (coming from the inventory) but the slot ID for armour is 103, 102, 101 and 100! Is there a way to by pass this? Another Thing is having it working on a server, that'd be nice also, thank you!
HPWebcamAble #2
Posted 19 August 2015 - 11:06 PM
Try the function 'getInventorySize()' when you are on and off the PIM, see what it says.