execute as @s[scores={grt_trig=1,grt=1..60,grt_cmb=0..3},hasitem=[{location=slot.weapon.mainhand,item=pixel:netherite_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:iron_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:stone_greatsword,quantity=0}]] run scoreboard players set @s grt_trig 0

execute as @s[scores={grt_trig=0,grt=0..60,grt_cmb=0..3},hasitem=[{location=slot.weapon.mainhand,item=pixel:netherite_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:iron_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:stone_greatsword,quantity=0}]] run scoreboard players set @s grt 0

execute as @s[scores={grt_trig=0,grt=0,grt_cmb=1..3},hasitem=[{location=slot.weapon.mainhand,item=pixel:netherite_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:iron_greatsword,quantity=0},{location=slot.weapon.mainhand,item=pixel:stone_greatsword,quantity=0}]] run scoreboard players set @s grt_cmb 0

scoreboard players set @s attacking 0