# mending_book

execute unless score mending_book less_op_villagers matches 1 run tellraw @s ["",{"text":"Mending Book","color":"blue","hoverEvent":{"action":"show_item","contents":{"id":"minecraft:enchanted_book","tag":"{StoredEnchantments:[{id:\"minecraft:mending\",lvl:1}]}"}}},"  ->  ",{"text":"UNCHANGED","color":"green"}]
execute if score mending_book less_op_villagers matches 1 if score max_level_book less_op_villagers matches 1 run tellraw @s ["",{"text":"Mending Book","color":"blue","hoverEvent":{"action":"show_item","contents":{"id":"minecraft:enchanted_book","tag":"{StoredEnchantments:[{id:\"minecraft:mending\",lvl:1}]}"}}},"  ->  ",{"text":"Unbreaking Book","color":"yellow","hoverEvent":{"action":"show_item","contents":{"id":"minecraft:enchanted_book","tag":"{StoredEnchantments:[{id:\"minecraft:unbreaking\",lvl:2}]}"}}}]
execute if score mending_book less_op_villagers matches 1 unless score max_level_book less_op_villagers matches 1 run tellraw @s ["",{"text":"Mending Book","color":"blue","hoverEvent":{"action":"show_item","contents":{"id":"minecraft:enchanted_book","tag":"{StoredEnchantments:[{id:\"minecraft:mending\",lvl:1}]}"}}},"  ->  ",{"text":"Unbreaking Book","color":"yellow","hoverEvent":{"action":"show_item","contents":{"id":"minecraft:enchanted_book","tag":"{StoredEnchantments:[{id:\"minecraft:unbreaking\",lvl:3}]}"}}}]
