Jump to content

Recommended Posts

Posted (edited)

Sorry for the probably dumb question, this is my first time modding Minecraft. I keep seeing things that say you can put information about your mod in the @Mod annotation like the modID, display name, version number, etc., but when I try to do specify the field for it, it raises an error and says that it's not recognized. Am I doing something wrong? (I'm using forge 1.14 and JDK 10)
image.png.9d4ea8c1cb989b329bd803e1d6bdfa43.png

Edited by lizzyd710
Adding specs
Posted

Since 1.13 the @Mod annotation only has a single parameter - your modid. Everything else goes in mods.toml.

  • Like 1

About Me

  Reveal hidden contents

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)

Posted

Ah, thank you for clarifying! I keep seeing a file called mcmod.info being referenced, but I only have that mods.toml file. Is there a place that shows all the parameters you can set in the mods.toml, because all I seem to be finding is stuff about mcmod.info, and I only have those example parameters in my mods.toml file.

Posted

The MDK comes with a mods.toml that shows you which values are required and which are optional.

  • Like 1

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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.