tag @s remove basicAttack

tag @s remove grab:airborne
tag @s remove iframes
tag @s remove hitboxIframes
tag @s remove hitboxVictim
tag @s remove attacker
tag @s remove regsword:grab
tag @s remove grab:entityA
tag @s remove grab:entityB
tag @s remove twirlingpierce:grab

tag @s remove domain:active
tag @s remove domain:open
tag @s remove domain:scan
tag @s remove domain:clashfilter

event entity @s attackTarget

scoreboard players set @s grabRange 0
scoreboard players set @s applyBleed 0
scoreboard players set @s bleedDuration 0
scoreboard players set @s rumiaCurse 0
scoreboard players random @s[scores={petID=0}] petID -100000 100000
scoreboard objectives add slash_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] slash_cd 0
scoreboard objectives add twirlingpierce_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] twirlingpierce_cd 0 
scoreboard objectives add bf_add dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] bf_add 0
scoreboard objectives add bfRoll dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] bfRoll 0
scoreboard objectives add clashPower dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] clashPower 0
scoreboard objectives add clashing dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] clashing 0
scoreboard objectives add clash_sensor dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] clash_sensor 0
scoreboard objectives add grabID dummy
scoreboard players random @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] grabID -10000 10000
scoreboard objectives add entityID dummy
scoreboard players random @s[scores={entityID=0}] entityID -10000 10000
scoreboard objectives add kbHori dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] kbHori 1
scoreboard objectives add kbVerti dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] kbVerti 1

tag @s[hasitem={item=tool:vessel_config,location=slot.weapon.mainhand}] add openmenu:playerprofile
tag @s[hasitem={item=tool:vessel_config,quantity=0}] remove openmenu:playerprofile
scoreboard objectives add grab_sensor dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] grab_sensor 0
scoreboard objectives add skillatk_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] skillatk_cd 0
scoreboard objectives add burst_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] burst_cd 0
scoreboard objectives add chargedatk_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] chargedatk_cd 0
scoreboard objectives add kbMultiplier dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] kbMultiplier 0
scoreboard objectives add parry dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] parry 0
scoreboard objectives add superarmor dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] superarmor 0
scoreboard objectives add ba_reset dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] ba_reset 0
scoreboard objectives add basic_attack dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] basic_attack 0
scoreboard objectives add ba_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] ba_cd 0
scoreboard objectives add dash_cd dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] dash_cd 0
scoreboard objectives add dashing dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] dashing 0
scoreboard objectives add has_skill dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] has_skill 0
scoreboard objectives add sprintClick dummy
scoreboard objectives add sneakClick dummy
scoreboard objectives add leftClick dummy
scoreboard objectives add rightClick dummy
scoreboard objectives add jumpClick dummy
scoreboard objectives add hitboxRange dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] hitboxRange 0
scoreboard objectives add potentialTick dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] potentialTick 0
scoreboard objectives add evadingDamage dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] evadingDamage 0
scoreboard objectives add takingHit dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] takingHit 0
scoreboard objectives add stun dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] stun 0
scoreboard objectives add stunTime dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] stunTime 0
scoreboard objectives add damageOutput dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] damageOutput 0
scoreboard objectives add block dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] block 0
scoreboard objectives add emotionP dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] emotionP 0
scoreboard objectives add stamina dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] stamina 0
scoreboard objectives add health_sensor dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] health_sensor 0
scoreboard objectives add magicule dummy
scoreboard players set @s[type=!xp_orb,type=!item,family=!misc,family=!projectile,family=custom_mob] magicule 0
function resetCD