Advertisement
SuzukazeK

Untitled

Apr 17th, 2021
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. on right click with wooden sword:
  2. set {_loc} to location of player
  3. add 1.5 to y-coordinate of {_loc} #目線に合わせる
  4. set {_a2} to yaw of location of player - 270 #yaw 顔の横の向き - 270
  5. set {_a1} to Pitch of location of player * -1 #pitch 顔の高さ * -1
  6. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  7. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  8. set {_y} to cos(90-{_a1}) * 1
  9. loop 20 times:
  10. add {_x} to x-coordinate of {_loc}
  11. add {_y} to y-coordinate of {_loc}
  12. add {_z} to z-coordinate of {_loc}
  13. execute console command "/execute @p ~ ~ ~ particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 10" #{_loc} x y zにパーティクル表示
  14.  
  15. #------------------------------------------------------------------------------------------------------------
  16.  
  17. on right click with stone sword:
  18. set {_loc} to location of player
  19. add 1.5 to y-coordinate of {_loc} #目線に合わせる
  20. set {_a1} to yaw of location of player - 270 #yaw 顔の横の向き - 270
  21. set {_a2} to pitch of location of player * -1 #pitch 顔の高さ * -1
  22. set {_x} to sin(90-{_a2}) * cos({_a1}) * 1
  23. set {_z} to sin(90-{_a2}) * sin({_a1}) * 1
  24. set {_y} to cos(90-{_a2}) * 1
  25. loop 20 times:
  26. add {_x} to x-coordinate of {_loc}
  27. add {_y} to y-coordinate of {_loc}
  28. add {_z} to z-coordinate of {_loc}
  29. if block at {_loc} is not air:
  30. stop
  31. loop living entities in radius 1.5 of {_loc}: #当たったら
  32. loop-entity is not player
  33. stop
  34. execute console command "/execute @p ~ ~ ~ particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 10"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement