execute store result score random itemcount run random value 1..2
execute unless score hardmode hardmode matches 1 if score random itemcount matches 1 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:10},sell:{id:shield,components:{custom_data:{gethitshield:tag},custom_name:{"text":"Feint Shield","italic":false},lore:[{"text":"Triggers on hit effects","italic":false,"color":"gray"}],banner_patterns:[{pattern:cross,color:black},{pattern:gradient,color:black},{pattern:gradient_up,color:black}],base_color:white,tooltip_display:{hidden_components:[banner_patterns]},rarity:common,max_damage:350}}}
execute unless score hardmode hardmode matches 1 if score random itemcount matches 2 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:13},buyB:{id:slime_ball},sell:{id:shield,components:{custom_data:{bounceshield:tag},custom_name:{"text":"Slime Shield","italic":false},lore:[{"text":"Knockback on block","italic":false,"color":"gray"}],banner_patterns:[{pattern:gradient,color:green},{pattern:gradient_up,color:lime},{pattern:rhombus,color:lime}],base_color:lime,tooltip_display:{hidden_components:[banner_patterns]},rarity:common,max_damage:350}}}
execute if score hardmode hardmode matches 1 if score random itemcount matches 1 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:28},sell:{id:shield,components:{custom_data:{auto:tag},custom_name:{"text":"Auto Shield","italic":false},lore:[{"text":"Automatically face the closest hostile enemy","italic":false,"color":"gray"}],banner_patterns:[{pattern:triangles_bottom,color:cyan},{pattern:triangles_top,color:cyan},{pattern:border,color:light_blue},{pattern:rhombus,color:cyan},{pattern:cross,color:white},{pattern:gradient_up,color:lime}],base_color:light_blue,tooltip_display:{hidden_components:[banner_patterns]},rarity:uncommon,max_damage:500}}}
execute if score hardmode hardmode matches 1 if score random itemcount matches 2 run data modify entity @s Offers.Recipes append value {maxUses:1,buy:{id:emerald,count:28},sell:{id:shield,components:{custom_data:{regenshield:tag},custom_name:{"text":"Regen Shield","italic":false},lore:[{"text":"Gain a burst of healing on block","italic":false,"color":"gray"}],banner_patterns:[{pattern:rhombus,color:red},{pattern:triangle_top,color:pink}],base_color:pink,tooltip_display:{hidden_components:[banner_patterns]},rarity:uncommon,max_damage:500}}}