Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right") -- Needs Gate Reader
- function checkDoneCharging()
- data = m.get()
- return(data["Discharging Empty Item"])
- end
- function emptyMFSU()
- turtle.select(16)
- turtle.suckUp()
- turtle.drop()
- end
- function fillMFSU()
- turtle.select(1)
- turtle.suckDown()
- turtle.dropUp()
- end
- while true do
- if checkDoneCharging() then
- emptyMFSU()
- fillMFSU()
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement