Difference between revisions of "Tutorial 1.15 Episode1"

From McJty Modding
Jump to: navigation, search
Line 3: Line 3:
 
In this tutorial the basic principles of modding are explained. You learn how to use the build system. How to update Forge and get the basic mod going.
 
In this tutorial the basic principles of modding are explained. You learn how to use the build system. How to update Forge and get the basic mod going.
  
* build.gradle: https://github.com/McJty/YouTubeModding14/blob/master/build.gradle
+
* '''Video''': https://www.youtube.com/watch?v=gbhfKgAAmMM
* Main mod file: https://github.com/McJty/YouTubeModding14/blob/master/src/main/java/com/mcjty/mytutorial/MyTutorial.java
+
* ''build.gradle'': https://github.com/McJty/YouTubeModding14/blob/master/build.gradle
* mods.toml: https://github.com/McJty/YouTubeModding14/blob/master/src/main/resources/META-INF/mods.toml
+
* ''Main mod file'': https://github.com/McJty/YouTubeModding14/blob/master/src/main/java/com/mcjty/mytutorial/MyTutorial.java
* Video: https://www.youtube.com/watch?v=gbhfKgAAmMM&feature=youtu.be
+
* ''mods.toml'': https://github.com/McJty/YouTubeModding14/blob/master/src/main/resources/META-INF/mods.toml
  
 
==Useful Links==
 
==Useful Links==
 +
 +
* GitHub: https://github.com/McJty/YouTubeModding14
 +
* Forge: http://files.minecraftforge.net/
 +
* Forge Forums: https://forums.minecraftforge.net/
 +
* Official Forge Documentation: https://mcforge.readthedocs.io/en/1.15.x/
 +
* Forge Discord: https://discord.gg/UvedJ9m
 +
* McJty Discord: https://discord.gg/dRTtrdK
 +
* Mappings: http://export.mcpbot.bspk.rs/
 +
* Official Java Documentation: https://docs.oracle.com/javase/tutorial/
 +
* Basic Java Tutorial: https://www.codecademy.com/learn/learn-java
 +
* Online Java Course using assignments: https://java-programming.mooc.fi/
  
 
==Concepts==
 
==Concepts==

Revision as of 10:01, 6 August 2020

Introduction

In this tutorial the basic principles of modding are explained. You learn how to use the build system. How to update Forge and get the basic mod going.

Useful Links

Concepts

  • Mod: a mod is a set of Java classes, usually distributed in a jar archive, which is designed to modify the Minecraft game. These days mods no longer directly modify Minecraft code but instead they work through an API that sits on top of Minecraft. Two popular API's (or also called mod loaders) are Forge and Fabric. In this tutorial we focus on modding using Forge.
  • Mappings: Minecraft ships with obfuscated names due to various reasons that are beyond the scope of this tutorial. In order to make the life of modders easiers these names are first translated to SRG names. These are still not human readable but they are standard over different versions of Minecraft (as long as the signature of the method doesn't change and as long as it isn't a new method/class that didn't exist before). Finally SRG names are mapped to human readable names. This process is automated by the gradle setup so you usually don't have to worry about it except for picking the appropriate version of the mappings.

Project Setup

Setup of Minecraft mod projects happens with gradle. The build.gradle file (https://github.com/McJty/YouTubeModding14/blob/master/build.gradle) is the most important file for that. In that file you setup dependencies, the version of Forge that you are using, the version of the mappings that you are using and so on.