G2A Many GEOs
SHARE
TWEET

kyoten

kssr3951 May 5th, 2018 (edited) 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. dofile("lib_turtle_0.2.1")
  2. DOWN_COUNT = 0
  3. torchCnt = 0
  4. levelCnt = 0
  5. local function myUserEvent(para1)
  6.   if 0 == para1 then
  7.     torchCnt = 1
  8.   elseif 1 == para1 then
  9.     torchCnt = torchCnt + 1
  10.     if torchCnt == 2 or torchCnt == 7 or torchCnt == 9 or torchCnt == 14 then
  11.       doCommand("le1le1 rr ")
  12.     end
  13.   elseif 2 == para1 then
  14.     if torchCnt == 2 or torchCnt == 7 or torchCnt == 9 or torchCnt == 14 then
  15.       doCommand("s4 p0 s1 ")
  16.     end
  17.   elseif 3 == para1 then
  18.     doCommand("s2 t2,64 s3 t2,64 s5 t2,64 s6 t2,64 s7 t2,64 s8 t2,64 s9 t2,64"
  19.            .. "s10t2,64 s11t2,64 s12t2,64 s13t2,64 s14t2,64 s15t2,64 s16t2,64 ")
  20.   elseif 4 == para1 then
  21.     if 0 < levelCnt then
  22.       doCommand(string.rep("e2d e2d ", levelCnt))
  23.     end
  24.   elseif 5 == para1 then
  25.     doCommand(string.rep("e0u e0u ", levelCnt) .. " r s1p1 e0u p1p0 e2dl ")
  26.   elseif 6 == para1 then
  27.     if levelCnt == 0 then
  28.       doCommand("p2 ")
  29.     end
  30.   elseif 7 == para1 then
  31.     levelCnt = levelCnt + 1
  32.   end
  33. end
  34. userEventHandler = myUserEvent;
  35. print("slot1 : cobblestone x 64")
  36. print("slot2 : ladder x 64")
  37. print("slot3 : ladder x 16")
  38. print("slot4 : torch x 64")
  39. print("slot5 : chest x 2")
  40. -- print("required fuel level : "); -- TODO
  41. print("hit any key when ready.")
  42. read()
  43. if 0 < DOWN_COUNT then
  44.   doCommand("e2d (s1(p1l)4 s2e2d p0)" .. tostring(DOWN_COUNT) .. " ")
  45.   doCommand("(s1(p1l)4 s3 e2d p0)16 (e0u)6 s1p2 ")
  46. end
  47. doCommand("s1 (e1f)2 rp2p1e0up1p0ld ")
  48. doCommand("e2d e2s1p2(p1l)4 u s5p2 le1fe2de2dus1p2(p1l)4us5p2lle1fl v3 ")
  49. doCommand("("
  50.        .. "  s1(v0 (e1f r v6 p1 e0u p1p0 v1 d v2 l)14 v6 p1 u p1p0 d l)4 rre1ll v4 v3 v5 "
  51.        .. "  l e1fr s1 ("
  52.        .. "              (e1fv6 e0up0d)13 e1fle1fl "
  53.        .. "              (e1fv6 e0up0d)13 e1fre1fr "
  54.        .. "            )6"
  55.        .. "              (e1fv6 e0up0d)13 "
  56.        .. "            ll (e1f)13 l (e1f)13 l v4 v3 v7 v5 "
  57.        .. "  "
  58.        .. ")2 ")
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