Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click with wooden sword:
- set {_loc} to location of player
- add 1.5 to y-coordinate of {_loc} #目線に合わせる
- set {_a2} to yaw of location of player - 270 #yaw 顔の横の向き - 270
- set {_a1} to Pitch of location of player * -1 #pitch 顔の高さ * -1
- set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
- set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
- set {_y} to cos(90-{_a1}) * 1
- loop 20 times:
- add {_x} to x-coordinate of {_loc}
- add {_y} to y-coordinate of {_loc}
- add {_z} to z-coordinate of {_loc}
- 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にパーティクル表示
- #------------------------------------------------------------------------------------------------------------
- on right click with stone sword:
- set {_loc} to location of player
- add 1.5 to y-coordinate of {_loc} #目線に合わせる
- set {_a1} to yaw of location of player - 270 #yaw 顔の横の向き - 270
- set {_a2} to pitch of location of player * -1 #pitch 顔の高さ * -1
- set {_x} to sin(90-{_a2}) * cos({_a1}) * 1
- set {_z} to sin(90-{_a2}) * sin({_a1}) * 1
- set {_y} to cos(90-{_a2}) * 1
- loop 20 times:
- add {_x} to x-coordinate of {_loc}
- add {_y} to y-coordinate of {_loc}
- add {_z} to z-coordinate of {_loc}
- if block at {_loc} is not air:
- stop
- loop living entities in radius 1.5 of {_loc}: #当たったら
- loop-entity is not player
- stop
- 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