Skip to content

Commit

Permalink
fix pre 1.7 versions and add attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
BluCobalt committed Apr 17, 2023
1 parent 8031280 commit 2f84460
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 51 deletions.
12 changes: 8 additions & 4 deletions generate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import zipfile
import pathlib

loader: str = "0.14.19"
lwjgl3: str = "3.1.6"
Expand Down Expand Up @@ -43,9 +42,14 @@ def prepare_skeleton(self):
t.write(self.process(f.read()))

mkdir_if_not_exists("temp/patches")
with open("skel/patches/net.fabricmc.intermediary.json", "r") as f:
with open("temp/patches/net.fabricmc.intermediary.json", "w") as t:
t.write(self.process(f.read()))
if self.minecraft_version == "1.6.4" or "1.5.2" or "1.4.7" or "1.3.2":
with open("skel/patches/net.fabricmc.intermediary.pre-1.7.json", "r") as f:
with open("temp/patches/net.fabricmc.intermediary.json", "w") as t:
t.write(self.process(f.read()))
else:
with open("skel/patches/net.fabricmc.intermediary.json", "r") as f:
with open("temp/patches/net.fabricmc.intermediary.json", "w") as t:
t.write(self.process(f.read()))

with open("skel/legacyfabric.png", "rb") as f:
with open("temp/legacyfabric.png", "wb") as t:
Expand Down
5 changes: 5 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# multimc-instance-creator
generates multimc instances for legacyfabric given a loader version

## thanks
[GrayRay75](https://github.com/Grayray75) and their original [instances](https://github.com/Grayray75/LegacyFabric-MultiMC)
94 changes: 47 additions & 47 deletions skel/mmc-pack.json
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
{
"components": [
"components": [
{
"cachedName": "${lwjgl_name}",
"cachedVersion": "${lwjgl_version}",
"cachedVolatile": true,
"dependencyOnly": true,
"uid": "${lwjgl_uid}",
"version": "${lwjgl_version}"
},
{
"cachedName": "Minecraft",
"cachedRequires": [
{
"cachedName": "${lwjgl_name}",
"cachedVersion": "${lwjgl_version}",
"cachedVolatile": true,
"dependencyOnly": true,
"uid": "${lwjgl_uid}",
"version": "${lwjgl_version}"
},
{
"cachedName": "Minecraft",
"cachedRequires": [
{
"equals": "${lwjgl_version}",
"suggests": "${lwjgl_version}",
"uid": "${lwjgl_uid}"
}
],
"cachedVersion": "${minecraft_version}",
"important": true,
"uid": "net.minecraft",
"version": "${minecraft_version}"
},
"equals": "${lwjgl_version}",
"suggests": "${lwjgl_version}",
"uid": "${lwjgl_uid}"
}
],
"cachedVersion": "${minecraft_version}",
"important": true,
"uid": "net.minecraft",
"version": "${minecraft_version}"
},
{
"cachedName": "Intermediary Mappings",
"cachedRequires": [
{
"cachedName": "Intermediary Mappings",
"cachedRequires": [
{
"equals": "${minecraft_version}",
"uid": "net.minecraft"
}
],
"cachedVersion": "${minecraft_version}",
"cachedVolatile": true,
"dependencyOnly": true,
"uid": "net.fabricmc.intermediary",
"version": "${minecraft_version}"
},
"equals": "${minecraft_version}",
"uid": "net.minecraft"
}
],
"cachedVersion": "${minecraft_version}",
"cachedVolatile": true,
"dependencyOnly": true,
"uid": "net.fabricmc.intermediary",
"version": "${minecraft_version}"
},
{
"cachedName": "Fabric Loader",
"cachedRequires": [
{
"cachedName": "Fabric Loader",
"cachedRequires": [
{
"equals": "${minecraft_version}",
"uid": "net.fabricmc.intermediary"
}
],
"cachedVersion": "${loader_version}",
"uid": "net.fabricmc.fabric-loader",
"version": "${loader_version}"
"equals": "${minecraft_version}",
"uid": "net.fabricmc.intermediary"
}
],
"formatVersion": 1
],
"cachedVersion": "${loader_version}",
"uid": "net.fabricmc.fabric-loader",
"version": "${loader_version}"
}
],
"formatVersion": 1
}
15 changes: 15 additions & 0 deletions skel/patches/net.fabricmc.intermediary.pre-1.7.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"formatVersion": 1,
"+libraries": [
{
"name": "net.legacyfabric:intermediary:${minecraft_version}",
"url": "https://maven.legacyfabric.net/"
}
],
"+traits": [
"noapplet"
],
"name": "Intermediary Mappings",
"uid": "net.fabricmc.intermediary",
"version": "${minecraft_version}"
}

0 comments on commit 2f84460

Please sign in to comment.