Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dropIfFull()
- for i=1,16 do
- turtle.select(i)
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- if itemDetail.name ~= 'minecraft:shears' then
- turtle.dropDown()
- end
- end
- end
- end
- function shear()
- local foundShear = false
- for i=1,16 do
- turtle.select(i)
- local itemDetail = turtle.getItemDetail()
- if itemDetail then
- if itemDetail.name == 'minecraft:shears' then
- turtle.place()
- foundShear = true
- break
- end
- end
- end
- if foundShear == false then
- error()
- end
- end
- while true do
- dropIfFull()
- shear()
- os.sleep(30)
- end
Advertisement
Add Comment
Please, Sign In to add comment