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 have 2 questions.

 

1. What folder/files should I be committing to a git repo I'm guessing everything in src should be fine?

2. Are we allowed to release our mods under any license we want? The one I want to use is the wtfpl but I'm not sure if that's against what Forge/Minecraft allows.

Assuming you're using 1.7.x then you should put everything into the repo that is sufficient to rebuild the entire mod.  So you include some of the gradle stuff.

 

My gitignore looks like this:

$ cat .gitignore
/*
!/src
!build.gradle
!*.project
!/gradle
!gradlew
!gradlew.bat

 

Then this can be downloaded/cloned onto any other computer and just run the gradlew setupDecompWorkspace and the gradlew eclipse commands and you'll have same modding environment ready to go.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

You sure about that? Sounds a bit weird to be adding more than just the src.

Would I also exclude the eclipse directory from it too?

You sure about that? Sounds a bit weird to be adding more than just the src.

Would I also exclude the eclipse directory from it too?

I used to just do the source but then several experts explained that was wrong. They were right -- the gradle stuff is not very big but contains everything to recreate the entire environment.

 

Regarding excluding eclipse folder, yes, do you know how the gitignore works?  If you look at my example above I don't exclude that from being ignored (which means it is ignored).  The eclipse folder gets recreated by the gradlew eclipse command.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

  • Author

With your git ignore file I still get this meaning eclipse actually gets added to the repo with all my project settings, etc. which I really don't think it meant to be added. I'm running git init in the main folder btw.

 

.classpath

.gitingore

.gradle/

.project

.settings/

CREDITS-fml.txt

LICENSE-fml.txt

MinecraftForge-Credits.txt

MinecraftForge-License.txt

README.txt

bin/

build.gradle

eclipse/

forge-1.7.10-10.13.0.1180-changelog.txt

gradle/

gradlew

gradlew.bat

src/

It is probably the /* line.  If you're running it from main folder it would pick up all folders.  I guess I run mine one folder lower than you do.

 

Anyway, just play around with the gitignore to suit your folder structure.  My point is that in addition to source most people recommend including the gradle stuff.  It really is a nice way to clone the full build context.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.