Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local m = peripheral.wrap("right")
- teller = 0
- while true do
- teller = teller+1
- print("Loop: "..teller)
- if(os.pullEvent("redstone")) then
- on = redstone.getInput("left")
- if(on==true) then
- print("place")
- m.transmit(99,99,"place")
- elseif(on==false) then
- print("pickup")
- m.transmit(99,99,"pickup")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment