Advertisement
tanisi30

Untitled

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