Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Recently I've been getting back into modding, and I've been trying to get my coremod to be detected alongside my other mod.  In my development environment inside of Eclipse, it's detected and works fine, but when I compile using "gradlew build" and put the jar into the mods folder, minecraft only recognizes the main mod, and not the coremod. 

 

FMLLoadingPlugin:

package timeTraveler.core;

import java.util.Map;

import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;

@MCVersion(value = "1.7.10")
public class TimeTravelerFMLLoadingPlugin implements IFMLLoadingPlugin
{
    public String[] getLibraryRequestClass()
    {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public String[] getASMTransformerClass()
    {
        // TODO Auto-generated method stub
        return new String[] {TimeTravelerClassTransformer.class.getName()};
    }
    @Override
    public String getModContainerClass()
    {
        // TODO Auto-generated method stub
        return TimeTravelerCoreModContainer.class.getName();
    }

    @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 TimeTravelerAccessTransformer.class.getName();
}
}

 

ModContainer:

package timeTraveler.core;

import java.util.Arrays;


import com.google.common.eventbus.EventBus;
import com.google.common.eventbus.Subscribe;

import cpw.mods.fml.common.DummyModContainer;
import cpw.mods.fml.common.LoadController;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLConstructionEvent;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;

public class TimeTravelerCoreModContainer extends DummyModContainer
{
    public TimeTravelerCoreModContainer()
    {
        super(new ModMetadata());
        ModMetadata meta = getMetadata();
        meta.modId = "TimeTraveler-core";
        meta.name = "TimeTraveler (Core)";
        meta.version = "1.0";
        meta.credits = "By Charsmud";
        meta.authorList = Arrays.asList("Charsmud");
        meta.description = "Core ASM hooks for TimeTraveler ";
        meta.url = "http://www.minecraftforum.net/topic/1211757-timetraveler-real-time-travel-inside-of-minecraft-go-to-your-past/";
        meta.updateUrl = "";
        meta.screenshots = new String[0];
        meta.logoFile = "";
    }

    @Override
    public boolean registerBus(EventBus bus, LoadController controller)
    {
        bus.register(this);
        return true;
    }

    @Subscribe
    public void modConstruction(FMLConstructionEvent evt)
    {
    }

    @Subscribe
    public void init(FMLInitializationEvent evt)
    {
    }

    @Subscribe
    public void preInit(FMLPreInitializationEvent evt)
    {
    }

    @Subscribe
    public void postInit(FMLPostInitializationEvent evt)
    {
    }
}

 

I should get an output to the log as well that looks something like this:

 

[21:18:45] [main/INFO] [sTDOUT]: [timeTraveler.core.TimeTravelerClassTransformer:<init>:29]: ** TIMETRAVELER - Changing Access Levels!
[21:18:46] [main/INFO] [sTDOUT]: [timeTraveler.core.TimeTravelerClassTransformer:transform:43]: ** TIMETRAVELER TRANS : net.minecraft.block.Block
[21:18:46] [main/INFO] [sTDOUT]: [timeTraveler.core.TimeTravelerClassTransformer:patchClassASM:101]: ** TIMETRAVELER - Patching onBlockPlacedBy

But this is not present in the logfile on live. 

1) Don't make coremods

2) Don't mod for 1.7.10 anymore, seriously, update

3) Don't make 1.7.10 coremods -.-

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.