Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function IsGood()
- local GivenItemName = turtle.getItemDetail(1).name
- local IsTrue = false
- if GivenItemName == "minecraft:oak_planks" then
- return true
- end
- return false
- end
- print("gimme oak planks bitch")
- local Whilecondition = true
- while Whilecondition do
- if IsGood then
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.down()
- Whilecondition = false
- else
- turtle.turnRight()
- turtle.drop()
- turtle.turnLeft()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement