Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on rightclick with enchanted book:
- if {mp.%UUID of player%} >= 30:
- name of player's tool is "&9&lウォーターボルト"
- if {lv.%UUID of player%} >= 5:
- remove 30 from {mp.%UUID of player%}
- loop 5 times:
- play sound "entity.generic.swim" to all players at player with volume 1 pitch 1
- set {_loc::1} to location of player's head
- set {_loc::2} to {_loc::1}
- set {_loc::3} to {_loc::1}
- set {_v1} to new vector from yaw yaw of {_loc::1} and pitch pitch of {_loc::1}+90
- set {_v2} to new vector from yaw yaw of {_loc::2} and pitch pitch of {_loc::2}
- set {_v3} to new vector from yaw yaw of {_loc::3} and pitch pitch of {_loc::3}
- rotate {_v2} around {_v1} by 30
- rotate {_v3} around {_v1} by -30
- set yaw of {_loc::2} to vector yaw of {_v2}
- set pitch of {_loc::2} to vector pitch of {_v2}
- set yaw of {_loc::3} to vector yaw of {_v3}
- set pitch of {_loc::3} to vector pitch of {_v3}
- 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
- loop 80 times:
- if {_loc::*} is not set:
- stop loop
- loop {_loc::*}:
- show 5 water splash particles at loop-value-2 offset by 0.2, 0.2, 0.2 with speed 0
- set {_loc::%loop-index%} to location 0.25 meter forwards location of loop-value-2
- loop entities in radius 0.5 around loop-value-2:
- loop-entity is not a player
- loop-entity is a living entity
- make player damage loop-entity by 8
- set {_hitflag} to 1
- if {_nohitblockids::*} do not contain id of block at loop-value-2:
- set {_hitflag} to 1
- if {_hitflag} is 1:
- delete {_loc::%loop-index%}
- delete {_hitflag}
- mod(loop-number, 4) is 0
- wait 1 tick
- else:
- send "&cMPが足りません!"
- play sound "ITEM_BOTTLE_FILL_DRAGONBREATH" to player with volume 1 and pitch 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement