Wednesday, July 17, 2024
HomeMust ReadMinecraft Modding With Forge

Minecraft Modding With Forge

Download The Mods You Want

Minecraft Modding 1.18.1 with Forge | SETTING UP WORKSPACE

The next step involves downloading Minecraft mods. We recommend using popular sites like CurseForge or MinecraftMods.

Expert Tip

If you are looking for a specific mod and the mentioned websites dont carry it, be very careful. Mods from untrustworthy sites may contain hidden malware or viruses.

Egidijus N.

Head of Cyber Security

In this tutorial, well be setting up Just Enough Items , an excellent first mod. Open the website and check the Minecraft version indicated on the mod page your game must match it. Once thats done, click on:

Keep in mind that some mods come in .zip archives, so youll have to extract them before installation.

Running Minecraft And Verifying The Mod

Lets launch the game to see what this mod does!

Press the green arrow shown in Figure 1-8 to run the game.

Figure 1-8. Running Minecraft with Eclipse

There is a lot that happens in the background to run the game. Remember javac, java, and jar, all of which are tools that we installed earlier as part of the JDK? Eclipse uses these tools to compile all the Java source files from our project into class files. These files are then packaged into a JAR file. This JAR file is then used to run the Minecraft server and the client launcher. The client is also connected to this server as well. This is shown in Figure 1-9.

Figure 1-9. Default Minecraft client

The lower-left corner of the client window shows the version of Forge, 1.8 in this case. It also shows how many mods are loaded, four in this case. Three of the mods are default Forge mods that are required by Forge, and the fourth one is the example mod that is explained in this chapter.

The server console is displayed within a new tab in Eclipse, as shown in Figure 1-10.

Figure 1-10. Server console in Eclipse

Figure 1-10 shows an empty server console, but this will be populated with messages from the server log. You should see the message shown here in the Minecraft server console:

 : :DIRT BLOCK > >  tile.dirt

And so now you have run the Minecraft client and can play the usual game. The big difference between now and before is that you can change the game to your liking. Doesnt that feel more exciting than just playing the game?

How To Install Minecraft Mods Manually

Now that your Minecraft server is running and the JDK has been set up, we can proceed with the Minecraft mod installation process.

Expert Tip

If youve got a Linux-based Minecraft VPS and want to install mods make sure to follow your specific hosting providers guidelines.

Eimantas M.

VPS System Engineer

Read Also: How To Make A Timer In Minecraft

Changes To The Buildgradle File

For the next step you will open the build.gradle file which contains crucial information about your mod as well as other things needed for the forge project.

version = '1.0'group = 'com.yourname.modid' archivesBaseName = 'modid'

Located on line 15, 16 and 17 respectively are the first important things to change.

version refers to the version of your Mod . group refers to the name of your package which contains the mod. Think of it as a reverse of a domain would be for a Mod from modid is very important and refers to a unique id with which your mod will be identified. For demonstration purposes we will change it to tutorialmod in this case!

I have changed the line accordingly:

version = '1.16.5-1.0'group = 'net.tutorialsbykaupenjoe.tutorialmod'archivesBaseName = 'tutorialmod'

Refrain from using the same group as me. Use com.yourname.tutorialmod. Otherwise people might not believe your work is actually yours!

Were not done yet though. Press CTRL + R or CMD + R to open up the Replace menu. At the top of the file a replace menu you should open.

Put examplemod in the first line and tutorialmod in the second and click Replace all. You can then save the file by pressing CTRL + S. You should note that a little elephant appeared on the top right corner. Do not yet click it though.

How To Install Minecraft Forge 119


Our handy guide to installing Minecraft Forge for versions 1.18 and 1.19 to manage your mods and how to use the Minecraft Forge mod installer

Want to know how to install Minecraft Forge and manage your mods? Its pretty simple to set up and once you get started, youll have a place to keep track of all your mods, whether thats tweaking your interface or spicing up your exploration.

Minecraft mods are not in short supply, so when it comes to managing the Forge mods youre using in Mojangs sandbox game, the sheer volume of mods can be a tad overwhelming. Minecraft Forge only works for the Java Edition, so if youre not living your best modding life on the original PC version, then theres plenty of fun to be had exploring Minecraft PE seeds to keep your busy for hours.

If you do have the Java Edition, then Minecraft Forge is a fantastic tool for managing every single one of your compatible mods. When approaching it for the first time, it can be a little daunting. But dont fret, weve created an easy step-by-step guide to installing Forge for Minecraft so you can quickly and seamlessly alter your Minecraft experience.

You can install Minecraft Forge in these three easy steps:

  • Download Minecraft Forge at the official website. Make sure you double check your version, so you download the correct one. The list of versions can be found along the left hand side.
  • Also Check: How Fast Does Sugar Cane Grow Minecraft

    Whats Different About These Tutorials

    These tutorials aim to actually teach the concepts behind the code, instead of simply spoonfeeding. Its also a major goal for these tutorials to represent the recommended or correct way to do things, as defined by the official Forge documentation and by established convention.To aid in these goals, this website is actually open source. This means that anyone can contribute tutorials to the site . If youre interested in contributing, check out the repository for the website.

    How To Play With Forge In Minecraft

    When the Minecraft launcher opens up, you’ll need to select Forge. You can choose it by clicking the arrow next to the play button. A list of versions should pop up, look for Forge and select it.

    If Forge doesn’t appear, click the Installation, and you should see Versions on the top right of the Installations page. Make sure Modded is selected for Forge to appear.

    Learn more about Minecraft with some of our other helpful guides:

    Also Check: How To Build A Working Car In Minecraft

    Choose A Mod Launcher And A Modpack

    Note that mod launchers are separate from the default Minecraft launcher you will need to download and install them separately. Some of the best launchers include CurseForge, ATLauncher, Feed the Beast , and Technic.

    In this tutorial, well be using the Technic launcher to install the Tekxit 3.14 Pi modpack.

    Obtain A Source Distribution

    How to Start Minecraft Modding 1.16.5 with Forge | Forge 1.16.5 Modding #1

    Visit and make sure the version selected is the version for which you want to create a mod. In the large “Download Recommended” box, click on the small MDK box. A dialog box will appear, asking where you want to save the file, and what to name it. Choose any convenient location, but leave the name unchanged.

    Read Also: How To Color Shields In Minecraft

    Creating A Custom Block

    Setting up Block Registration

    Firstly, create a new DeferredRegister of type block which will be used to register any blocks. Make sure to import net.minecraft.block rather than any of the other options.

    publicstaticfinalDeferredRegister< Block> BLOCKS=DeferredRegister.create 

    Next, you need to register the method with the IEventBus parameter. If you have a separate ModBlocks class then add the following method to it, otherwise add it to your already existing register method.


    To create blocks easily add the following two helper methods to your class. registerBlock registers the block while registerBlockItem registers the associated item.

    privatestatic< TextendsBlock> RegistryObject< T> registerBlockprivatestatic< TextendsBlock> voidregisterBlockItem

    Finally, like with items add the register call to your main class.


    The following code shows how to add a simple block.

    publicstaticfinalRegistryObject< Block> EXAMPLE_BLOCK=registerBlock-> newBlock.harvestLevel.harvestTool.setRequiresTool.hardnessAndResistance)) 
    Blockstates JSON


    "block.examplemod.example_block":"Example Block",


    Associated Item Model JSON




    Put your texture image here.

    How To Install Minecraft Forge

    The process of downloading and installing Minecraft Forge is very straightforward. You first need to download the installer from the official Forge website, run the installer with the correct options selected, then launch Minecraft. Once you’ve done that, you’ll be able to install and run any Forge-compatible mod you like.

    To install Minecraft Forge, follow each of these steps in order:

  • Navigate to the official Forge website.

  • Select Windows installer if you have Windows or click Installer if you have a Mac or Linux computer.

    If you don’t have any specific mods in mind, download the recommended version. Some older mods will only work with older versions of Forge, in which case you need to select show all versions, then locate the compatible version.

  • The next screen will show an advertisement. Wait for the ad timer to run down, then select Skip in the upper right corner. Don’t click anything else on the page.

    If you have an ad blocker, or your browser blocks ads natively, you will see a blank screen. Do not click anything. Just wait, and the next page will load.

  • Wait for Forge to download, then open the file you downloaded. With the installer open, select Install Client, then select OK.

  • Launch your Minecraft client, and select the up arrow next to Play to open the profiles menu.

    Forge only works with Minecraft: Java Edition. If you’re using Windows 10, make sure you have Minecraft: Java Edition installed and not the version of Minecraft sold in the Microsoft Store.

  • Don’t Miss: How To Use Mods In Minecraft Java

    How To Install Mods For Minecraft Forge

    This guide will explain how to install mods that have been made for the Minecraft Forge API.

    1. Make sure you have already installed Minecraft Forge.

    2. Download a Forge compatible mod from this site, or anywhere else!

    3. Open Minecraft, click the Mods button on the main menu, then click Open Mods Folder.

    Important: Some older versions of Forge may not have the Open Mods Folder button. If that is the case, you need to find the folder manually.


    • Press the Windows key and R at the same time
    • Type %appdata% and press enter
    • Find the Minecraft folder and then look for the Mods folder within that


    • Type ~/Library and press enter
    • Open the folder Application Support and then Minecraft

    4. Place the mod you have just downloaded into the Mods folder.

    5. Relaunch Minecraft, and you should now see the mod you have installed in the list!

    What Is Minecraft Forge

    Minecraft Forge 1.17

    Minecraft Forge is a free application program interface and mod loader for Minecraft: Java Edition. Mod developers within the Minecraft community use the API to simplify the creation of their mods, then players use Forge to automatically load compatible mods.

    Minecraft is great on its own, but installing community-built Minecraft mods opens up brand new ways to play, and some of the best ones are built on Minecraft Forge. Mods are literally user-created modifications for Minecraft that add new content, make it run better and look better, make your life easier in-game, and more. You need Forge first, so we’ll show you how to install Minecraft Forge, and then provide some tips on what to do once you have it.

    You May Like: What Is Bedrock In Minecraft

    Minecraft Forge Mods: How To Install

    Minecraft Forge is the most popular Minecraft mod loader. To use or run some of the more popular mods, you will need to install Minecraft Forge. With mods, you can virtually add new content to the game.

    Installing mods may seem daunting at first. But in this IGN guide, we’ll teach you everything you’ll need to know about installing Minecraft Forge with step-by-step details on what to do and how to use Forge in Minecraft.

    The Ultimate Guide To Minecraft Modding With Java

    In this Minecraft Modding tutorial, we will be providing you with step-by-step instructions on how to get started with Minecraft modding while creating an awesome custom Sword that youll get to play in the game.

    Well be using Minecraft 1.12.2 as it is the version compatible with our current Minecraft courses. Newer versions may use different setup instructions.

    As a rule of thumb, Minecraft mod code is not compatible from version to version. For example, 1.12 mods will not work with 1.13 and above.

    Youll need a PC or Mac computer for this tutorial, as Chromebooks or mobile devices will not run the software properly.

    At CodaKid we have taught over 50,000 students Minecraft coding, and have won numerous industry awards for online courses including a Parents Choice Gold Award and CODiE Finalist for Best Coding and Computational Thinking Solution.

    While we teach coding for kids, this guide can be used by teachers, parents, or anyone with an interest in creating a custom Sword Mod for Minecraft Forge.

    We hope that you enjoy this free step by step guide to covering one of the first courses we teach in our Minecraft Modding series.

    Well cover the very basics of what youll need to start Minecraft modding, and you will learn how to use Java, one of the most popular programming languages in the world.

    Well also teach you how to download and use the Eclipse IDE, a text editor used by professional developers at companies such as Facebook, Google, and Amazon.

    Read Also: How To Install Minecraft Forge 1.12 2

    Creating A Custom Mob

    Models from Scratch

    The best way to model mobs is probably blockbench . Blockbench is a free modeling tool, and it would be much faster and easier than taking the other approach, which is slow. If you want to model with it, simply make a cube, position it, rotate it, size it, and make your model the way you want to make it. If you need more cubes, you can easily make a new one. This is probably the best method for this. It is fast, easy, and customizable.

    Implementation Pattern For Initialization Proxies

    Minecraft 1.19 Forge Modding Tutorial | SETTING UP THE WORKSPACE | #1

    This example shows you how to implement proxy classes for your Minecraft Mod Application, which are used to initialize your mod.

    First of all you will need to implement the base class which contains the 3 mainly used method:

    public class CommonProxy     public void init     public void postInit }

    Normally your mod has 2 different packages for Client and Server Code, so you will need in each package a child class of like:

    public class ClientProxy extends CommonProxy     @Override    public void init     @Override    public void postInit }

    and for the server:

    public class ServerProxy extends CommonProxy     @Override    public void init     @Override    public void postInit }

    After you have created this classes you are able to extend them by methods which have to run only on client or server side, but can also attach them to both if you call the methods in the ‘base’ class.

    Lastly you have to define which proxy is taken at runtime. You have to extend your main mod class with the @Mod annotation, by:

    private static final String CLIENTPROXY = "com.yourpackage.client.ClientProxy" private static final String SERVERPROXY = "com.yourpackage.client.ServerProxy"     @SidedProxypublic static CommonProxy PROXY 

    This will enable Forge to detect which class should be taken at runtime. In the initialization methods of your Mod you can now use this static PROXY property.

    Read Also: How To Put A Block On Your Head In Minecraft

    Minecraft Modding With Forge

    Minecraft has become a phenomenon over the last few years, from being almost unknown at the start of 2011 by an independent developer to becoming one of Microsoft’s surprise purchases of 2014. Part of the reason for its success is that the virtual environment enables single-player and multi-player alike to build worlds, but also create new content by ‘crafting’ together existing resources to form new ones. But another key reason for its success is that the implementation, running in a Java VM, has spawned a world of ‘modders’, who build plug-ins to extend a Minecraft’s world with new capabilities, or to enable building worlds programmatically.

    Although Minecraft is distributed without source , a collection of reverse engineering tools provided a platform for making the core of the game understandable and extendable. Bukkit existed as a modding platform but ran into some problems whilst another modding community created Minecraft forge. These tools inspired the modding community which further helped fuel interest in the game servers containing mods were popularised and group games helped propel Minecraft into the spotlight.

      Related Sponsored Content

    Related Sponsor

    Code, deploy, and scale Java your way.Microsoft Azure supports your workload with abundant choices, whether you’re working on a Java app, app server, or framework. Learn more.

    InfoQ caught up with the author Arun Gupta, and started off by asking why he thought children are so interested in Minecraft:

    Forge Vs The Vanilla Version

    When you download and install Minecraft Forge, Minecraft: Java Edition provides you with the option to play the vanilla edition or your Forge-modded edition every time you play. Choosing Forge causes Minecraft Forge to automatically load all of your mods, while choosing the vanilla version allows you to play without any mods.

    Due to the way you can choose to load Forge or vanilla Minecraft, you never have to worry about Forge or an individual mod breaking your game. If something weird happens, you can always just play the vanilla version of Minecraft until a patch arrives for Forge, the offending mod, or Minecraft itself.

    Major Minecraft updates often cause bugs with Forge and individual mods. When that happens, you can choose to run the vanilla version until additional patches arrive, or try removing all your mods and adding them back in one at a time to see which one is causing trouble.

    Recommended Reading: What Can You Plant In Minecraft


    Most Popular