runData, for starting the client in data generation mode.Eloraam, FlowerChild, Hawkye, MALfunction84, Scokeev9, SpaceToad, LexManos.You will need to accept the EULA through the eula.txt after running the server for the first time. runServer, for starting the dedicated server.There are three default run configurations with the MDK: 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 run* task as defined by the buildscript's run configurations. This is to follow semantic versioning guidelines for versions in active development. Optional suggestion: Change the version variable to have a 0 as the major version (ex.In the jar task, change the values of the Specification-Vendor and Implementation-Vendor keys to your username/brand name or other form of identification.This is used as the groupId of your mod's maven coordinates. Change the group to your unique root java package.This is used as the base name for the JAR file when you build your mod, and as the artifactId of your mod's maven coordinates. Change the archivesBaseName variable to your modid.The recommendation is to avoid using acronyms and abbreviations. The modid must be between 2 and 64 characters, and must consist of lowercase letters, numbers, underscores ( _) and hyphens ( -). Use your IDE's find-and-replace function to quickly replace these values.All references to examplemod in the buildscript should be replaced with your modid.The lines above it are required for the Forge MDK to work correctly, and should not be modified without proper knowledge. These values should be replaced with your own mod's information.Īll edits should be done below the apply plugin: '' line. The MDK provides default values for the buildscript and mods.toml file. For Visual Studio Code: the task is genVSCodeRuns the Extension Pack for Java and Gradle for Java plugin should both be installed for smoother integration.For IntelliJ IDEA: the task is genIntellijRuns to run in the IDE directly, open the Gradle on the right, expand the project folder, double-click Tasks > fg_runs > genIntellijRuns.For Eclipse: the task is genEclipseRuns to run in the IDE directly, open the Gradle Tasks tab on the bottom panel, wait until the tasks have loaded then expand the folder, expand the fg_runs folder, then double-click genEclipseRuns.These tasks can be run in the terminal using. Generate the run configurations for your IDE using the appropriate Gradle task.For Visual Studio Code: This step can be skipped as it was already done in the previous step.Wait for the setup process to complete and the Minecraft sources are decompiled.gradlew eclipse, then File > Open Folder. For IntelliJ IDEA: File > Open, select and open the folder, select the adle file, click OK, click Open as Project.For Eclipse: File > Import > Gradle > Existing Gradle Project, select the folder for the Project root directory, click Finish.Open your IDE of choice, and import the project as a Gradle project.Download the MDK from the official Minecraft Forge download site and extract the MDK into an empty folder.README.txt - Readme file with the basic setup instructions.LICENSE.txt - File containing the licensing information for Forge and libraries.gradlew.bat - The Windows batch file for executing the Gradle wrapper.gradlew - The *nix shell file for executing the Gradle wrapper.gradle.properties - The Gradle properties file, for defining additional variables and options.CREDITS.txt - Forge's credits/ thank you file.changelog.txt - The Forge version changelog.adle - The Gradle buildscript, which defines the project and tasks.gitignore - Used by Git for specifying intentionally untracked/ignored files gitattributes - Used by Git for specifying attributes for files pack.mcmeta - File used by Minecraft to identify data and resource packs.mods.toml - The mods.toml file, where mods are declared.META-INF - The folder for metadata information files.resources - The resources for the main source set.java - The java sources for the main source set.gradle/wrapper/ - The folder containing the Gradle wrapper, Forge uses Version 7.2.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |