Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p1 = peripheral.wrap("bottom")
- p2 = peripheral.wrap("top")
- --p3 = peripheral.wrap("left")
- slot=1
- print(peripheral.getType("bottom"))
- function planks()
- holen()
- craft(1)
- weg(1)
- end
- function holen()
- p1.pushItem("up", 0, 16)
- end
- function craft(offset)
- turtle.select(slot+offset)
- turtle.craft(64)
- turtle.select(slot)
- end
- function weg(offset)
- turtle.select(slot+offset)
- turtle.dropUp(64)
- turtle.select(slot)
- end
- while(1) do
- planks()
- --sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement