Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.wrap("front")
- local p = peripheral.wrap("front")
- local chest = {"1365", "3003"}
- turtle.select(16)
- turtle.place()
- color = 1365
- p.setFrequency("0")
- print(p.getFrequency())
- p.setFrequency(color)
- print(p.getFrequency())
- p.setFrequency(chest[1])
- print(p.getFrequency())
- p.setFrequency(chest[2])
- print(p.getFrequency())
- function restock()
- -- turtle.turnLeft()
- -- turtle.turnLeft()
- turtle.select(16)
- turtle.place()
- print("Placed")
- peripheral.wrap("front")
- print("Wrapped")
- print(chest[1])
- p.setFrequency(chest[1])
- print("Set")
- for i=1, 15 do
- turtle.select(i)
- turtle.drop()
- end
- p.setFrequency(chest[2])
- for i=1, 15 do
- turtle.select(i)
- turtle.suck()
- end
- turtle.select(16)
- turtle.dig()
- turtle.select(1)
- print("success")
- -- turtle.turnRight()
- -- turtle.turnRight()
- end
- restock()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement