Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test = peripheral.wrap("top")
- i=0
- r=0
- for x=0,360,5 do
- i=i+0.1
- test.setAim(x,r*10,10)
- test.shoot()
- print("ARROWS REMAINING: "..tostring(test.getArrowCount()))
- if(test.getArrowCount()<=5)then
- print("RESTOCKING...")
- re = test.restock()
- if(re)then
- print("RESTOCKING SUCCEDED!")
- else
- print("RESTOCKING FAILED!")
- end
- end
- sleep(0.5)
- r=math.sin(i)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement