Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main -> Project:
- forge
- Main -> Main class:
- net.minecraft.launchwrapper.Launch
- Arguments -> Program arguments (1.7.10):
- --version 1.7 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --username=masa_ --accessToken FML --userProperties={} --assetIndex 1.7.10 --assetsDir C:/Users/masa/.gradle/caches/minecraft/assets --width 1280 --height 720
- Arguments -> Program arguments (1.7.2):
- --version 1.7 --tweakClass cpw.mods.fml.common.launcher.FMLTweaker --accessToken FML --username masa_ --width 1280 --height 720 --assetsDir "C:/Users/masa/Desktop/minecraft_modding/Minecraft 1.7.2/eclipse/assets"
- Arguments -> VM arguments:
- -Xincgc -Xmx1024M -Xms1024M -Dfml.ignoreInvalidMinecraftCertificates=true
- Arguments -> Working directory:
- Other:
- C:\Users\masa\Desktop\minecraft_modding\1.7.10\minecraft
- JRE:
- Project JRE (jre7)
- -------------------
- My directory structure:
- - Desktop/minecraft_modding
- - 1.7.10
- - eclipse
- - forge
- - minecraft
- - mods
- - mod1
- - mod2
- - ...
- * 'eclipse' is the eclipse workspace
- * 'forge' is the directory where forge/forgegradle stuff is installed as per usual
- * 'minecraft' is the working directory set in eclipse, so saves, screenshots etc go there
- * Under 'mods' are my mods, one directory per mod, and they have their own build.gradle scripts there. I also build them there separately.
- -------------------
- Forge version update procedure:
- 1. Go to the main forge dir and run the gradle stuff there
- (edit build.gradle for version number, run gradlew setupDecompWorkspace and gradlew eclipse)
- 2. Delete the forge project from eclipse
- 3. Import a new Java project, select the forge dir as the root, don't copy into workspace
- 4. Remove the src dirs from the forge project (Configure Build path, remove src and resources, then remove the src dir from the project)
- 5. should be done if stuff hasn't changed too much
- -------------------
- Howto (updated 2014-07-16 when updating from 1160 to 1180):
- 1. Create a new forge dev environment with gradlew setupDecompWorkspace and gradlew eclipse (in the 'forge' directory in my dir structure)
- 2. Open eclipse, select an empty dir as the workspace (the 'eclipse' directory in my dir structure)
- 3. Import -> General -> Existing project and select the 'forge' directory (NOT the eclipse one under it!), DON'T select the copy project into workspace option
- 4. From Build path -> Configure Build Path -> Source tab, remove the two source dirs
- 5. Remove the src dir from under the 'forge' project in the package explorer
- 6. Create a new run config (Java Application) for the 'forge' project, use the settings above for arguments.
- 7. Add the mods one by one by creating new Java projects, and then for each of them, do the following
- 8. Remove the default src dir like above.
- 9. Then add folders (right click project, New -> Folder) and select the src/main/java (as 'src') and src/main/resources (as 'resources') dirs of the mods,
- and then set them as source directories (right click them in the package explorer -> Build Path -> Use as Source Folder).
- NOTE: This step depends on the mod's file/directory structure of course.
- 10. In Build Paths -> Configure Build Paths, Projects tab, click Add and select the main project ('forge') as a dependency
- 11. Create a vanilla and a modded run config. In the modded run config, add the mod projects you want to have in this
- run config in Classpath -> User entries (remove the two checkbox ticks).
- ---------------------------------------------------------------------------------------------------------
- ---------------------------------------------------------------------------------------------------------
- ---------------------------------------------------------------------------------------------------------
- OLD STUFF BELOW THIS, PLEASE IGNORE
- Howto (old):
- 1. Create a new forge dev environment with gradlew setupDecompWorkspace and gradlew eclipse
- 2. Open eclipse, select an empty dir as the workspace
- 3. Import -> General -> Existing project, select the copy project into workspace option
- 4. From Build path -> Configure Build Path -> Source tab, remove the two source dirs
- 5. Remove the src dir from under the project in the package explorer
- 6. Create a new run config (Java Application), use the settings above for arguments.
- 7. Add the mods by creating new java projects, remove the default src dir.
- 8. Then add folders and select the src/main/java and src/main/resources dirs of the mods, and then set them as source directories
- 9. In Configure build paths select the main project as a dependency
- 10. Create a vanilla and a modded run config. In the modded run config, add the mod projects in Classpath -> User entries (remove the two checkbox ticks)
- -----------------
- Old howto:
- 1. Create a new forge dev environment with gradlew setupDecompWorkspace and gradlew eclipse
- 2. Open eclipse, select the workspace as that eclipse folder under the forge directory
- 3. Add the mods by creating new java projects, remove the default src dir.
- 4. Then add folders and select the src/main/java and src/main/resources dirs of the mods, and then set them as source directories
- 5. In Configure build paths select the main project as a dependency
- 6. Create a vanilla and a modded run config. In the modded run config, add the mod projects in Classpath -> User entries (remove the two checkbox ticks)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement