Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- os.loadAPI("moveAPI.lua")
- amount = tonumber(args[1])
- function select(item)
- local slot = item * 3 - 2
- turtle.select(slot)
- if turtle.getItemCount() < 10 then
- turtle.select(slot + 1)
- turtle.transferTo(slot)
- turtle.select(slot + 2)
- turtle.transferTo(slot)
- turtle.select(slot)
- end
- end
- function place()
- select(1)
- moveAPI.move("pu pd b pf r pu pd b pf tl")
- select(2)
- moveAPI.move("pu pd b pf b b r")
- select(1)
- moveAPI.move("pu pd b pf tl")
- select(2)
- moveAPI.move("pu pd b pf")
- select(1)
- moveAPI.move("pu pd b pf tr")
- select(3)
- moveAPI.move("d pf u pf u pf d tl")
- select(1)
- moveAPI.move("pu pd b pf")
- end
- for i = 1, amount do
- place()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement