Ok apparently I spoke to soon. This is the following code:
#Configure if using mods.
ModEnabled="1" # If 1 = Install/update mods
DayZModList=("1559212036" "1828439124" "2545327648"
#Update Mods
if [ $ModEnabled == "1" ];then
printf "[ ${yellow}REALM-SERVER${default} ] Updating/Downloading Mod files!\n"
for value in ${DayZModList[@]}; do
${HOME}/servers/steamcmd/steamcmd.sh +force_install_dir ${HOME}/servers/dayzserver/ +login "${SteamUser}" +workshop_download_item 221100 "${DayZModList}" validate +quit
printf "[ ${green}REALM-SERVER${default} ] Done downloading and updating Mod files!\n"
done
else
printf "[ ${red}Error${default} ] You have not enabled downloading and updating mods, skipping!\n"
fi
However, it skips everything after "1559212036", it doesn't actually download them.