#!/usr/bin/env bash set -euo pipefail destination="${1:-build/dependencies}" mkdir -p "$destination" artifact="$destination/easy_npc-neoforge-1.21.1-7.12.1.jar" curl --fail --location --retry 2 \ 'https://cdn.modrinth.com/data/Epm6R3P2/versions/e5wGcNT7/easy_npc-neoforge-1.21.1-7.12.1.jar' \ --output "$artifact" printf '%s %s\n' '5f16c303087fc6abea8707b4660c2d81a15b719b0e243cf099f7b3bacebbb5e69eb4d57bd28328cbb09c5e26a2dfc9aade8b9707fb9cf9e64d70f18216662ead' "$artifact" | sha512sum --check