Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. var times = 0;
  2.  
  3. while(times != 20)
  4. {
  5. for(var i = 1; i < 4; i++)
  6. {
  7. actions.setRedstoneOutput(getFace(i), true);
  8. actions.sleep(500);
  9. actions.setRedstoneOutput(getFace(i), false);
  10. }
  11. times++;
  12. }
  13.  
  14. function getFace(i)
  15. {
  16. if(i == 1)
  17. {
  18. return "north";
  19. }
  20. else if(i == 2)
  21. {
  22. return "east";
  23. }
  24. else if(i == 3)
  25. {
  26. return "south";
  27. }
  28. else if(i == 4)
  29. {
  30. return "west";
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement