daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top