Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var times = 0;
- while(times != 20)
- {
- for(var i = 1; i < 4; i++)
- {
- actions.setRedstoneOutput(getFace(i), true);
- actions.sleep(500);
- actions.setRedstoneOutput(getFace(i), false);
- }
- times++;
- }
- function getFace(i)
- {
- if(i == 1)
- {
- return "north";
- }
- else if(i == 2)
- {
- return "east";
- }
- else if(i == 3)
- {
- return "south";
- }
- else if(i == 4)
- {
- return "west";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement