Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- exercise6_2
- -- 上面(top)にあるレバーONで討伐開始
- -- ############## Functions #############
- function dropAllItems()
- for i=1,16 do
- turtle.select(i)
- turtle.dropDown()
- end
- turtle.select(1) -- 選択スロットをスロット1に戻す。
- end
- -- ############## Main ###############
- while true do
- while rs.getInput("top") do
- turtle.attack()
- turtle.dropDown()
- dropAllItems()
- end
- os.sleep(1)
- end
Add Comment
Please, Sign In to add comment