Advertisement
Guest User

Untitled

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