Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- r = require("robot")
- g = component.geolyzer
- function checkAxe()
- if r.count(1) == 0.0 then
- r.select(16)
- r.transferTo(1)
- r.select(1)
- end
- end
- function getNewAxe()
- if r.count(16) == 0.0 then
- r.turnRight()
- r.select(16)
- r.suck()
- r.select(1)
- r.turnLeft()
- end
- end
- while true do
- r.select(1)
- for i = 0,2,1 do
- r.swingUp()
- checkAxe()
- r.up()
- end
- for i=0,2,1 do
- r.swing()
- checkAxe()
- r.down()
- end
- r.swing()
- checkAxe()
- for i=2,15,1 do
- r.select(i)
- r.drop()
- end
- r.select(1)
- getNewAxe()
- while g.analyze(3)["name"] ~= "minecraft:log" do
- os.sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement