execute store result score random itemcount run random value 1..11
execute if score random itemcount matches 1 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:14},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/frozen"},item_name:{"text":"Frozen Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 2 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:14},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/desert"},item_name:{"text":"Dry Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 3 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:14},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/swamp"},item_name:{"text":"Muddy Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 4 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:14},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/jungle"},item_name:{"text":"Jungle Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 5 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:14},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/ocean"},item_name:{"text":"Flooded Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 6 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:21},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/mountain"},item_name:{"text":"Mountain Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 7 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:15},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/surface"},item_name:{"text":"Surface Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 8 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:17},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/cave"},item_name:{"text":"Cave Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 9 run data modify entity @s Offers.Recipes append value {maxUses:4,buy:{id:emerald,count:18},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/deep_cave"},item_name:{"text":"Deep Cave Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 10 run data modify entity @s Offers.Recipes append value {maxUses:2,buy:{id:emerald,count:25},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/nether"},item_name:{"text":"Nether Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}
execute if score random itemcount matches 11 run data modify entity @s Offers.Recipes append value {maxUses:2,buy:{id:emerald,count:25},sell:{id:barrel,components:{container_loot:{loot_table:"survivalplus:gameplay/crates/chamber"},item_name:{"text":"Chamber Crate","italic":false},enchantment_glint_override:1b,tooltip_display:{hidden_components:[container_loot]},rarity:uncommon}}}