Changes

107 bytes added ,  16:39, 11 June 2022
Update to 1.19
Line 6: Line 6:  
{{Tree list}}
 
{{Tree list}}
 
* '''The Mod Development Kit'''
 
* '''The Mod Development Kit'''
** <code>gradle/wrapper/</code> - The folder containing the [https://docs.gradle.org/7.2/userguide/gradle_wrapper.html Gradle wrapper]'', Forge uses Version '''7.2'''''
+
** <code>gradle/wrapper/</code> - The folder containing the [https://docs.gradle.org/7.4.2/userguide/gradle_wrapper.html Gradle wrapper]'', Forge uses Version '''7.4.2'''''
 
** <code>src</code> - The sources folder
 
** <code>src</code> - The sources folder
 
*** <code>main</code> - The <code>main</code> source set
 
*** <code>main</code> - The <code>main</code> source set
Line 17: Line 17:  
** <code>.gitattributes</code> - Used by [[wikipedia:Git|Git]] for specifying attributes for files<ref>[https://git-scm.com/docs/gitattributes Official git documentation on <tt>.gitattributes</tt>]</ref>
 
** <code>.gitattributes</code> - Used by [[wikipedia:Git|Git]] for specifying attributes for files<ref>[https://git-scm.com/docs/gitattributes Official git documentation on <tt>.gitattributes</tt>]</ref>
 
** <code>.gitignore</code> - Used by Git for specifying intentionally untracked/ignored files<ref>[https://git-scm.com/docs/gitignore Official git documentation on <tt>.gitignore</tt>]</ref>
 
** <code>.gitignore</code> - Used by Git for specifying intentionally untracked/ignored files<ref>[https://git-scm.com/docs/gitignore Official git documentation on <tt>.gitignore</tt>]</ref>
** <code>build.gradle</code> - The Gradle buildscript, which defines the project and tasks<ref>[https://docs.gradle.org/7.2/userguide/tutorial_using_tasks.html Gradle User Guide for 7.2: ''Build Script Basics'']</ref>
+
** <code>build.gradle</code> - The Gradle buildscript, which defines the project and tasks<ref>[https://docs.gradle.org/7.4.2/userguide/tutorial_using_tasks.html Gradle User Guide for 7.4.2: ''Build Script Basics'']</ref>
 
** <code>changelog.txt</code> - The Forge version changelog
 
** <code>changelog.txt</code> - The Forge version changelog
 
** <code>CREDITS.txt</code> - Forge's credits/''thank you'' file
 
** <code>CREDITS.txt</code> - Forge's credits/''thank you'' file
** <code>gradle.properties</code> - The Gradle properties file, for defining additional variables and options<ref>[https://docs.gradle.org/7.2/userguide/build_environment.html#sec:gradle_configuration_properties Gradle User Guide for 7.2: ''Build Environment § Gradle properties'']</ref>
+
** <code>gradle.properties</code> - The Gradle properties file, for defining additional variables and options<ref>[https://docs.gradle.org/7.4.2/userguide/build_environment.html#sec:gradle_configuration_properties Gradle User Guide for 7.4.2: ''Build Environment § Gradle properties'']</ref>
 
** <code>gradlew</code> - The *nix shell file for executing the Gradle wrapper
 
** <code>gradlew</code> - The *nix shell file for executing the Gradle wrapper
 
** <code>gradlew.bat</code> - The Windows batch file for executing the Gradle wrapper
 
** <code>gradlew.bat</code> - The Windows batch file for executing the Gradle wrapper
Line 57: Line 57:  
You can test your mod in the development environment using either your IDE's run configurations and built-in debugging utilities, or by running the <code>run*</code> task as defined by the buildscript's run configurations.
 
You can test your mod in the development environment using either your IDE's run configurations and built-in debugging utilities, or by running the <code>run*</code> task as defined by the buildscript's run configurations.
   −
There are three default run configurations with the MDK:
+
There are four default run configurations with the MDK:
 
* <code>runClient</code>, for starting the client.
 
* <code>runClient</code>, for starting the client.
 
* <code>runServer</code>, for starting the dedicated server. ''You will need to accept the EULA through the <tt>eula.txt</tt> after running the server for the first time.''
 
* <code>runServer</code>, for starting the dedicated server. ''You will need to accept the EULA through the <tt>eula.txt</tt> after running the server for the first time.''
 
* <code>runData</code>, for starting the client in [[Datageneration|data generation]] mode.
 
* <code>runData</code>, for starting the client in [[Datageneration|data generation]] mode.
 +
* <code>runGameTestServer</code>, for starting a build server to run [[Game_Tests|game tests]].
    
{{Tip|Always test your mod in both the client and the dedicated server, even if you are making a one-sided mod. Mods should not crash when running on both sides, and one-sided mods should not crash if they run on the wrong side.}}
 
{{Tip|Always test your mod in both the client and the dedicated server, even if you are making a one-sided mod. Mods should not crash when running on both sides, and one-sided mods should not crash if they run on the wrong side.}}