Jump to content

[1.12.2] Mod not running after build


Yogo Wafel

Recommended Posts

Hi there!

 

I have a problem with Forge mod. While testing it in IntelliJ everything works fine, but after copying the jar into 'mods' folder and running the 'REAL' minecraft, it says "An error occured while attempting to perform this command".

 

Mod main aim is to perform action on command:

 


public class PinfoCommand extends ForgeCommand {

    public static String NAME = "pinfo";

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public String getUsage(ICommandSender icommandsender) {
        return "Usage: /pinfo [pokemon]";
    }

    @Override
    public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException {
    	//...
    }
}

 

The code inside execute method uses a gradle dependency (jsoup), which I properly added to build.gradle file as below. Maybe that's the problem?

 

compile 'org.jsoup:jsoup:1.12.1'

 

Link to comment
Share on other sites

How are you building the mod? What is the error when you try and launch the game (post the whole log)

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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