Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rcon:
password: {{ randAlphaNum 50 }}
port: 25575
9 changes: 9 additions & 0 deletions scrolls/minecraft/forge/1.21.10/init-files/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

MAX=${DRUID_MAX_MEMORY%?}
if [ -z "${MAX}" ];
then
MAX=1024M
fi

java -Xmx$MAX -Xms1024M -jar forge-*-shim.jar nogui
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
difficulty=easy
enable-command-block=false
enable-jmx-monitoring=false
enable-query=false
enable-rcon=true
enable-status=true
enforce-secure-profile=true
enforce-whitelist=false
entity-broadcast-range-percentage=100
force-gamemode=false
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings={}
hardcore=false
hide-online-players=false
initial-disabled-packs=
initial-enabled-packs=vanilla
level-name=world
level-seed=
level-type=minecraft\:normal
max-chained-neighbor-updates=1000000
max-players=20
max-tick-time=60000
max-world-size=29999984
motd=A Minecraft Server
network-compression-threshold=256
online-mode=true
op-permission-level=4
player-idle-timeout=0
prevent-proxy-connections=false
pvp=true
query.port=25565
rate-limit=0
rcon.password={{ .Config.rcon.password }}
rcon.port=25575
require-resource-pack=false
resource-pack=
resource-pack-prompt=
resource-pack-sha1=
server-ip=
server-port=25565
simulation-distance=10
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
spawn-protection=16
sync-chunk-writes=true
text-filtering-config=
use-native-transport=true
view-distance=10
white-list=false
34 changes: 34 additions & 0 deletions scrolls/minecraft/forge/1.21.10/init-files/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#default update script

SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

if [ ! -f "$SCRIPTPATH/scroll-lock.json" ]; then
echo "Scroll lock not found. Skipping update"
exit 0
fi

if [ -z "$(ls $SCRIPTPATH/update)" ]; then
echo "Update directory is empty. Skipping update"
else
versionsDirs=$(find $SCRIPTPATH/update/* -maxdepth 0 -type d | sort --version-sort)
current=$(cat $SCRIPTPATH/scroll-lock.json | jq -r .scroll_version)

for versionsDir in $versionsDirs
do
version=$(basename $versionsDir)
if [ ! "$(printf '%s\n' "$version" "$current" | sort -V | head -n1)" = "$version" ] ;
then
echo "$versionsDir/update.sh"
if [ -f "$versionsDir/update.sh" ]; then
sh $versionsDir/update.sh
else
echo "Warning: update $version has no update.sh... skipping"
fi
fi
done
fi



LATEST_VERSION=$(cat $SCRIPTPATH/scroll.yaml | yq -r .version)
jq --arg LV "$LATEST_VERSION" -r '.scroll_version = $LV' $SCRIPTPATH/scroll-lock.json | sponge $SCRIPTPATH/scroll-lock.json
10 changes: 10 additions & 0 deletions scrolls/minecraft/forge/1.21.10/init-files/update_user_args.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

MAX=${DRUID_MAX_MEMORY%?}
if [ -z "${MAX}" ];
then
MAX=1024M
fi


echo -Xmx$MAX > user_jvm_args.txt
Loading