guitarplayer616

build_wither

May 31st, 2022 (edited)
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  1. local ws = {
  2.     skull = 1,
  3.     sand = 2,
  4. }
  5.  
  6. function ws.strafe_left(n)
  7.     turtle.turnLeft()
  8.     for i=1,n do
  9.         turtle.forward()
  10.     end
  11.     turtle.turnRight()
  12. end
  13.  
  14. function ws.strafe_right(n)
  15.     turtle.turnRight()
  16.     for i=1,n do
  17.         turtle.forward()
  18.     end
  19.     turtle.turnLeft()
  20. end
  21.  
  22. function ws.build_wither()
  23.     turtle.select(ws.sand)
  24.     turtle.down()
  25.     turtle.down()
  26.     turtle.forward()
  27.     turtle.forward()
  28.     turtle.down()
  29.     turtle.down()
  30.     turtle.place()
  31.     turtle.up()
  32.     turtle.place()
  33.     ws.strafe_right(1)
  34.     turtle.place()
  35.     ws.strafe_left(2)
  36.     turtle.place()
  37.     turtle.up()
  38.     turtle.select(ws.skull)
  39.     turtle.place()
  40.     ws.strafe_right(1)
  41.     turtle.place()
  42.     ws.strafe_right(1)
  43.     turtle.place()
  44.     ws.strafe_left(1)
  45.     turtle.back()
  46.     turtle.back()
  47.     turtle.up()
  48.     turtle.up()
  49. end
  50.  
  51. ws.build_wither()
Add Comment
Please, Sign In to add comment