I need help again. For the part where I'm supposed to have run (gradlew setupDecompWorkspace eclipse) It keep saying this ("gradlew" Not recognized as a command or program) I have the mod folder and RemoteSystem and metadata but I don't have the run folder which is never explained what it is and I'm confused at point on what to do I installed JDK 8 and but that didn't help and I did reinstall forge but nothing worked so now I'm stuck with a gradlew that is supposed be in the main folder.
In your "root" folder for the project you should have the gradle and .gradle folder, build.gradle, src folder, a gradlew.bat and another gradlew file. If you open command prompt from inside that root folder try running "javac" if that doesn't work then your path variable isn't set up right. If it does work you should be able to run the gradlew commands.
Make sure that in your command prompt you are running commands from inside your root folder: "C:\..{folders}\{root folder}\
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
Strange, that is something with your eclipse settings not minecraft, but the Project Explorer is generally more useful anyways. I forget where the setting is but the project explorer can view packages in a nested style while the package explorer will always show all packages.
Rollback Post to RevisionRollBack
"If It Is To Be It Is Up To Me" simple quote and I don't know where it comes from but I enjoy it.
Current Mod: Armerger | Light Drafter
Is there any way you could make a tutorial on compiling a mod for release? I've done a lot on my mod and wanted to send it to a friend for them to try it out, but I don't know how to compile it.
Do the same process as setting up your mod (changing the directory, etc...), but use the gradlew build command instead.
Okay, so once I'm done that do I compress the file in the build folder into a .zip? Most mods I see are .jar files which is what I was trying to get but a .zip would be fine too.
Mods will only run if they are .jar files. When you build your mod, inside of the build/lib folder, you should find the newly built .jar. You can either use that as the download file or compress it to a .zip, whatever your preference is.
Regarding tutorial #12 (Volume 1), all it does it create a function called "hitEntity", but how does the game know to call this function when the sword is used to attack something?
Regarding tutorial #12 (Volume 1), all it does it create a function called "hitEntity", but how does the game know to call this function when the sword is used to attack something?
When you override the function, the super class will call the function. Essentially the way the game knows is all in the @Override annotation.
When will there be more tutorials for 1.8? I'm looking forward to it.
Not too sure right now. I don't know if I'll re-write them in the future to be more adaptable to newer versions of Minecraft, or if I'll just stop right now.
Thanks! Now I can presume my modding oh wait I have to go D:
<--- This happens too much :/
I need help again. For the part where I'm supposed to have run (gradlew setupDecompWorkspace eclipse) It keep saying this ("gradlew" Not recognized as a command or program) I have the mod folder and RemoteSystem and metadata but I don't have the run folder which is never explained what it is and I'm confused at point on what to do I installed JDK 8 and but that didn't help and I did reinstall forge but nothing worked so now I'm stuck with a gradlew that is supposed be in the main folder.
<--- This happens too much :/
did you setup your "Path" system variable to include the location of your java jdk?
Current Mod: Armerger | Light Drafter
I just set that "Path" Variable to my JDK bin according instructions
<--- This happens too much :/
did that fix it?
Current Mod: Armerger | Light Drafter
And... No...
Same error as before
<--- This happens too much :/
In your "root" folder for the project you should have the gradle and .gradle folder, build.gradle, src folder, a gradlew.bat and another gradlew file. If you open command prompt from inside that root folder try running "javac" if that doesn't work then your path variable isn't set up right. If it does work you should be able to run the gradlew commands.
Make sure that in your command prompt you are running commands from inside your root folder: "C:\..{folders}\{root folder}\
Current Mod: Armerger | Light Drafter
What do you mean by "Root" Folder
<--- This happens too much :/
{root folder}\
-----build.gradle
-----src
-----gradle\
-----------...
-----.gradle\
-----------...
My root folder is this F:\Minecraft Mods\{Mod Name}
so when I run gradlew commands in cmd I type this first
"cd F:\Minecraft Mods\{Mod Name}"
Current Mod: Armerger | Light Drafter
Okay but one question will this affect my installation process?
EDIT: Okay it seems to be working now And... I get no Package Explorer and only a project explorer when I open up Eclipse
<--- This happens too much :/
Strange, that is something with your eclipse settings not minecraft, but the Project Explorer is generally more useful anyways. I forget where the setting is but the project explorer can view packages in a nested style while the package explorer will always show all packages.
Current Mod: Armerger | Light Drafter
Well I discover that was a setting and I did use wuppy's tutorial but that's fine right? Anyways I'm ready to start coding!
<--- This happens too much :/
Hello, Does the Basic Github Tutorial haven't been updated? I am new to Github so everything is confusing for me
Thanks for your tutorial!
Do the same process as setting up your mod (changing the directory, etc...), but use the gradlew build command instead.
Mods will only run if they are .jar files. When you build your mod, inside of the build/lib folder, you should find the newly built .jar. You can either use that as the download file or compress it to a .zip, whatever your preference is.
Hmm?
It's not a download link - it's a link to a google drive folder.
Regarding tutorial #12 (Volume 1), all it does it create a function called "hitEntity", but how does the game know to call this function when the sword is used to attack something?
When will there be more tutorials for 1.8? I'm looking forward to it.
Minecraft mods are AWESOME!!!!!!!!!!!!!!
When you override the function, the super class will call the function. Essentially the way the game knows is all in the @Override annotation.
Not too sure right now. I don't know if I'll re-write them in the future to be more adaptable to newer versions of Minecraft, or if I'll just stop right now.