summon item ~ ~ ~ {Tags:["water_mine","unspellable","attack","EB","init","nonlocking"],PickupDelay:32767,Item:{id:"minecraft:slime_ball",Count:1b,tag:{CustomModelData:8010}}}
# X rotation
scoreboard players set min rng -180
scoreboard players set max rng 179
function rng:interval
execute store result entity @e[tag=water_mine,tag=init,limit=1] Rotation[0] float 1 run scoreboard players get out rng
# Y rotation
scoreboard players set min rng -40
scoreboard players set max rng 65
function rng:interval
execute store result entity @e[tag=water_mine,tag=init,limit=1] Rotation[1] float 1 run scoreboard players get out rng
# Motion
execute as @e[tag=water_mine,tag=init,limit=1] at @s run function attacks:water_mine/launch
# Fuse timer
scoreboard players set @e[tag=water_mine,tag=init,limit=1] countdown 200

tag @e[tag=water_mine,tag=init,limit=1] remove init
