Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Section that determines which way the player is facing. DONT MODIFY
- IF(%YAW% >= 135);
- IF(%YAW% <= 225);
- SET(&direction,NORTH);
- ENDIF;
- ENDIF;
- IF(%YAW% >= 226);
- IF(%YAW% <= 315);
- SET(&direction,EAST);
- ENDIF;
- ENDIF;
- IF(%YAW% >= 316);
- IF(%YAW% <= 359);
- SET(&direction,SOUTH);
- ENDIF;
- ELSEIF(%YAW% >= 0);
- IF(%YAW% <= 45);
- SET(&direction,SOUTH);
- ENDIF;
- ENDIF;
- IF(%YAW% >= 46);
- IF(%YAW% <= 134);
- SET(&direction,WEST);
- ENDIF;
- ENDIF;
- //End section
- //Place Sign on Predetermined block, section.
- IF(%HITID% = "gold_block"); //Determines what block you are looking at. replace "gold_block" with wahtaerver material you are using.
- //PLACESIGN(<blank space>,[MCX207],<Material ID>,<bridge size> ; //showgui is optional
- PLACESIGN(,[MCZ205],83,DOWN:4); //showgui is optional
- ELSEIF((%HITID% = "chest") && (%&direction% = "NORTH"));
- KEYDOWN(42); //must use shift to place on a chest. which is why this command is here.
- WAIT(5t);
- PLACESIGN(,[MCZ203],338,8:0:0:-1);
- KEYUP(42);
- //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.
- //COPY below this section to add more
- ELSEIF((%HITID% = "chest") && (%&direction% = "SOUTH"));
- KEYDOWN(42);
- WAIT(5t);
- PLACESIGN(,[MCZ203],338,8:0:0:1);
- KEYUP(42);
- //COPY above this section to add more
- ELSE;//if none of the above conditions are met.... do nothing. or ya know. log some shit.
- LOG(some shit. nothing happend);
- ENDIF;
- STOP; //END OF SCRIPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement