Compare commits

...

14 Commits

Author SHA1 Message Date
APEX FIGHT
79b80a719d added invsee 2025-03-21 16:45:38 -04:00
APEX FIGHT
b4e1dbe34a added computers 2025-03-20 23:05:42 -04:00
APEX FIGHT
ea20fdfa4f added jei 2025-03-13 17:57:15 -04:00
APEX FIGHT
3e6f2e8689 added deps 2025-03-11 16:37:24 -04:00
APEX FIGHT
a51c351447 added more optimization mods 2025-03-11 16:31:23 -04:00
APEX FIGHT
4fdfe49904 got rid of incorrect string processing 2025-03-11 10:21:58 -04:00
APEX FIGHT
3caa59ccbf fixed semantical errors in code 2025-03-11 10:18:32 -04:00
APEX FIGHT
c6ab659e78 added overwrite option 2025-03-11 10:15:07 -04:00
APEX FIGHT
8d785b407c added installed mod skipping 2025-03-11 10:10:14 -04:00
APEX FIGHT
06028720b8 added chunky 2025-03-11 10:04:01 -04:00
APEX FIGHT
f9390bd5a8 added optimizations to mod list 2025-03-11 01:09:31 -04:00
APEX FIGHT
696da828c4 added optimizations 2025-03-11 00:56:53 -04:00
APEX FIGHT
8d47e252dd Merge branch 'main' of https://gitea.apexfight.net/apex/minecraft-server-stuff 2025-03-10 22:53:10 -04:00
APEX FIGHT
1798385644 chages to yaml 2025-03-10 22:52:53 -04:00
2 changed files with 72 additions and 13 deletions

23
main.js
View File

@@ -7,6 +7,8 @@ var mods = fs.readFileSync("./mods.yaml", 'utf-8');
mods = yaml.parse(mods);
var oldRegistry = fs.readFileSync("/root/mcserver/modRegistry.yaml", 'utf-8');
oldRegistry = yaml.parse(oldRegistry);
var modList = mods.mod_list;
var modDownloads = mods.mod_downloads;
@@ -19,22 +21,25 @@ modList.forEach((ele, idx, arr) => {
}
modinfo.modName = "*" + ele;
registry[ele] = modinfo;
if (link == "client"){
modinfo.modName = "*" + ele;
return;
}
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition -nc " + link).toString('utf-8'); //change dir and download mod
console.log(output);
try {
modinfo.modName = output.match(/(["'])(?:(?=(\\?))\2.)*?\1/)[0];//kill myself?
modinfo.modName = modinfo.modName.substring(1, modinfo.modName.length - 1);
} catch{
modinfo.modName = "*" + ele;
if (process.argv[2] != "overwrite"){
if (Object.keys(oldRegistry).includes(ele)) {
return;
}
}
let output = cp.execSync("cd /root/mcserver/mods && wget --content-disposition -nc " + link).toString('utf-8'); //change dir and download mod
console.log(output);
console.log("\n\n\n\n\n\n" + modinfo.modName + "\n\n\n\n\n\n");
registry[ele] = modinfo;
});
fs.writeFileSync("/root/mcserver/mods/modRegistry.yaml", yaml.stringify(registry));
fs.writeFileSync("/root/mcserver/modRegistry.yaml", yaml.stringify(registry));

View File

@@ -12,6 +12,8 @@ non_voted:
- polymorph
- toms_create_terminals
- almost_unified
- crafttweaker
- forgivevoid
vote_winners:
- waystones
- dimensional_doors
@@ -72,7 +74,21 @@ dependencies:
- supermart_core_lib
- supermart_conf_lib
- botarium
- almanac
- jei
optimizations:
- server_core
- radium
- async_locator
- ferrite_core
- modernfix
- memory-leak-fix
- noisium
- dimthreads
- chunky
- vmp
- lmd
- spark
minecraft_version: 1.20.1
mod_loader: forge
loader_dl: 'https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.1-47.4.0/forge-1.20.1-47.4.0-installer.jar'
@@ -104,7 +120,7 @@ mod_downloads:
placebo: 'https://www.curseforge.com/api/v1/mods/283644/files/6274231/download'
patchouli: 'https://www.curseforge.com/api/v1/mods/306770/files/6164575/download'
apothic_attributes: 'https://www.curseforge.com/api/v1/mods/898963/files/5634071/download'
supplementaries: 'https://www.curseforge.com/api/v1/mods/412082/files/6255734/download'
supplementaries: 'https://www.curseforge.com/api/v1/mods/412082/files/6228530/download'
supplementaries_additions: 'https://www.curseforge.com/api/v1/mods/838411/files/6280155/download'
moonlight_lib: 'https://www.curseforge.com/api/v1/mods/499980/files/6283242/download'
spartan_weaponry: 'https://www.curseforge.com/api/v1/mods/278141/files/5597663/download'
@@ -148,6 +164,25 @@ mod_downloads:
supermart_core_lib: 'https://www.curseforge.com/api/v1/mods/454372/files/6034718/download'
supermart_conf_lib: 'https://www.curseforge.com/api/v1/mods/438332/files/4715408/download'
botarium: 'https://www.curseforge.com/api/v1/mods/704113/files/5486070/download'
server_core: 'https://cdn.modrinth.com/data/4WWQxlQP/versions/rx1c7m6q/servercore-forge-1.5.2%2B1.20.1.jar'
radium: 'https://cdn.modrinth.com/data/2gvRmQXx/versions/n947JjJH/radium-mc1.20.1-0.12.4%2Bgit.26c9d8e.jar'
async_locator: 'https://cdn.modrinth.com/data/rkN8aqci/versions/Eip0qUwF/async-locator-forge-1.20-1.3.0.jar'
ferrite_core: 'https://cdn.modrinth.com/data/uXXizFIs/versions/DG5Fn9Sz/ferritecore-6.0.1-forge.jar'
modernfix: 'https://cdn.modrinth.com/data/nmDcB62a/versions/LmgaF8pW/modernfix-forge-5.20.2%2Bmc1.20.1.jar'
memory-leak-fix: 'https://cdn.modrinth.com/data/NRjRiSSD/versions/3w0IxNtk/memoryleakfix-forge-1.17%2B-1.1.5.jar'
noisium: 'https://cdn.modrinth.com/data/KuNKN7d2/versions/gbYUKrDP/noisium-forge-2.3.0%2Bmc1.20-1.20.1.jar'
chunky: 'https://cdn.modrinth.com/data/fALzjamp/versions/4FTDk9wv/Chunky-1.3.146.jar'
dimthreads: 'https://cdn.modrinth.com/data/V92cR3aK/versions/i3nGtwqY/dimthread-FORGE-mc1.20.1-v1.2.1.jar'
lmd: 'https://cdn.modrinth.com/data/vE2FN5qn/versions/DdpzGNnQ/letmedespawn-1.20.x-forge-1.4.4.jar'
vmp: 'https://cdn.modrinth.com/data/LlSMGYzF/versions/u8RpUzay/vmp-fabric-mc1.20.1-0.2.0%2Bbeta.7.101-all.jar'
spark: 'https://cdn.modrinth.com/data/l6YH9Als/versions/4FXHDE9F/spark-1.10.53-forge.jar'
almanac: 'https://cdn.modrinth.com/data/Gi02250Z/versions/DnzrwvfD/almanac-1.20.x-forge-1.0.2.jar'
jei: 'https://www.curseforge.com/api/v1/mods/238222/files/6075247/download'
crafttweaker: 'https://www.curseforge.com/api/v1/mods/239197/files/6256146/download'
forgivevoid: 'https://www.curseforge.com/api/v1/mods/271009/files/5478647/download'
mdman: 'https://www.curseforge.com/api/v1/mods/502485/files/4873115/download'
iview: 'https://www.curseforge.com/api/v1/mods/997252/files/6157642/download'
computers: 'https://www.curseforge.com/api/v1/mods/1037738/files/6280699/download'
mod_list:
- botany_pots
- trashcans
@@ -220,3 +255,22 @@ mod_list:
- supermart_core_lib
- supermart_conf_lib
- botarium
- server_core
- radium
- async_locator
- ferrite_core
- modernfix
- memory-leak-fix
- noisium
- dimthreads
- chunky
- vmp
- lmd
- spark
- almanac
- jei
- crafttweaker
- forgivevoid
- computers
- mdman
- iview