diff --git a/latest.json b/latest.json index 6d58ba7..04e1d2e 100644 --- a/latest.json +++ b/latest.json @@ -1,4 +1,4 @@ { "version": "4.0.1", "url": "http://example.com/launcher/versions/4.0.1.jar.pack" -} +} \ No newline at end of file diff --git a/lightpack.json b/lightpack.json new file mode 100644 index 0000000..871961f --- /dev/null +++ b/lightpack.json @@ -0,0 +1,266 @@ +{ + "title" : "Light Modpack", + "name" : "Light Modpack", + "version" : "20100223", + "minimumVersion" : 2, + "librariesLocation" : "libraries", + "objectsLocation" : "objects", + "gameVersion" : "1.8", + "features" : [ { + "name" : "CoolGrass", + "description" : "CoolGrass gives you a cool grass." + }, { + "name" : "SomeMinimap", + "description" : "SomeMinimap gives you a cool minimap.", + "recommendation" : "starred", + "selected" : true + } ], + "tasks" : [ { + "type" : "file", + "hash" : "8c35b619fb0169b7d7f087246293e26d3ec494a2", + "location" : "8c/35/8c35b619fb0169b7d7f087246293e26d3ec494a2", + "to" : "config/forge.cfg", + "size" : 2526 + }, { + "type" : "file", + "hash" : "e9c6c18a10a099f635858634afe794250fbb22b9", + "location" : "e9/c6/e9c6c18a10a099f635858634afe794250fbb22b9", + "to" : "config/worldedit/worldedit.properties", + "size" : 1031 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/FlyingCars-2.5.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/IndustrialMachines-2.3.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/WorldEditor-1.2.jar", + "size" : 152 + }, { + "type" : "file", + "when" : { + "if" : "requireAny", + "features" : [ "CoolGrass" ] + }, + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/CoolGrass-1.0.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/RequiredClientLib-5.0.jar", + "size" : 152 + }, { + "type" : "file", + "when" : { + "if" : "requireAny", + "features" : [ "SomeMinimap" ] + }, + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/SomeMinimap-2.0.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "6c97a7f50fe0fa46ce5492f235b51eba8b69b191", + "location" : "6c/97/6c97a7f50fe0fa46ce5492f235b51eba8b69b191", + "to" : "options.txt", + "size" : 303, + "userFile" : true + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "resourcepacks/SomeResourcePack.zip", + "size" : 152 + } ], + "versionManifest" : { + "id" : "1.8", + "time" : 1409646275000, + "releaseTime" : 1409646275000, + "assets" : "1.8", + "type" : "release", + "minecraftArguments" : "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type}", + "mainClass" : "net.minecraft.client.main.Main", + "minimumLauncherVersion" : 14, + "libraries" : [ { + "name" : "java3d:vecmath:1.5.2" + }, { + "name" : "net.sf.trove4j:trove4j:3.0.3" + }, { + "name" : "com.ibm.icu:icu4j-core-mojang:51.2" + }, { + "name" : "net.sf.jopt-simple:jopt-simple:4.6" + }, { + "name" : "com.paulscode:codecjorbis:20101023" + }, { + "name" : "com.paulscode:codecwav:20101023" + }, { + "name" : "com.paulscode:libraryjavasound:20101123" + }, { + "name" : "com.paulscode:librarylwjglopenal:20100824" + }, { + "name" : "com.paulscode:soundsystem:20120107" + }, { + "name" : "io.netty:netty-all:4.0.15.Final" + }, { + "name" : "com.google.guava:guava:17.0" + }, { + "name" : "org.apache.commons:commons-lang3:3.3.2" + }, { + "name" : "commons-io:commons-io:2.4" + }, { + "name" : "commons-codec:commons-codec:1.9" + }, { + "name" : "net.java.jinput:jinput:2.0.5" + }, { + "name" : "net.java.jutils:jutils:1.0.0" + }, { + "name" : "com.google.code.gson:gson:2.2.4" + }, { + "name" : "com.mojang:authlib:1.5.17" + }, { + "name" : "com.mojang:realms:1.6.1" + }, { + "name" : "org.apache.commons:commons-compress:1.8.1" + }, { + "name" : "org.apache.httpcomponents:httpclient:4.3.3" + }, { + "name" : "commons-logging:commons-logging:1.1.3" + }, { + "name" : "org.apache.httpcomponents:httpcore:4.3.2" + }, { + "name" : "org.apache.logging.log4j:log4j-api:2.0-beta9" + }, { + "name" : "org.apache.logging.log4j:log4j-core:2.0-beta9" + }, { + "name" : "org.lwjgl.lwjgl:lwjgl:2.9.1", + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl_util:2.9.1", + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl-platform:2.9.1", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl:2.9.2-nightly-20140822", + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl_util:2.9.2-nightly-20140822", + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl-platform:2.9.2-nightly-20140822", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "net.java.jinput:jinput-platform:2.0.5", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + } + }, { + "name" : "tv.twitch:twitch:6.5" + }, { + "name" : "tv.twitch:twitch-platform:6.5", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows-${arch}", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "linux" + } + } ] + }, { + "name" : "tv.twitch:twitch-external-platform:4.5", + "natives" : { + "windows" : "natives-windows-${arch}" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "windows" + } + } ] + } ] + }, + "launch" : { + "flags" : [ "-Dfml.ignoreInvalidMinecraftCertificates=true" ] + } +} \ No newline at end of file diff --git a/monsterpack.json b/monsterpack.json new file mode 100644 index 0000000..e20d34e --- /dev/null +++ b/monsterpack.json @@ -0,0 +1,272 @@ +{ + "title" : "Monster Modpack", + "name" : "Monster Modpack", + "version" : "20100223", + "minimumVersion" : 2, + "librariesLocation" : "libraries", + "objectsLocation" : "objects", + "gameVersion" : "1.8", + "features" : [ { + "name" : "SomeMinimap", + "description" : "SomeMinimap gives you a cool minimap.", + "recommendation" : "starred", + "selected" : true + }, { + "name" : "CoolGrass", + "description" : "CoolGrass gives you a cool grass." + } ], + "tasks" : [ { + "type" : "file", + "hash" : "8c35b619fb0169b7d7f087246293e26d3ec494a2", + "location" : "8c/35/8c35b619fb0169b7d7f087246293e26d3ec494a2", + "to" : "config/forge.cfg", + "size" : 2526 + }, { + "type" : "file", + "hash" : "e9c6c18a10a099f635858634afe794250fbb22b9", + "location" : "e9/c6/e9c6c18a10a099f635858634afe794250fbb22b9", + "to" : "config/worldedit/worldedit.properties", + "size" : 1031 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/FlyingCars-2.5.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/IndustrialMachines-2.3.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/SomeHeavyMod-1.4.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/WorldEditor-1.2.jar", + "size" : 152 + }, { + "type" : "file", + "when" : { + "if" : "requireAny", + "features" : [ "CoolGrass" ] + }, + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/CoolGrass-1.0.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/RequiredClientLib-5.0.jar", + "size" : 152 + }, { + "type" : "file", + "when" : { + "if" : "requireAny", + "features" : [ "SomeMinimap" ] + }, + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "mods/SomeMinimap-2.0.jar", + "size" : 152 + }, { + "type" : "file", + "hash" : "6c97a7f50fe0fa46ce5492f235b51eba8b69b191", + "location" : "6c/97/6c97a7f50fe0fa46ce5492f235b51eba8b69b191", + "to" : "options.txt", + "size" : 303, + "userFile" : true + }, { + "type" : "file", + "hash" : "d64444560f4d81386d1a1230aebb03c1fb05624b", + "location" : "d6/44/d64444560f4d81386d1a1230aebb03c1fb05624b", + "to" : "resourcepacks/SomeResourcePack.zip", + "size" : 152 + } ], + "versionManifest" : { + "id" : "1.8", + "time" : 1409646275000, + "releaseTime" : 1409646275000, + "assets" : "1.8", + "type" : "release", + "minecraftArguments" : "--username ${auth_player_name} --version ${version_name} --gameDir ${game_directory} --assetsDir ${assets_root} --assetIndex ${assets_index_name} --uuid ${auth_uuid} --accessToken ${auth_access_token} --userProperties ${user_properties} --userType ${user_type}", + "mainClass" : "net.minecraft.client.main.Main", + "minimumLauncherVersion" : 14, + "libraries" : [ { + "name" : "java3d:vecmath:1.5.2" + }, { + "name" : "net.sf.trove4j:trove4j:3.0.3" + }, { + "name" : "com.ibm.icu:icu4j-core-mojang:51.2" + }, { + "name" : "net.sf.jopt-simple:jopt-simple:4.6" + }, { + "name" : "com.paulscode:codecjorbis:20101023" + }, { + "name" : "com.paulscode:codecwav:20101023" + }, { + "name" : "com.paulscode:libraryjavasound:20101123" + }, { + "name" : "com.paulscode:librarylwjglopenal:20100824" + }, { + "name" : "com.paulscode:soundsystem:20120107" + }, { + "name" : "io.netty:netty-all:4.0.15.Final" + }, { + "name" : "com.google.guava:guava:17.0" + }, { + "name" : "org.apache.commons:commons-lang3:3.3.2" + }, { + "name" : "commons-io:commons-io:2.4" + }, { + "name" : "commons-codec:commons-codec:1.9" + }, { + "name" : "net.java.jinput:jinput:2.0.5" + }, { + "name" : "net.java.jutils:jutils:1.0.0" + }, { + "name" : "com.google.code.gson:gson:2.2.4" + }, { + "name" : "com.mojang:authlib:1.5.17" + }, { + "name" : "com.mojang:realms:1.6.1" + }, { + "name" : "org.apache.commons:commons-compress:1.8.1" + }, { + "name" : "org.apache.httpcomponents:httpclient:4.3.3" + }, { + "name" : "commons-logging:commons-logging:1.1.3" + }, { + "name" : "org.apache.httpcomponents:httpcore:4.3.2" + }, { + "name" : "org.apache.logging.log4j:log4j-api:2.0-beta9" + }, { + "name" : "org.apache.logging.log4j:log4j-core:2.0-beta9" + }, { + "name" : "org.lwjgl.lwjgl:lwjgl:2.9.1", + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl_util:2.9.1", + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl-platform:2.9.1", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl:2.9.2-nightly-20140822", + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl_util:2.9.2-nightly-20140822", + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "org.lwjgl.lwjgl:lwjgl-platform:2.9.2-nightly-20140822", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "osx" + } + } ] + }, { + "name" : "net.java.jinput:jinput-platform:2.0.5", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + } + }, { + "name" : "tv.twitch:twitch:6.5" + }, { + "name" : "tv.twitch:twitch-platform:6.5", + "natives" : { + "linux" : "natives-linux", + "windows" : "natives-windows-${arch}", + "osx" : "natives-osx" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow" + }, { + "action" : "disallow", + "os" : { + "name" : "linux" + } + } ] + }, { + "name" : "tv.twitch:twitch-external-platform:4.5", + "natives" : { + "windows" : "natives-windows-${arch}" + }, + "extract" : { + "exclude" : [ "META-INF/" ] + }, + "rules" : [ { + "action" : "allow", + "os" : { + "name" : "windows" + } + } ] + } ] + }, + "launch" : { + "flags" : [ "-Dfml.ignoreInvalidMinecraftCertificates=true" ] + } +} \ No newline at end of file diff --git a/news.html b/news.html index f4ef387..235b201 100644 --- a/news.html +++ b/news.html @@ -17,4 +17,4 @@ body {

News

Recently, two new modpacks were added.

- + \ No newline at end of file diff --git a/packages.json b/packages.json index 56d7ecf..9fe041f 100644 --- a/packages.json +++ b/packages.json @@ -16,4 +16,4 @@ "priority": 1 } ] -} +} \ No newline at end of file diff --git a/packages.php b/packages.php new file mode 100644 index 0000000..77e3d9e --- /dev/null +++ b/packages.php @@ -0,0 +1,29 @@ + 1, + 'packages' => [], +]; + +foreach ($files as $file) { + $data = json_decode(file_get_contents($file)); + if (isset($data->name) && isset($data->version)) { + $document['packages'][] = [ + 'name' => $data->name, + 'title' => isset($data->title) ? $data->title : $data->name, + 'version' => $data->version, + 'location' => basename($file), + 'priority' => 1, + ]; + } +} + +header("Content-Type: text/plain"); +echo json_encode($document, JSON_PRETTY_PRINT); \ No newline at end of file