execute if score .wizard_battle settings matches 1 run return 0

execute if score @s ranged_enchant_lvl matches 0 run give @s minecraft:bow[item_name={"color":"white","italic":false,"text":"Bow"},unbreakable={},tooltip_display={hidden_components:["unbreakable","attribute_modifiers","can_break"]},can_break=[{blocks:"#pctf:can_break"}]]

execute if score @s ranged_enchant_lvl matches 1 run give @s minecraft:bow[item_name={"color":"white","italic":false,"text":"Bow"},enchantments={"minecraft:power":1},unbreakable={},tooltip_display={hidden_components:["unbreakable","attribute_modifiers","can_break"]},can_break=[{blocks:"#pctf:can_break"}]]