From the folks that brought you Minecraft Flight Simulator comes the all-new Immersive Vehicles mod!
This mod is the result of over a year's worth of work and is the continuation and future of Minecraft Flight Simulator.
These instructions assume you are using Windows. If you are using a flavor of Linux, you should be able to tell where your instructions differ and how to handle such differences.
-
A JDK (Java Development Kit) of 8 or 17, such as Oracle's JDK 8/JDK 17 or Eclipse Temurin's OpenJDK. This is NOT the same as the JRE (Java Runtime Environment) you likely already have installed.
Note: A 17 JDK will eventually be required when the Gradle version the mod uses is updated
-
The
JAVA_HOME
environment variable should be set to your JDK make the entire process easier. If you don't know what that is or how to change it, see steps one through three here.You should replace the
JAVA_HOME
variable with the path to your previously/newly installed JDK if it isn't already the same. If it doesn't exit, use the "New" button and make it.JAVA_HOME
should be set toC:\Program Files\Java\someJDKVersion\
if you have an Oracle JDK orC:\Program Files\Eclipse Adoptium\someJDKVersion\
if you have a Temurin JDK.
Now that you have a JDK and Git Bash setup, you can clone the repository for the mod.
-
Open the folder that you want this repository's folder to be in
-
Right click anywhere in the folder in File Explorer (not on a file or any of the toolbars)
-
Click "Git Bash Here", copy
git clone https://github.com/DonBruce64/MinecraftTransportSimulator.git
then paste it into the git bash terminal using Left Shift + Insert to paste, then hit enter. When it is finished, set up the development environment according to the instructions for your IDE.-
CONTRIBUTORS, READ ME!
If you plan on contributing, make a fork using the fork button in the top right on https://github.com/DonBruce64/MinecraftTransportSimulator, then clone the forked repository you are redirected to in the form of
https://github.com/<yourGitHubUsername>/MinecraftTransportSimulator
instead of the main repository. You will not be able to push changes to the main repository and will need to make a pull request with changes from your fork.
-
-
Using the same Git Bash terminal from before, run
cd ./MinecraftTransportSimulator
to get into the folder that was created,./gradlew eclipse
and./gradlew genEclipseRuns
\Note: May need updating, not sure if this is still accurate
-
Make a folder called
eclipse
in the cloned folder and open Eclipse. When it asks you for a "Workspace Location", select theeclipse
folder that you just created. -
Go to the menu and click "Import Gradle Project". Choose the folder that was created after you ran
git clone
before, it should be called "MinecraftTransportSimulator". -
To test changes you make to the code, you can click the little bug icon and then go to Debug Configurations -> Java Application-runClient. Select this, go to the Environment tab, and set the
MC_VERSION
entry to the game version. -
When you're ready to build the mod, run
./gradlew buildForge1122
or./gradlew buildForge1165
for 1.12.2 and 1.16.5 respectively.
-
Right-click the folder that was created when you ran
git clone
and click "Open Folder as IntelliJ yourEdition Edition IDEA Project". If you don't have the option, start IDEA and click File -> Open then navigate to the directory and choose the folder. -
Wait for IDEA to finish setting up the Gradle script then use the "Gradle" tab on the right side of your screen to run Gradle tasks. Run
genIntelliJRuns
in the project for the Forge version and game version you want, e.g.mcinterfaceforge1122
for Forge for 1.12.2. -
When you want to test your changes on the client or server, use the
runClient
orrunServer
configurations. Click the dropdown then "Edit Configurations..." and change theMC_VERSION
environment variable to the game version. If the run configuration has a red x, change the project module toImmersive_Vehicles.forgeInterfaceVersion.main
in the same menu. -
When you're ready to build the mod, run
./gradlew buildForge1122
or./gradlew buildForge1165
(buildForge1122
andbuildForge1165
in the Gradle tab) for 1.12.2 and 1.16.5 respectively.
Need more help with IDEA? Ask Elephant_1214#3698 in the Discord server.
-
Right-click the folder that was created by
git clone
and click "Open with Code". If you prefer using a terminal/powershell/command prompt, run# if the shell was opened in the parent folder code ./<foldername> # if the shell was opened inside the project folder code .
-
Once VS Code opens, you will need to install the Java Development Extension Pack. This is a required step for Java Development on VS Code, the extension pack includes the follow extensions:
- Language Support for Java™ by Red Hat
- Debugger for Java
- Test Runner for Java
- Maven for Java
- Project Manager for Java
- Visual Studio IntelliCode
You can also install the Gradle for Java extension to run gradle tasks from the sidebar.
-
Restart the IDE to have VS Code load the Java project. Once thats done, you should see this under the Gradle tab on the sidebar.
If you see the above, go into "Immersive Vehicles" > "Tasks" > "forgegradle runs" and click on
genVSCodeRuns
. -
If you want to test your changes on the client or the server, in the Gradle tab go to
mcinterfaceforge1122
(1.12.2) ormcinterfaceforge1165
(1.16.5) > "Tasks" > "forgegradle runs" and click onrunClient
orrunServer
-
When you're ready to build the mod, in the Gradle tab go to
mcinterfaceforge1122
(1.12.2) ormcinterfaceforge1165
(1.16.5) > "Tasks" > "build" and click onbuild
You're on your own unless someone else in the Discord server uses it. Keep in mind that Notepad, Notepad++, vi, vim, nano, etc, are not meant for Java development, and you will not receive help with issues unrelated to the mod that arise while using them.
Once you have made the changes you want to commit, open Git Bash in the project folder (the one named MinecraftTransportSimulator
) and run git add -u
then git commit -m "Your commit message here"
. Finally, run git push
to push the changes to your fork on GitHub which you should see your commit added to within a few seconds. After that, all you need to do is make a pull request to get your changes reviewed and added to the mod!