scoreboard players set scan_container itemcount 0
function survivalplus:tools/newgame/scan_container {container:"enderchest",max:26}

scoreboard players set scan_container itemcount 0
function survivalplus:tools/newgame/scan_container {container:"inventory",max:26}

scoreboard players set scan_container itemcount 0
function survivalplus:tools/newgame/scan_container {container:"hotbar",max:8}

execute if items entity @s weapon.offhand #minecraft:shulker_boxes unless items entity @s weapon.offhand #minecraft:shulker_boxes[minecraft:custom_data~{ngshulker:"tag"}] run function survivalplus:tools/newgame/dropshulker_offhand
execute if items entity @s weapon.offhand minecraft:shulker_shell run function survivalplus:tools/newgame/dropshulker_offhand
execute if items entity @s weapon.offhand #minecraft:bundles[minecraft:bundle_contents~{items:{contains:[{items:"minecraft:shulker_shell"}]}}] run function survivalplus:tools/newgame/dropshulker_offhand