File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
- [submodule "tools/yarn "]
2
- path = tools/yarn
3
- url = https://github.com/FabricMC/yarn.git
1
+ [submodule "tools/Paperclip "]
2
+ path = tools/Paperclip
3
+ url = https://github.com/PaperMC/Paperclip
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ mcVersion=" 20w45a"
4
+
3
5
# resolve shell-specifics
4
6
case " $( echo " $SHELL " | sed -E ' s|/usr(/local)?||g' ) " in
5
7
" /bin/zsh" )
@@ -40,20 +42,18 @@ case "$1" in
40
42
tools/scripts/applyPatches.sh " ./tools/decomp/decompiled" || exit 1
41
43
) || failed=1
42
44
;;
43
- " y" | " yarn" )
44
- (
45
- set -e
46
- cd " $basedir "
47
- tools/scripts/decompile.sh " $basedir " || exit 1
48
- ) || failed=1
49
- ;;
50
45
" s" | " setup" )
51
46
set -e
52
47
cd " $basedir "
53
- tools/scripts/decompile.sh " $basedir " || exit 1
48
+ tools/scripts/decompile.sh " $basedir " " $mcVersion " || exit 1
54
49
cd " $basedir "
55
50
tools/scripts/applyPatches.sh " ./tools/decomp/decompiled" || exit 1
56
51
;;
52
+ " jar" )
53
+ cd " $basedir /tools/Paperclip"
54
+ mvn clean package " -Dmcver=$mcVersion " " -Dpaperjar=$basedir /server/target/loom-$mcVersion .jar" " -Dvanillajar=$basedir /tools/decomp/server.jar" || exit 1
55
+ cp " $basedir /tools/Paperclip/assembly/target/paperclip-$mcVersion .jar" " $basedir /loom-$mcVersion .jar"
56
+ ;;
57
57
* )
58
58
echo " This tool provides a variety of commands to manage a Loom development environment."
59
59
echo " "
@@ -63,6 +63,7 @@ case "$1" in
63
63
echo " |"
64
64
echo " * p, patch | Applies all Loom patches to NMS without building the project."
65
65
echo " * rb, rebuild | Rebuilds and creates patches from your existing project source."
66
+ echo " * jar | Creates a distributable Loom server JAR."
66
67
;;
67
68
esac
68
69
Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ toolsdir="$basedir/tools"
8
8
yarndir=" $toolsdir /yarn"
9
9
decompdir=" $toolsdir /decomp"
10
10
11
- mcVersion=" 20w45a "
11
+ mcVersion=" $2 "
12
12
mcServerJar=" https://launcher.mojang.com/v1/objects/043ec38297d0ec58abd6f636bc92f5664a8ccecb/server.jar"
13
13
mcServerMappings=" https://launcher.mojang.com/v1/objects/e13520140ed6bdbe2ca05f59ce12700e9081a8cf/server.txt"
14
14
15
15
function setup {
16
16
git submodule update --init --recursive
17
17
18
18
echo " Downloading vanilla server jar and Mojang mappings."
19
- mkdir " $toolsdir /decomp"
19
+ mkdir -p " $toolsdir /decomp"
20
20
cd " $toolsdir /decomp"
21
21
curl -O $mcServerJar
22
22
curl -O $mcServerMappings
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments