Posted June 24, 20196 yr 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'
June 25, 20196 yr 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 Website - Cadiboo.github.io My Mods - Cadiboo.github.io/projects My Tutorials - Cadiboo.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)
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.