Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Snow Machine
- --Written for Pure Daisy Automation
- --May also need some fixes to pathing, not sure
- snow = "minecraft:snow_block"
- function checkMaterial(description)
- if description == snow then
- return true
- else
- return false
- end
- end
- function mineSnow()
- turtle.turnLeft()
- blockPresent, item = turtle.inspect()
- if checkMaterial(item.name) then
- turtle.dig()
- end
- turtle.turnRight()
- end
- function main()
- while true do
- if (turtle.getFuelLevel() == 0) then
- turtle.refuel()
- end
- counter = 0
- for counter=0, 5 do
- mineSnow()
- turtle.forward()
- end
- turtle.turnLeft()
- sleep(5)
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement