


This is enough for forge to load the mod, so press the run button (or run gradlew runClient). Your mods.toml file should look something like this: The modid (Needs to be the same as in the annotation.The mods we are making, which need to contain:.We don’t need everything in that example, we only need to specify: But the example from forge shows you a lot. You should look into the toml format to understand how the file works. The mods.toml will tell forge which mods exist and some things like the name, modId, version etc. In this folder create a file named mods.toml. It follows the exact same format as for 1.12 but you need to use a pack_format of 4:Ĭreate a new folder with the name META-INF. In this file you specify some of the metadata for the mods resources. We also need to add a couple of files to the “ src/main/resources” folder.Ĭreate a file called pack.mcmeta. requires the modid as an attribute, so let’s add it. This will tell forge that this is a mod file. In the Mainclass add an annotation above the class declaration. In the reference class add 1 public static final String variable: MODID, this will be the id of your mod, it can be whatever you want, but it has to be all lowercase.

The basic files are now set up so let’s start coding! This class is going to contain all of the of the constant values. One last class before we can start coding, I will call it Reference.This class will be the entry point of the mod. Create a class in the mod packageand I will call it TutorialMod I will be referring to this class as the Main class.This package will contain all of the classes we are going to create. But you should think of your own name, I will be referring to this package as the mod package. Create a package in the “src/main/java” source folder.However, Minecraft’s own random generation can often produce extraordinary worlds, all without player input.First, we need to create the main mod class. Players can also try the best seeds from previous Minecraft versions even though terrain generation can change between updates, it’s worth trying them. These are some of the most unique seeds players can use to generate worlds in Minecraft 1.20. There’s also a woodland mansion close by at (-6083, 65, -5007) players can explore. Players can also mine for minerals and catch and breed Minecraft’s Axolotl mobs. However, it’s well worth the effort as it’s a highly unusual terrain feature. Unfortunately, players will need to travel a great distance to (-5929, 65, -5113) to find it, since this unique terrain feature doesn’t appear at spawn. Discovered by Reddit user u/JVFA5GCGWF, this seed generates a giant Lush Cave biome with an abandoned mineshaft that’s also open to the sky: an extremely rare find.
