13 lines
739 B
Bash
Executable File
13 lines
739 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Read the Blockbench project back into the module JSON, then push it in game.
|
|
#
|
|
# bb-apply.sh dry run: show what each cube would become
|
|
# bb-apply.sh --write write the module files and live-reload the game
|
|
set -euo pipefail
|
|
REPO=/home/themiro/code.dev/create-mekanism-modular
|
|
JAR=$(ls "/home/themiro/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/AbdelPack Delta/minecraft/mods/"Truly-Modular-armory-*.jar | head -1)
|
|
"$REPO/tools/.venv/bin/python" "$REPO/tools/bb_import.py" "$JAR" "$REPO/placement.bbmodel" "$@"
|
|
if [ "${1:-}" = "--write" ]; then
|
|
"$REPO/tools/live-reload.sh" "$REPO/src/main/resources/packs/armory/data/cmmodular/miapi/modules/armor/socket/arm_left.json"
|
|
fi
|