Advertisement
Risk_exe

Untitled

Apr 13th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. function Wait_for_minions()
  2. --[[ Write code to detect if blocks are around big cheese ]]
  3. local x = 0;
  4. while x < 4 do
  5. local res = turtle.detect();
  6. if res then
  7. x = x + 1;
  8. turtle.turnRight();
  9. end
  10. end
  11. Redstone_pulse();
  12. end
  13.  
  14. function Redstone_pulse()
  15. redstone.setOutput('front', true);
  16. redstone.setOutput('back', true);
  17. redstone.setOutput('left', true);
  18. redstone.setOutput('right', true);
  19. sleep(0.5);
  20. redstone.setOutput('front', false);
  21. redstone.setOutput('back', false);
  22. redstone.setOutput('left', false);
  23. redstone.setOutput('right', false);
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement