Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function findShears()
- for i = 1, 16 do
- turtle.select(i)
- local item = turtle.getItemDetail()
- if item and item.name == "minecraft:shears" then
- return true
- end
- end
- end
- while true do
- if findShears() then
- local state;
- repeat
- turtle.place()
- sleep(1)
- state = turtle.getItemDetail()
- until (not state) or (state.name ~= "minecraft:shears")
- for i = 1, 16 do
- turtle.select(i)
- local item = turtle.getItemDetail()
- if item and item.name:match('wool$') then
- turtle.dropDown()
- end
- end
- sleep(1)
- else
- turtle.turnRight()
- turtle.turnRight()
- turtle.suck()
- turtle.turnRight()
- turtle.turnRight()
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment