Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- value = rs.getAnalogInput("top")
- if value == 15 then
- while rs.getAnalogInput("top") == 15 do
- if not turtle.attack() then
- os.sleep(0.5)
- end
- end
- end
- os.pullEventRaw("redstone")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement