Provides the buffer between Minecraft/Forge and powercraft to make updating much easier- even when the API comes along!
Prerequisites/This has to be done once even if you create several projects:
-
a directory (furthermore called /GitHub/) that contains the directories GitHub/API and GitHub/Modules is already set up
-
Open eclipse and go to the menu item "window" and click on preferences.
-
click on the small triangle next to the tab "General" then the one next ot the tab "Workspace" and last click on the tab "Linked Resources"
-
Now click on add in the lower part and add the Variable "GIT_LOC". Make it pointing to /GitHub/
-
apply and "ok" every dialog now until you're in the main window of eclipse.
-
close eclipse now and follow the following instructions.
Instructions:
-
Download Minecraft Forge from files.minecraftforge.net (the src version)
-
unpack it into an empty directory (furthermore called "/minecraft/")
-
run "./gradlew setupDevWorkspace" from /minecraft/
-
when finished run "./gradlew eclipse" from /minecraft/
-
create a new directory anywhere you want - that'll be your workspace (furthermore called "/workspace/")
-
go into that workspace directory and create another one - this'll be the project name of the PowerCraft-project (furthermore called "/PowerCraft/")
-
copy EclipseConfiguration.zip from /GitHub/API/ repo into /PowerCraft/ and unzip it.
-
now open Eclipse using /workspace/ as the workspace.
-
start to create a new project
-
uncheck "use default location" and select /minecraft/as project location. If the name isn't filled in automatically give it any name. (furthermore called "projMinecraft")
-
finish the creation of the project(click on "finish")
-
now start again to create a project. Use the name of /PowerCraft/ as projects name. Eclipse should realize that there already is a project dir.
-
click finish. (this project is furthermore called "projPowerCraft")
-
right click on projPowerCraft and click on build path->configure Build path...
-
enter the tab "Projects" and add projMinecraft. Apply now until you're back in the main window.
-
select projPowerCraft make a right click on it and click "refresh" (F5)
-
Congrats you've set up your PowerCraft workspace!!!