Checking if two components are equal to each other
For example, I currently have this command:
Continue to help postexecute as @p run execute if items entity @s weapon.offhand book run execute if items entity @s weapon.mainhand minecraft:feather[minecraft:custom_data={quill:inked_quill}] run execute unless items entity @s weapon.mainhand minecraft:feather[minecraft:damage=300] run item modify entity @s weapon.offhand [{"function": "minecraft:set_item","item": "minecraft:writable_book"}]
And instead of checking if minecraft:damage=300, I want to check if minecraft:damage is equal to minecraft:max_damage. Is there a way I can do that?