Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by Wizard_Alfren--
- --Created on 13 April 2020--
- --Current as of 16 April 2020--
- --This Lua script is for a Shearing Turtle--
- --Place the turtle on the ground--
- --The turtle will rotate 4 times in a clockwise direction using the EQUIPPED shears every 15 seconds--
- --It does not require fuel or shears to be in the inventory--
- --Place a chest on top of the turtle for item depositing--
- term.clear()
- term.setCursorPos(1,1)
- print('Shearing...')
- count = 0
- iteration = 1
- while true do
- i = 0
- while i ~= 4 do
- turtle.attack()
- turtle.turnRight()
- i = i + 1
- end
- ii = 1
- while ii ~= 17 do
- turtle.select(ii)
- if turtle.getItemCount() > 0 then
- if turtle.getItemDetail(ii).name == 'minecraft:wool' then
- count = count + turtle.getItemCount(ii)
- term.setCursorPos(1,3)
- term.clearLine()
- print('I\'ve collected',count,'wool so far!')
- end
- end
- turtle.dropUp()
- ii = ii + 1
- end
- term.setCursorPos(1,5)
- term.clearLine()
- print('Completed',iteration,'iteration(s)')
- iteration = iteration + 1
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment