Advertisement
akon1248

waterbolt

Jul 23rd, 2019
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. on rightclick with enchanted book:
  2. name of player's tool is "&9&lウォーターボルト"
  3. if {mp.%UUID of player%} >= 30:
  4. remove 30 from {mp.%UUID of player%}
  5. loop 5 times:
  6. play sound "entity.generic.swim" to all players at player with volume 1 pitch 1
  7. set {_loc::1} to location of player's head
  8. set {_loc::2} to {_loc::1}
  9. set {_loc::3} to {_loc::1}
  10. set {_v1} to new vector from yaw yaw of {_loc::1} and pitch pitch of {_loc::1}+90
  11. set {_v2} to new vector from yaw yaw of {_loc::2} and pitch pitch of {_loc::2}
  12. set {_v3} to new vector from yaw yaw of {_loc::3} and pitch pitch of {_loc::3}
  13. rotate {_v2} around {_v1} by 30
  14. rotate {_v3} around {_v1} by -30
  15. set yaw of {_loc::2} to vector yaw of {_v2}
  16. set pitch of {_loc::2} to vector pitch of {_v2}
  17. set yaw of {_loc::3} to vector yaw of {_v3}
  18. set pitch of {_loc::3} to vector pitch of {_v3}
  19. set {_nohitblockids::*} to 0, 6, 8, 9, 10, 11, 30, 31, 32, 36, 37, 38, 39, 40, 50, 51, 55, 63, 65, 68, 69, 70, 72, 76, 77, 90, 93, 94, 119, 131, 143, 147, 148, 149, 150, 175, 209 and 425
  20. loop 80 times:
  21. if {_loc::*} is not set:
  22. stop loop
  23. loop {_loc::*}:
  24. show 5 water splash particles at loop-value-2 offset by 0.2, 0.2, 0.2 with speed 0
  25. set {_loc::%loop-index%} to location 0.25 meter forwards location of loop-value-2
  26. loop entities in radius 0.5 around loop-value-2:
  27. loop-entity is not a player
  28. loop-entity is a living entity
  29. make player damage loop-entity by 8
  30. set {_hitflag} to 1
  31. if {_nohitblockids::*} do not contain id of block at loop-value-2:
  32. set {_hitflag} to 1
  33. if {_hitflag} is 1:
  34. delete {_loc::%loop-index%}
  35. delete {_hitflag}
  36. mod(loop-number, 4) is 0
  37. wait 1 tick
  38. else:
  39. send "&cMPが足りません!"
  40. play sound "ITEM_BOTTLE_FILL_DRAGONBREATH" to player with volume 1 and pitch 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement