Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot_api = require("robot")
- local component = require("component")
- local term = require("term")
- function robot_breakBlock()
- robot_api.swing()
- robot_api.dropDown()
- end
- function start()
- term.clear()
- print("---------- is working -------")
- robot_api.select(1)
- component.inventory_controller.equip()
- item = component.inventory_controller.getStackInInternalSlot(1)
- if item == nil then
- print("Нету в слоте для инструментов!")
- end
- if item.name ~= "minecraft:diamond_pickaxe" then
- print("Нету в слоте для иструментов Алмазной кирки!")
- end
- component.inventory_controller.equip()
- while true do
- robot_breakBlock()
- os.sleep(5)
- end
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement