Jump to content

Jakeob

Members
  • Posts

    7
  • Joined

  • Last visited

Jakeob's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. ugh... now I'm just facepalming, I probably should've realized it was a build error when runClient worked but the jar didn't. Thanks a ton for all the help guys, sorry for my stupidity.
  2. Running the build jar script (highlighted) and copying the jar to my mods directory
  3. Yup. Just recompiled and ran just to be sure, attached below: ClientProxy.java:20 is ClientCommandHandler.instance.registerCommand(new TestSidebarScoresCommand());
  4. Thanks for the code style tips, I was a little confused on the point of the common proxy over just the main class when looking at example code. I fixed the wrong serverSide path in the @SidedProxy (How did I miss that...), but it's still giving the same error. Thanks for all the help.
  5. Thanks for the response. I went and created ClientProxy, ServerProxy, and CommonProxy classes, and put my command registration in the ClientProxy, but I'm still getting the same error The main class: The ClientProxy class: The CommonProxy class: Anything I'm doing wrong? Thanks again for the help so far.
  6. Thanks for the response. I've read that tutorial before, do you have any idea as to where I'm referencing something server-sided? Thanks again for the help. Below is the full stacktrace from the log:
  7. When I attempt to run the mod from my client, the following error occurs: Interestingly enough, I have no errors when attempting to run it via the runClient script. This is the only line in which I call the registerCommand method: ClientCommandHandler.instance.registerCommand(new TestSidebarScoresCommand()); I don't understand why this would happen, as the imported net.minecraftforge.client.ClientCommandHandler extends net.minecraft.command.CommandHandler, which contains this method. Below is the command class, which extends CommandBase, which implements ICommand, meaning that it is the correct type for the parameter. Sorry if this is a dumb mistake, I'm new to Forge and Gradle. One last thing, the version of forge I'm using to write this in and the version that the client is in are the exact same, so it's not a version mismatch.
×
×
  • Create New...

Important Information

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