22 lines
564 B
Bash
Executable File
22 lines
564 B
Bash
Executable File
#! /bin/sh
|
|
#
|
|
# deploy.sh
|
|
# Copyright (C) 2024 Jacob Babor <jacob@babor.tech>
|
|
#
|
|
# Distributed under terms of the MIT license.
|
|
#
|
|
|
|
mcroot="$HOME/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/ComputerCraft Sandbox/"
|
|
world="New World"
|
|
|
|
masterid="0"
|
|
slaveid="1"
|
|
|
|
_ccroot="$mcroot/.minecraft/saves/$world/computercraft/computer"
|
|
echo "Root: $_ccroot"
|
|
for computer in $masterid $slaveid; do
|
|
cp common.lua "$_ccroot/$masterid/autostart.lua"
|
|
done
|
|
cp masterconfig.lua "$_ccroot/$masterid/config.lua"
|
|
cp slaveconfig.lua "$_ccroot/$slaveid/config.lua"
|