Advertisement
Sir_Popsilots

Isgood

Feb 28th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. function IsGood()
  2.     local GivenItemName = turtle.getItemDetail(1).name
  3.     local IsTrue = false
  4.     if GivenItemName == "minecraft:oak_planks" then
  5.         return true
  6.     end
  7.     return false
  8.    
  9. end
  10. print("gimme oak planks bitch")
  11. local Whilecondition = true
  12. while Whilecondition do
  13.     if IsGood then
  14.         turtle.up()
  15.         turtle.turnLeft()
  16.         turtle.turnLeft()
  17.         turtle.turnLeft()
  18.         turtle.turnLeft()
  19.         turtle.down()
  20.         Whilecondition = false
  21.     else
  22.         turtle.turnRight()
  23.         turtle.drop()
  24.         turtle.turnLeft()
  25.     end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement