Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local r = require("robot")
- local cmp = require("component")
- local computer = require("computer")
- local term = require('term')
- local event = require('event')
- local gz = cmp.geolyzer
- function forward()
- cmp.tractor_beam.suck()
- r.select(1)
- while r.detect() do
- r.swing()
- end
- if not r.forward() then
- forward()
- end
- end
- function up()
- while r.detectUp() do
- r.swingUp()
- end
- if not r.up() then
- up()
- end
- end
- function down()
- while r.detectDown() do
- r.swingDown()
- end
- if not r.down() then
- down()
- end
- end
- --высадка
- for i=1,8 do
- forward()
- end
- --if block == 'minecraft:air' then
- for i=1,2 do
- r.select(1)
- for i=1,5 do
- r.place()
- r.turnLeft()
- forward()
- forward()
- r.turnRight()
- end
- r.turnAround()
- forward()
- forward()
- r.turnAround()
- for i=1,5 do
- r.place()
- r.turnRight()
- forward()
- forward()
- r.turnLeft()
- end
- r.turnAround()
- forward()
- forward()
- r.turnAround()
- end
- --высадка
- while true do
- print(cmp.experience.level())
- if cmp.inventory_controller.getStackInInternalSlot(1) == nil then
- print('в моем анусе зияет пустота')
- --print ('мацалаца, ми не трогай мои саплинги')
- --end
- elseif cmp.inventory_controller.getStackInInternalSlot(1).name == 'minecraft:sapling' then
- print ('мацалаца, ми не трогай мои саплинги')
- else
- print('саженец засунь мудила')
- end
- --проверка поля
- for i=1,4 do
- forward()
- end
- r.select(1)
- r.turnLeft()
- for i=1,2 do
- for i=1,5 do
- local block = gz.analyze(4).name
- if block=='minecraft:log' then
- r.turnRight()
- r.swing()
- r.select(2)
- os.sleep(1)
- for i=1,11 do
- cmp.inventory_controller.equip()
- up()
- cmp.inventory_controller.equip()
- r.swing()
- end
- for i=1,11 do
- down()
- cmp.tractor_beam.suck()
- end
- r.select(2)
- r.select(1)
- r.place()
- r.turnLeft()
- end
- local block = gz.analyze(5).name
- if block=='minecraft:log' then
- r.turnLeft()
- r.swing()
- r.select(2)
- os.sleep(1)
- for i=1,11 do
- cmp.inventory_controller.equip()
- up()
- cmp.inventory_controller.equip()
- r.swing()
- end
- for i=1,11 do
- down()
- cmp.tractor_beam.suck()
- end
- r.select(2)
- r.select(1)
- r.place()
- r.turnRight()
- end
- forward()
- forward()
- end
- r.turnRight()
- for i=1,4 do
- forward()
- end
- r.turnRight()
- end
- r.turnLeft()
- for i=1,3 do
- forward()
- end
- r.turnAround()
- r.back()
- r.turnRight()
- for c = 3, 16 do
- r.select(c)
- if r.count() > 0 then
- r.drop()
- else
- r.select(1)
- break
- end
- end
- r.turnLeft()
- local r = require("robot")
- local cmp = require("component")
- local computer = require("computer")
- local term = require('term')
- local event = require('event')
- local gz = cmp.geolyzer
- r.turnLeft()
- r.select(3)
- cmp.inventory_controller.equip()
- r.drop()
- os.sleep(60)
- r.suck()
- cmp.inventory_controller.equip()
- r.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement