Architectury build system & huge code cleanup

This commit is contained in:
Martin Prokoph
2024-07-17 14:26:17 +02:00
parent 9e3b2ae060
commit 27221b62cd
146 changed files with 1529 additions and 855 deletions

View File

@@ -0,0 +1,28 @@
package com.example.yourmod.neoforge;
import com.example.yourmod.YourMod;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.fml.common.Mod;
import static com.example.yourmod.YourMod.MOD_ID;
@Mod(value = MOD_ID)
public class YourModNeoForge {
public YourModNeoForge() {
YourMod.init();
}
@Mod(value = MOD_ID, dist = Dist.CLIENT)
public static class YourModClientNeoforge {
public YourModClientNeoforge() {
YourMod.initClient();
}
}
@Mod(value = MOD_ID, dist = Dist.DEDICATED_SERVER)
public static class YourModServerNeoforge {
public YourModServerNeoforge() {
YourMod.initServer();
}
}
}

View File

@@ -0,0 +1,38 @@
modLoader = "javafml"
loaderVersion = "[2,)"
#issueTrackerURL = ""
license = "MIT License"
[[mods]]
modId = "yourmod"
version = "${version}"
displayName = "Your Mod"
logoFile = "icon.png"
authors = "You!"
description = '''
An example multiloader mod featuring MidnightLib!
'''
[[mixins]]
config = "yourmod.mixins.json"
[[dependencies.yourmod]]
modId = "neoforge"
mandatory = true
versionRange = "[21.0,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.yourmod]]
modId = "minecraft"
mandatory = true
versionRange = "[1.21,)"
ordering = "NONE"
side = "BOTH"
[[dependencies.yourmod]]
modId = "midnightlib"
mandatory = true
versionRange = "[1.0,)"
ordering = "AFTER"
side = "BOTH"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB