Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Program made by gungun974
- mine is a program designed to undermine
- ]]--
- -- declaration
- local succes, data = turtle.inspect()
- -- function
- function getBlock( block )
- if succes then
- if data.name == block then
- return true
- succes, data = turtle.inspect()
- else
- return false
- succes, data = turtle.inspect()
- end
- else
- return false
- succes, data = turtle.inspect()
- end
- end
- -- start
- -- loop
- while true do
- if getBlock("minecraft:iron_ore") then
- print(getBlock("minecraft:iron_ore"))
- turtle.dig()
- end
- end
- while false do
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- if getBlock("minecraft:iron_ore") then
- turtle.dig()
- end
- turtle.digUp()
- turtle.up()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement