SHOW:
|
|
- or go back to the newest paste.
| 1 | local checkInterval = 60 -- seconds | |
| 2 | local lastCheck = os.clock() | |
| 3 | ||
| 4 | while true do | |
| 5 | turtle.attack() | |
| 6 | sleep(0.1) | |
| 7 | ||
| 8 | if os.clock() - lastCheck >= checkInterval then | |
| 9 | for slot = 1, 16 do | |
| 10 | turtle.select(slot) | |
| 11 | local item = turtle.getItemDetail() | |
| 12 | if item then | |
| 13 | - | if item.name == "minecraft:bone" then |
| 13 | + | turtle.dropDown() |
| 14 | - | -- Turn around to drop behind |
| 14 | + | |
| 15 | - | turtle.turnLeft() |
| 15 | + | |
| 16 | - | turtle.turnLeft() |
| 16 | + | |
| 17 | - | turtle.drop() |
| 17 | + | |
| 18 | - | turtle.turnLeft() |
| 18 | + | |
| 19 | - | turtle.turnLeft() |
| 19 | + | |
| 20 | - | else |
| 20 | + |