Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local arg1= ...
- nItems = arg1
- placedFlag = false
- function placeThatShit(items)
- for i=1, items do
- turtle.up()
- turtle.place()
- end
- return true
- end
- function tornaGiu()
- while (placedFlag) do
- turtle.down()
- if(not turtle.down()) then
- break
- end
- end
- end
- while (not placedFlag) do
- if(not placedFlag) then
- if(not turtle.place() and turtle.getItemDetail() ~= nil and not placedFlag) then
- turtle.up()
- else
- placedFlag = placeThatShit(nItems)
- tornaGiu()
- end
- end
- end
Add Comment
Please, Sign In to add comment