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

I'm not sure if this has been asked before but i'm curious to why mcmod.info files are needed in mods when it would be more convenient to code it directly into the mod?

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

Protip: try and find answers yourself before asking on the forum.

It's pretty likely that there is an answer.

 

Was I helpful? Give me a thank you!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

  • Author

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

I had a mess around with it, also with DummyContainer, and didn't have much luck.

 

 

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Ahh. Do you have any ideas on how I would include the metadata in the code anyway?

There is a way, but I can't get it to work, you can use

@Metadata("MyModID")
public static ModMetadata meta;

And modify that, or you can get the metadata from @PreInit.

I had a mess around with it, also with DummyContainer, and didn't have much luck.

 

 

The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it.

Ahh. Do you have any ideas on how I would include the metadata in the code anyway?

 

I'm always using the mcmod.info file, so I don't know.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

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...

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.