Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dofile("lib_turtle_0.2.1")
- DOWN_COUNT = 0
- torchCnt = 0
- levelCnt = 0
- local function myUserEvent(para1)
- if 0 == para1 then
- torchCnt = 1
- elseif 1 == para1 then
- torchCnt = torchCnt + 1
- if torchCnt == 2 or torchCnt == 7 or torchCnt == 9 or torchCnt == 14 then
- doCommand("le1le1 rr ")
- end
- elseif 2 == para1 then
- if torchCnt == 2 or torchCnt == 7 or torchCnt == 9 or torchCnt == 14 then
- doCommand("s4 p0 s1 ")
- end
- elseif 3 == para1 then
- doCommand("s2 t2,64 s3 t2,64 s5 t2,64 s6 t2,64 s7 t2,64 s8 t2,64 s9 t2,64"
- .. "s10t2,64 s11t2,64 s12t2,64 s13t2,64 s14t2,64 s15t2,64 s16t2,64 ")
- elseif 4 == para1 then
- if 0 < levelCnt then
- doCommand(string.rep("e2d e2d ", levelCnt))
- end
- elseif 5 == para1 then
- doCommand(string.rep("e0u e0u ", levelCnt) .. " r s1p1 e0u p1p0 e2dl ")
- elseif 6 == para1 then
- if levelCnt == 0 then
- doCommand("p2 ")
- end
- elseif 7 == para1 then
- levelCnt = levelCnt + 1
- end
- end
- userEventHandler = myUserEvent;
- print("slot1 : cobblestone x 64")
- print("slot2 : ladder x 64")
- print("slot3 : ladder x 16")
- print("slot4 : torch x 64")
- print("slot5 : chest x 2")
- -- print("required fuel level : "); -- TODO
- print("hit any key when ready.")
- read()
- if 0 < DOWN_COUNT then
- doCommand("e2d (s1(p1l)4 s2e2d p0)" .. tostring(DOWN_COUNT) .. " ")
- doCommand("(s1(p1l)4 s3 e2d p0)16 (e0u)6 s1p2 ")
- end
- doCommand("s1 (e1f)2 rp2p1e0up1p0ld ")
- doCommand("e2d e2s1p2(p1l)4 u s5p2 le1fe2de2dus1p2(p1l)4us5p2lle1fl v3 ")
- doCommand("("
- .. " s1(v0 (e1f r v6 p1 e0u p1p0 v1 d v2 l)14 v6 p1 u p1p0 d l)4 rre1ll v4 v3 v5 "
- .. " l e1fr s1 ("
- .. " (e1fv6 e0up0d)13 e1fle1fl "
- .. " (e1fv6 e0up0d)13 e1fre1fr "
- .. " )6"
- .. " (e1fv6 e0up0d)13 "
- .. " ll (e1f)13 l (e1f)13 l v4 v3 v7 v5 "
- .. " "
- .. ")2 ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement