#attack speed
function main:settings/stats/attack_speed/calculation {"max":7}
scoreboard players set @s weapon_combo_reset 30
scoreboard players operation @s attack_speed = @s attack_speed_max
execute at @s run teleport @s ~ ~ ~ ~ ~-1
scoreboard players set @s recoil 2
function main:mechanics/damage/enemy/calculation {"id":id1,"character":sorcerer,"type":"weapon","damage":40,"stat":"MTC","local_bonus":0,"indicator":12}

playsound entity.illusioner.cast_spell master @a ~ ~ ~ 3 0.9
playsound block.amethyst_block.chime master @a ~ ~ ~ 3 0.9
playsound block.amethyst_block.chime master @a ~ ~ ~ 3 0.9
playsound block.amethyst_block.chime master @a ~ ~ ~ 3 0.9

execute at @s anchored eyes run function main:mechanics/projectile/projectile {"id":id1,"character":sorcerer,"type":weapon,"distance":50,"texture":"minecraft:amethyst_block","size":"0.2f,0.2f,0.3f","translation":"-0.1f,-0.32f,-0.15f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":1}

execute at @s positioned ^ ^1 ^1 run particle enchant ~ ~ ~ 0.25 0.25 0.25 1 15

execute at @s positioned ^ ^ ^1 run function main:particles/circle_small {particle:reverse_portal}

function main:mechanics/effects/screenshake/start {duration:5,strength:10}