Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- redstone.setBundledOutput("right",0)
- while true do
- if (colors.test(redstone.getBundledInput("right"),colors.white)) then
- peripheral.call("bottom","pushItem","up",1,1)
- redstone.setAnalogOutput("left",1)
- end
- if (colors.test(redstone.getBundledInput("right"),colors.black)) then
- peripheral.call("bottom","pullItem","up",1,1,1)
- redstone.setAnalogOutput("left",0)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement