Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AttackGo(F)
- while (F>0) do
- if not turtle.forward() then
- turtle.attack()
- else
- F=F-1
- end
- end
- end
- function AttackLeft(F,L)
- while(F>0) do
- if not turtle.forward() then
- turtle.dig()
- else
- F=F-1
- end
- end
- turtle.turnLeft()
- while (L>0) do
- if not turtle.forward() then
- turtle.attack()
- turtle.dig()
- else
- L=L-1
- end
- end
- end
- function AttackRight(F,R)
- while(F>0) do
- if not turtle.forward() then
- turtle.dig()
- else
- F=F-1
- end
- end
- turtle.turnRight()
- while (R>0) do
- if not turtle.forward() then
- turtle.attack()
- turtle.dig()
- else
- R=R-1
- end
- end
- end
- function CheckInv()
- for i=1, 16 do
- data=turtle.getItemDetail(i)
- print("Item name:", data.name)
- print("Item damage value:",data.damage)
- print("Item count:",data.count)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement