execute store result storage survivalplus:shulkerclear slot int 1 run scoreboard players get scan_container itemcount
$data modify storage survivalplus:shulkerclear container set value "$(container)"

function survivalplus:tools/newgame/check_shulker with storage survivalplus:shulkerclear
function survivalplus:tools/newgame/check_shulker_shell with storage survivalplus:shulkerclear

scoreboard players add scan_container itemcount 1

$execute if score scan_container itemcount matches ..$(max) run function survivalplus:tools/newgame/scan_container {container:"$(container)",max:$(max)}