Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
560217cd38 | ||
|
|
519e2c8f6d |
@@ -3,7 +3,7 @@
|
|||||||
"version": "1.16.5",
|
"version": "1.16.5",
|
||||||
"modLoaders": [
|
"modLoaders": [
|
||||||
{
|
{
|
||||||
"id": "forge-36.2.34",
|
"id": "forge-36.2.39",
|
||||||
"primary": true
|
"primary": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -169,14 +169,6 @@
|
|||||||
"name": "Pam's HarvestCraft 2 - Crops"
|
"name": "Pam's HarvestCraft 2 - Crops"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"projectID": 361579,
|
|
||||||
"fileID": 3767277,
|
|
||||||
"required": true,
|
|
||||||
"__meta": {
|
|
||||||
"name": "spark"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"projectID": 365460,
|
"projectID": 365460,
|
||||||
"fileID": 3281234,
|
"fileID": 3281234,
|
||||||
@@ -295,6 +287,17 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"projectID": 545905,
|
||||||
|
"fileID": 4584293,
|
||||||
|
"required": true,
|
||||||
|
"__meta": {
|
||||||
|
"name": "EnvySTS",
|
||||||
|
"dependencies": [
|
||||||
|
389487
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"projectID": 818696,
|
"projectID": 818696,
|
||||||
"fileID": 4369234,
|
"fileID": 4369234,
|
||||||
@@ -302,6 +305,14 @@
|
|||||||
"__meta": {
|
"__meta": {
|
||||||
"name": "PokeFactory Compatibility"
|
"name": "PokeFactory Compatibility"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"projectID": 861884,
|
||||||
|
"fileID": 4559794,
|
||||||
|
"required": true,
|
||||||
|
"__meta": {
|
||||||
|
"name": "Universal Pokeloot"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -29,10 +29,10 @@
|
|||||||
"uid": "net.minecraft"
|
"uid": "net.minecraft"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"cachedVersion": "36.2.34",
|
"cachedVersion": "36.2.39",
|
||||||
"uid": "net.minecraftforge",
|
"uid": "net.minecraftforge",
|
||||||
"version": "36.2.34"
|
"version": "36.2.39"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"formatVersion": 1
|
"formatVersion": 1
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
openjdk@1.11.0-2
|
adopt-openj9@1.11.0-11
|
||||||
BIN
server/plugins/BukkitPixelmonPlaceholders-1.1.1.jar
Normal file
BIN
server/plugins/BukkitPixelmonPlaceholders-1.1.1.jar
Normal file
Binary file not shown.
BIN
server/plugins/Dynmap-3.6-beta-2-spigot.jar
Normal file
BIN
server/plugins/Dynmap-3.6-beta-2-spigot.jar
Normal file
Binary file not shown.
BIN
server/plugins/EssentialsX-2.20.0.jar
Normal file
BIN
server/plugins/EssentialsX-2.20.0.jar
Normal file
Binary file not shown.
BIN
server/plugins/EssentialsXChat-2.20.0.jar
Normal file
BIN
server/plugins/EssentialsXChat-2.20.0.jar
Normal file
Binary file not shown.
BIN
server/plugins/EssentialsXGeoIP-2.20.0.jar
Normal file
BIN
server/plugins/EssentialsXGeoIP-2.20.0.jar
Normal file
Binary file not shown.
BIN
server/plugins/EssentialsXProtect-2.20.0.jar
Normal file
BIN
server/plugins/EssentialsXProtect-2.20.0.jar
Normal file
Binary file not shown.
BIN
server/plugins/EssentialsXSpawn-2.20.0.jar
Normal file
BIN
server/plugins/EssentialsXSpawn-2.20.0.jar
Normal file
Binary file not shown.
BIN
server/plugins/FastAsyncWorldEdit-Bukkit-2.6.4-SNAPSHOT-493.jar
Normal file
BIN
server/plugins/FastAsyncWorldEdit-Bukkit-2.6.4-SNAPSHOT-493.jar
Normal file
Binary file not shown.
BIN
server/plugins/LuckPerms-Bukkit-5.4.89.jar
Normal file
BIN
server/plugins/LuckPerms-Bukkit-5.4.89.jar
Normal file
Binary file not shown.
BIN
server/plugins/Multiverse-Core-4.3.1.jar
Normal file
BIN
server/plugins/Multiverse-Core-4.3.1.jar
Normal file
Binary file not shown.
BIN
server/plugins/PixelmonEconomyBridge-1.0.9.jar
Normal file
BIN
server/plugins/PixelmonEconomyBridge-1.0.9.jar
Normal file
Binary file not shown.
BIN
server/plugins/Vault.jar
Normal file
BIN
server/plugins/Vault.jar
Normal file
Binary file not shown.
@@ -6,6 +6,8 @@ from typing import Any
|
|||||||
|
|
||||||
OS = sys.platform
|
OS = sys.platform
|
||||||
|
|
||||||
|
SERVER_DIR = os.getcwd()
|
||||||
|
|
||||||
MOD_DOWNLOADER_URL = "https://github.com/Joshyx/ModpackDownloader/releases/download/v1.3/ModpackDownloader-1.3.jar"
|
MOD_DOWNLOADER_URL = "https://github.com/Joshyx/ModpackDownloader/releases/download/v1.3/ModpackDownloader-1.3.jar"
|
||||||
FORGE_URL = (
|
FORGE_URL = (
|
||||||
"https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.2.34/forge-1.16.5-36.2.34-installer.jar"
|
"https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.2.34/forge-1.16.5-36.2.34-installer.jar"
|
||||||
@@ -14,20 +16,20 @@ FORGE_JAR = "forge-1.16.5-36.2.34.jar"
|
|||||||
MODPACK_RELEASES_URL = "https://git.233hfd.com/api/v1/repos/joey/FishPogPixelmon/releases?limit=1"
|
MODPACK_RELEASES_URL = "https://git.233hfd.com/api/v1/repos/joey/FishPogPixelmon/releases?limit=1"
|
||||||
|
|
||||||
ARCLIGHT_URL = "https://github.com/IzzelAliz/Arclight/releases/download/1.16%2F1.0.24/arclight-forge-1.16.5-1.0.24.jar"
|
ARCLIGHT_URL = "https://github.com/IzzelAliz/Arclight/releases/download/1.16%2F1.0.24/arclight-forge-1.16.5-1.0.24.jar"
|
||||||
ARCLIGHT_JAR = "arclight-forge-1.16.5-1.0.24.jar"
|
ARCLIGHT_JAR = "arclight.jar"
|
||||||
|
|
||||||
INSTANCE_DIR = os.path.join(str(os.getenv("HOME")), "pixelmon")
|
INSTANCE_DIR = os.path.join(str(os.getenv("HOME")), "pixelmon")
|
||||||
|
|
||||||
DELETION_EXEMPTED_MODS = ["TrainerCommands-1.16.5-2.6.0.jar", "spongeforge-1.16.5-36.2.5-8.1.0-RC1352-universal.jar"]
|
DELETION_EXEMPTED_MODS = ["TrainerCommands-1.16.5-2.6.0.jar"]
|
||||||
|
|
||||||
|
|
||||||
# main
|
# main
|
||||||
def __main__():
|
def __main__():
|
||||||
header()
|
header()
|
||||||
needs_mods = instance()
|
needs_mods_plugins = instance()
|
||||||
if needs_mods:
|
if needs_mods_plugins:
|
||||||
mods()
|
mods()
|
||||||
forge()
|
plugins()
|
||||||
arclight()
|
arclight()
|
||||||
launch()
|
launch()
|
||||||
|
|
||||||
@@ -38,7 +40,16 @@ def launch():
|
|||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
os.chdir(f"{INSTANCE_DIR}/.minecraft")
|
os.chdir(f"{INSTANCE_DIR}/.minecraft")
|
||||||
subprocess.run(["java", "-Xmx30720M", "-Xms1024M", "-jar", ARCLIGHT_JAR, "--nogui"])
|
subprocess.run(
|
||||||
|
[
|
||||||
|
"java",
|
||||||
|
"-Xmx30720M",
|
||||||
|
"-Xms1024M",
|
||||||
|
"-jar",
|
||||||
|
ARCLIGHT_JAR,
|
||||||
|
"--nogui",
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
# arclight
|
# arclight
|
||||||
@@ -50,9 +61,13 @@ def arclight():
|
|||||||
return
|
return
|
||||||
|
|
||||||
cprint("arclight.jar not found - downloading", "yellow")
|
cprint("arclight.jar not found - downloading", "yellow")
|
||||||
r = requests.get(FORGE_URL, allow_redirects=True)
|
r = requests.get(ARCLIGHT_URL, allow_redirects=True)
|
||||||
open("arclight.jar", "wb").write(r.content)
|
open("arclight.jar", "wb").write(r.content)
|
||||||
|
|
||||||
|
f = open("eula.txt", "w")
|
||||||
|
f.write("eula=true")
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
|
||||||
# forge
|
# forge
|
||||||
def forge():
|
def forge():
|
||||||
@@ -104,6 +119,21 @@ def mods():
|
|||||||
cprint("mods downloaded successfully", "green")
|
cprint("mods downloaded successfully", "green")
|
||||||
|
|
||||||
|
|
||||||
|
# plugins
|
||||||
|
def plugins():
|
||||||
|
os.chdir(INSTANCE_DIR)
|
||||||
|
|
||||||
|
os.makedirs(os.path.join(INSTANCE_DIR, ".minecraft", "plugins"), exist_ok=True)
|
||||||
|
|
||||||
|
for file in glob.glob(os.path.join(INSTANCE_DIR, ".minecraft", "plugins", "*")):
|
||||||
|
os.remove(file)
|
||||||
|
|
||||||
|
for file in glob.glob(os.path.join(SERVER_DIR, "plugins", "*")):
|
||||||
|
shutil.copy(file, os.path.join(INSTANCE_DIR, ".minecraft", "plugins", os.path.basename(file)))
|
||||||
|
|
||||||
|
cprint("plugins copied successfully", "green")
|
||||||
|
|
||||||
|
|
||||||
# multimc
|
# multimc
|
||||||
def instance():
|
def instance():
|
||||||
unclean = False
|
unclean = False
|
||||||
|
|||||||
Reference in New Issue
Block a user