Separate the core mod from the main project.

It should be imported in the referenced libraries.
This commit is contained in:
James Seibel
2021-02-07 23:03:51 -06:00
parent b22d6345d2
commit fe86e1f353
4 changed files with 6 additions and 53 deletions
+3 -4
View File
@@ -17,13 +17,12 @@ Step 3: run the command: "./gradlew eclipse"
Step 4: Import project
Step 5: create a system variable called "JAVA_MC_HOME" with the location of the JDK 1.8.0_251 (This is needed for gradle to work correctly)
Step 5: Create a system variable called "JAVA_MC_HOME" with the location of the JDK 1.8.0_251 (This is needed for gradle to work correctly)
And make sure it is used in the build.gradle file.
Step 6: In the eclipse run configuration add "-Dfml.coreMods.load=backsun.lod.LodMain"
This lets forge know that you have a core mod you want to run.
Step 6: Import the lodcore and lodcore_source jar files into the referenced libraries.
Step 7: make sure the eclipse has the JDK 1.8.0_251 installed. (This is needed so that eclipse can run minecraft)
Step 6: Make sure the eclipse has the JDK 1.8.0_251 installed. (This is needed so that eclipse can run minecraft)
Other commands:
-8
View File
@@ -1,8 +0,0 @@
package backsun.lod;
// -Dfml.coreMods.load=backsun.lod.LodCore
public class LodCore
{
}
+2 -40
View File
@@ -1,8 +1,5 @@
package backsun.lod;
import java.util.Map;
import backsun.lod.asm.RenderGlobalClassTransformer;
import backsun.lod.proxy.ClientProxy;
import backsun.lod.proxy.CommonProxy;
import backsun.lod.util.Reference;
@@ -24,8 +21,8 @@ import net.minecraftforge.fml.relauncher.IFMLLoadingPlugin;
*/
@IFMLLoadingPlugin.MCVersion("1.12.2")
@IFMLLoadingPlugin.TransformerExclusions({"backsun.lod.asm"})
@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION)
public class LodMain implements IFMLLoadingPlugin
@Mod(modid = Reference.MOD_ID, name = Reference.NAME, version = Reference.VERSION, dependencies = "required-after:lodcore")
public class LodMain
{
@Instance
public static LodMain instance;
@@ -52,39 +49,4 @@ public class LodMain implements IFMLLoadingPlugin
{
}
// required for IFMLLoadingPlugin
@Override
public String[] getASMTransformerClass()
{
return new String[] { RenderGlobalClassTransformer.class.getName() };
}
@Override
public String getModContainerClass()
{
// unneeded since we are also running a normal mod
return null;
}
@Override
public String getSetupClass() {
// TODO Auto-generated method stub
return null;
}
@Override
public void injectData(Map<String, Object> data) {
// TODO Auto-generated method stub
}
@Override
public String getAccessTransformerClass() {
// TODO Auto-generated method stub
return null;
}
}
+1 -1
View File
@@ -11,6 +11,6 @@
"credits": "TechnoVision for his modding tutorial.",
"logoFile": "",
"screenshots": [],
"dependencies": []
"dependencies": ["lodcore"]
}
]