OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

PIM Program #59

Open KnottyCord opened 9 years ago

KnottyCord commented 9 years ago

So i want to make a program that take the armor of the player and put it in a chest This is my code but it does not work could some one make me a code that work! pim = peripheral.wrap("right") while true do pim.pushItemIntoSlot("NORTH",4,1,1) end

but when i reboot i have a error code and i don't know what to do!

Sprocks59 commented 9 years ago

Direwolf did this in a previous season of Forgecraft the pastebin link is http://pastebin.com/KqGYdQrU this takes armour and hotbar and places it in an chest next to the PIM it also does the reverse the video is https://youtu.be/jG5A9J3Gh4A?t=19m45s This might give you some idea where your error is

Xiretza commented 9 years ago

What you're saying is pretty much "I did something and now it doesn't work". Give more details, like how you set the computer + PIM up, what exactly your code is and what error you get. Else it's pretty much impossible for others to see what you did wrong.

KnottyCord commented 9 years ago

code error Here is a picture of my code that i made yesturday!