tag @s remove critready
attribute @s attack_damage modifier remove 7a37c62a-b1ca-4186-a0c0-f49c6ee0c4c0
execute if entity @s[predicate=survivalplus:critstar,predicate=survivalplus:10chance] run function survivalplus:tools/dealdmg/critready
execute if entity @s[nbt={SelectedItem:{components:{"minecraft:custom_data":{crits:tag}}}},predicate=survivalplus:10chance] run function survivalplus:tools/dealdmg/critready
execute if score bookstats hardmode matches 5 if predicate survivalplus:10chance run function survivalplus:tools/dealdmg/critready

attribute @s attack_damage modifier remove b5b7c819-fc0d-4552-a133-2941f4339b20