Reactor_Games

Untitled

Mar 19th, 2021 (edited)
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. local robot = require("robot")
  2. while true do
  3. if not robot.detect() then
  4.     --Блока нет
  5.     robot.forward()
  6. else
  7.     --Блок есть
  8.     robot.use()
  9. end
  10.     end
Add Comment
Please, Sign In to add comment