Variouscacti

Inverse Tangent Function Hypixel Housing

Jun 20th, 2024 (edited)
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. // Inputs:
  2. // for yaw: stat (l1) = z leg, stat (l2) = x leg
  3. // for pitch: stat (l1) = xz leg, stat (l2) = y leg
  4. // Output: stat @out = angle in Minecraft
  5. // Temps: teamstat _0 placeholderTeam, teamstat _1 placeholderTeam, teamstat _2 placeholderTeam, stat _0, stat _1, globalstat _0, globalstat _1
  6.  
  7. // Make sure you set "placeholderTeam" to one of the teams in your house
  8.  
  9. if () {
  10.  
  11. teamstat _0 placeholderTeam = %stat.player/(l1)%
  12. teamstat _0 placeholderTeam += 4294967296
  13. teamstat _0 placeholderTeam /= 4294967296
  14. teamstat _0 placeholderTeam *= 2
  15. teamstat _0 placeholderTeam -= 1
  16.  
  17. stat (l1) *= "%stat.team/_0 placeholderTeam%"
  18.  
  19. teamstat _1 placeholderTeam = %stat.player/(l2)%
  20. teamstat _1 placeholderTeam += 4294967296
  21. teamstat _1 placeholderTeam /= 4294967296
  22. teamstat _1 placeholderTeam *= 2
  23. teamstat _1 placeholderTeam -= 1
  24.  
  25. stat (l2) *= "%stat.team/_1 placeholderTeam%"
  26.  
  27. stat _0 = %stat.player/(l1)%
  28. stat _0 -= %stat.player/(l2)%
  29.  
  30. globalstat _0 = %stat.player/(l2)%
  31. globalstat _0 -= %stat.player/(l1)%
  32. globalstat _0 += 4294967296
  33. globalstat _0 /= 4294967296
  34. globalstat _0 *= %stat.player/_0%
  35. globalstat _0 += %stat.player/(l2)%
  36. globalstat _0 *= %stat.global/_0%
  37. globalstat _0 *= 1000000000
  38. globalstat _0 /= %stat.player/(l2)%
  39. globalstat _0 /= %stat.player/(l1)%
  40.  
  41. stat _1 = %stat.global/_0%
  42. stat _1 *= %stat.player/_1%
  43.  
  44. stat @out = %stat.player/_1%
  45. stat @out /= -21507006760
  46. stat @out += 159314220
  47. stat _1 /= 1000000000
  48.  
  49. }
  50.  
  51. if () {
  52.  
  53. stat @out *= %stat.player/_1%
  54. stat @out -= 327622764000000000
  55. stat @out /= 1000000000
  56. stat @out *= %stat.player/_1%
  57. stat @out /= 1000000000
  58. stat @out *= %stat.global/_0%
  59. globalstat _0 *= 1000000000
  60. stat @out += %stat.global/_0%
  61.  
  62. globalstat _1 = 1570796326794896619
  63. globalstat _1 -= %stat.player/@out%
  64. globalstat _1 -= %stat.player/@out%
  65.  
  66. teamstat _2 placeholderTeam = %stat.player/(l2)%
  67. teamstat _2 placeholderTeam -= %stat.player/(l1)%
  68. teamstat _2 placeholderTeam += 4294967296
  69. teamstat _2 placeholderTeam /= 4294967296
  70. teamstat _2 placeholderTeam *= %stat.global/_1%
  71.  
  72. stat @out += "%stat.team/_2 placeholderTeam%"
  73.  
  74. globalstat _1 = 3141592653589793238
  75. globalstat _1 -= %stat.player/@out%
  76. globalstat _1 -= %stat.player/@out%
  77.  
  78. teamstat _0 placeholderTeam -= 1
  79. teamstat _0 placeholderTeam /= 2
  80. teamstat _0 placeholderTeam *= %stat.global/_1%
  81. teamstat _0 placeholderTeam -= %stat.player/@out%
  82. teamstat _0 placeholderTeam *= "%stat.team/_1 placeholderTeam%"
  83.  
  84. stat @out = "%stat.team/_0 placeholderTeam%"
  85. stat @out /= 17453292519943
  86.  
  87. }
Advertisement
Add Comment
Please, Sign In to add comment