SHsuperCM

SHCMTrig

Nov 28th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. SHCMTrig is a trigonometry tool that allows to do tasks such as
  2. Sine and Cosine along with a few other features that might help.
  3.  
  4. Before doing anything, Make sure you used "/function shcmtrig:setup"
  5. to allow SHCMTrig to place it's essentials into the world.
  6.  
  7. Note that the basic functions(sine and cosine) take 0 ticks to run,
  8. Meaning you can use them within other functions and chain commands!
  9.  
  10. To use the basic functions(sine and cosine) you need to set the score
  11. of x on the SHCMTrig objective(x is a fake player) to the number you'd
  12. like to use the function on with the units being the first decimal
  13. place of the angle(e.g. 90.0 degrees = 900 and -378.325 degrees = -3783).
  14. Then, Run either "/function shcmtrig:sine" or "/function shcmtrig:cosine".
  15. Now, The score of 'a' on the SHCMTrig objective is the answer and is
  16. between -100 and 100.
  17.  
  18. Another thing is you can add a manual offset by changing the score of
  19. 'offset' on the SHCMTrig objective.
Advertisement
Add Comment
Please, Sign In to add comment