finished first version of the mod

This commit is contained in:
2024-10-05 05:57:51 +02:00
parent 3cf8a0d314
commit 7f9fb5ad16
29 changed files with 1083 additions and 127 deletions

View File

@@ -1,4 +1,4 @@
package com.vaporvee.enoughmemory;
package com.vaporvee.loadsupport;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.ModInitializer;
@@ -7,10 +7,10 @@ import net.fabricmc.loader.api.FabricLoader;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class EnoughMemory implements ModInitializer {
public static final String MOD_ID = "enoughmemory";
public class LoadSupport implements ModInitializer {
public static final String MOD_ID = "loadsupport";
public static final Logger logger = LoggerFactory.getLogger("EnoughMemory");
public static final Logger logger = LoggerFactory.getLogger("Load Support");
@Override
public void onInitialize() {
@@ -18,6 +18,6 @@ public class EnoughMemory implements ModInitializer {
logger.info(MOD_ID + " is a client mod only!");
return;
}
logger.info("Loading EnoughMemory mod.");
logger.info("Loading Load Support mod.");
}
}

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@@ -1,46 +1,42 @@
{
"schemaVersion": 1,
"id": "enoughmemory",
"version": "${version}",
"name": "Enough Memory",
"description": "It will show the user when they have set too less Java Memory. The amount of required memory can be adjusted with the config.",
"authors": [
{
"name": "vaporvee",
"contact": {
"homepage" : "https://vaporvee.com"
}
}
],
"contact": {
"sources": "https://github.com/vaporvee/EnoughMemory",
"issues": "https://github.com/vaporvee/EnoughMemory/issues"
},
"custom": {
"modmenu": {
"links": {
"modmenu.discord": "https://discord.gg/StMHnsC9s2"
}
}
},
"license": "Apache License 2.0",
"icon": "assets/enoughmemory/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"com.vaporvee.enoughmemory.EnoughMemory"
],
"client": [
"com.vaporvee.enoughmemory.EnoughMemoryClient"
]
},
"depends": {
"fabricloader": ">=0.16.5",
"minecraft": "~1.21.1",
"java": ">=21",
"fabric-api": "*"
},
"suggests": {
"another-mod": "*"
}
}
"schemaVersion": 1,
"id": "loadsupport",
"version": "${version}",
"name": "Load Support",
"description": "Shows when the user has to less Java memory allocated, and plays a sound when the game has loaded.",
"authors": [
{
"name": "vaporvee",
"contact": {
"homepage": "https://vaporvee.com"
}
}
],
"contact": {
"sources": "https://github.com/vaporvee/EnoughMemory",
"issues": "https://github.com/vaporvee/EnoughMemory/issues"
},
"custom": {
"modmenu": {
"links": {
"modmenu.discord": "https://discord.gg/StMHnsC9s2"
}
}
},
"license": "Apache License 2.0",
"icon": "assets/loadsupport/icon.png",
"environment": "*",
"entrypoints": {
"main": ["com.vaporvee.loadsupport.LoadSupport"],
"client": ["com.vaporvee.loadsupport.LoadSupportClient"]
},
"depends": {
"fabricloader": ">=0.16.5",
"minecraft": "~1.21.1",
"java": ">=21",
"fabric-api": "*"
},
"suggests": {
"another-mod": "*"
}
}

View File

@@ -1,6 +1,6 @@
{
"required": true,
"package": "com.vaporvee.enoughmemory.mixin",
"package": "com.vaporvee.loadsupport.mixin",
"compatibilityLevel": "JAVA_21",
"injectors": {
"defaultRequire": 1