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

Do I have to change the build.gradle file every time to reflect the version change? If so what's the point of the @Mod annotation? I'm still new at modding minecraft using forge, so please give me some slack.

 

 

Side Question: Why is the recommended build, 1.6.4-Recommended 9.11.1.965 1.6.4, not ForgeGradle? Though .964 is :o

Because 965 was a build to fix some problems with 953. Gradle builds also do not have the Modloader compatibility layer.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

  • Author

Because 965 was a build to fix some problems with 953. Gradle builds also do not have the Modloader compatibility layer.

 

How big of a problem is the incompatibility with the Modloader? Will it hinder my mod development?

No.

 

And for the main topic: I don't know how it's done, but there is a way to put the version into your @mod from the build.gradle.

Read the EAQ before posting! OR ELSE!

 

This isn't building better software, its trying to grab a place in the commit list of a highly visible github project.

 

www.forgeessentials.com

 

Don't PM me, I don't check this account unless I have to.

You can have "auto versioning".

I believe that is what the default build.gradle shipped with Forge tries to do with the mcmod.info:

processResources
{
    // replace stuff in mcmod.info, nothing else
    from(sourceSets.main.resources.srcDirs) {
        include 'mcmod/info'
                
        // replace version and mcversion
        expand 'version':project.version, 'mcversion':project.minecraft.version
    }

 

So you can replace the values in files on building with

expand

. Or use an Ant Filter.

And you can set a property value with

gradle build -Pversion=NewVersion

  • Author

None of the solutions worked for me, probably due to my incompetence, so I guess I'll manually do it until I have time to read up on gradle and learn about it.

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.