Advertisement
Nibor1299

Blockprüfer

May 19th, 2022
608
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. while true do
  2.     sleep(5)
  3.     if redstone.getInput("top") == true then
  4.         term.clear()
  5.         term.setCursorPos(1,1)
  6.         print("Truhe Voll!!!")
  7.     else
  8.         if turtle.compare() == true then
  9.             term.clear()
  10.             term.setCursorPos(1,1)
  11.             print("Block :)")
  12.             turtle.dig()
  13.             turtle.dropDown(1)
  14.         else
  15.             term.clear()
  16.             term.setCursorPos(1,1)
  17.             print("Falscher Block oder kein Item")
  18.             end
  19.         end
  20.     end
Advertisement
RAW Paste Data Copied
Advertisement