Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Plattform

a guest Apr 2nd, 2020 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local laenge=25
  2. local breite=25
  3. local halbb=12
  4. local modb=true
  5.  
  6. function setzen()
  7.   if turtle.getItemCount(turtle.getSelectedSlot())>0
  8.     then turtle.placeDown()
  9.     else turtle.select(turtle.getSelectedSlot()+1)
  10.          turtle.placeDown()
  11.   end
  12. end
  13.  
  14. function strecke()
  15.   for j=1,laenge-1 do
  16.     setzen()
  17.     turtle.forward()
  18.   end
  19. end
  20.  
  21. function rechts()
  22.   turtle.turnRight()
  23.   turtle.forward()
  24.   turtle.turnRight()
  25. end
  26.  
  27. function links()
  28.   turtle.turnLeft()
  29.   turtle.forward()
  30.   turtle.turnLeft()
  31. end
  32.  
  33. for i=1,halbb do
  34.   strecke()
  35.   setzen()
  36.   rechts()
  37.   strecke()
  38.   setzen()
  39.   links()
  40. end
  41. if modb then
  42.   strecke()
  43.   setzen()
  44. end
  45. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top