Advertisement
ExcaliburNUMNUM

placesign.txt

Aug 19th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.61 KB | None | 0 0
  1.  
  2. //Section that determines which way the player is facing. DONT MODIFY
  3. IF(%YAW% >= 135);
  4.     IF(%YAW% <= 225);
  5.         SET(&direction,NORTH);
  6.     ENDIF;
  7. ENDIF;
  8. IF(%YAW% >= 226);
  9.     IF(%YAW% <= 315);
  10.         SET(&direction,EAST);
  11.     ENDIF;
  12. ENDIF;
  13. IF(%YAW% >= 316);
  14.     IF(%YAW% <= 359);
  15.         SET(&direction,SOUTH);
  16.     ENDIF;
  17. ELSEIF(%YAW% >= 0);
  18.     IF(%YAW% <= 45);
  19.         SET(&direction,SOUTH);
  20.     ENDIF;
  21. ENDIF;
  22. IF(%YAW% >= 46);
  23.     IF(%YAW% <= 134);
  24.         SET(&direction,WEST);
  25.     ENDIF;
  26. ENDIF;
  27. //End section
  28.  
  29. //Place Sign on Predetermined block, section.
  30. IF(%HITID% = "gold_block"); //Determines what block you are looking at. replace "gold_block" with wahtaerver material you are using.
  31.     //PLACESIGN(<blank space>,[MCX207],<Material ID>,<bridge size> ; //showgui is optional
  32.     PLACESIGN(,[MCZ205],83,DOWN:4); //showgui is optional
  33.  
  34. ELSEIF((%HITID% = "chest") && (%&direction% = "NORTH"));
  35.     KEYDOWN(42); //must use shift to place on a chest. which is why this command is here.
  36.     WAIT(5t);
  37.     PLACESIGN(,[MCZ203],338,8:0:0:-1);
  38.     KEYUP(42);
  39.  
  40.     //Notice that this sections HITID is identical to the one above. i needed the same block, but a different face of the block to get the sign.
  41.     //COPY below this section to add more
  42. ELSEIF((%HITID% = "chest") && (%&direction% = "SOUTH"));
  43.     KEYDOWN(42);
  44.     WAIT(5t);
  45.     PLACESIGN(,[MCZ203],338,8:0:0:1);
  46.     KEYUP(42);
  47. //COPY above this section to add more
  48. ELSE;//if none of the above conditions are met.... do nothing. or ya know. log some shit.
  49.     LOG(some shit. nothing happend);
  50. ENDIF;
  51. STOP; //END OF SCRIPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement