Creating mods for forge 1.7 10. Tutorial "From A to Z" Creating a Minecraft plugin

This article describes the process of creating modifications for Minecraft using Forge and Eclipse. You don't need to be a professional to create simple modifications, but at least a mediocre understanding of the principles of the Java programming language is desirable. If you encounter any questions or problems while making modifications that are not covered here, please post them on the talk page.

Readiness table
Lesson 1.6+ 1.7+
Block Ready Ready
Item Ready Ready
Craft Ready Ready
Compilation Ready Ready
Generation Not planned Ready
Proxy and instance Not planned Ready
Mob Not planned Ready
Blocks with model Not planned Maybe
Add. Lessons Total: 2 Total: 12

First steps

Let's do the most important thing first: install Java and Eclipse. Regardless of Minecraft versions, for which you want to create a modification, these steps are the same.

Java JDK

The most important thing for writing anything in Java is, naturally, the Java libraries themselves.

You can download them from the Oracle website. Go to this page and click on the Java icon on the left. Scroll down the page that opens a little, select that you agree with the license agreement (Accept License Agreement), and select the item corresponding to yours at the bottom of the first list operating system, and download. After downloading, simply install by clicking Next. After installation, you need to set the installation path to your Windows environment variables. To do this, go to the Computer Properties menu (⊞ Win + PauseBreak or My Computer -> Properties -> Advanced system settings -> Environment variables). Find the Path system variable, highlight it, and click Edit. At the very end of the Value line, add the path to JDK/bin separated by a semicolon, for example, C:\Program Files\Java\jdk1.7.0_45\bin . Then click OK three times.

Today we are starting a series of articles for beginners, designed to help them master Minecraft modding, and most importantly, do it as quickly and usefully as possible. In principle, each of us can find lessons and start creating mods, because at random you can do almost anything, even if it’s not entirely correct and beautiful. This tutorial will protect you from stepping on a rake and will help you get started as quickly and conveniently as possible.

Introduction to Minecraft Modding

It should be noted that Minecraft mods are written in Java. There will be no convenient editors here. You are required to have at least minimal knowledge of Java, or experience with other programming languages, knowledge of their basics. As a last resort, there is a great desire to learn all this. If you don’t stupidly copy examples, but try to understand how it works, then success will definitely await you.

Almost every person who has ever installed Minecraft mods is familiar with the Forge modification, because most mods require its presence in your game. In this article, we will create mods specifically for Forge.

Why Forge? Imagine that you need to fix your TV/computer/iPhone/Large Hadron Collider (underline as appropriate), but all you have at hand is a hammer and nails. Of course, we’ll go and get a dusty toolbox, which contains pliers, tweezers, and basically everything else your heart desires. In our case, Forge is that desired toolbox.

Let's get to work

First we need to download the JDK (Java Development Kit)

The article is exclusive to the site. Copying and reprinting of information is possible only with the written consent of the author.

Hello, dear friends! With this article I give a start to writing material on creating Minecraft mods. Of course, you can't wait to start working on some epic and original mod, but there's no need to rush. Before you begin, you will need to install the necessary software.

What we need:

  • Java JDK
  • MinecraftCoderPack
  • Minecraft
  • ModLoder
  • NotePad++
  • Eclipse

*Don’t worry, even though the list consists of as many as 6 points, in reality everything is much simpler than it seems.

First you need to install Java and pure Minecraft (preferably licensed), of course you already have this, but still... To avoid errors, or if any appear, refer to the video tutorial “ Installing Java JDK”, which is available at the bottom of the page. There you can also find a video on installing Minecraft Coder Pack (MCP).

MCP installation

Today the current version is MCP 7.23. This version is suitable for game 1.4.5

Download, unpack to any folder ( example: “mcp” folder on the desktop).
We will need clean Minecraft 1.4.5. To do this, launch the game and click “Force update”.

Let's go along the path: “C:\Documents and Settings\YourUser\Application Data\.minecraft”

*You can follow this path by pressing the Win+R key combination and then entering in the field: %appdata%

Download ModLoader latest version(1.4.5) and install it. Installation lesson ‘and you can always find it without my help, but I hope you can do it.

Let's create a backup just in case minecraft.jar.

Copying folders bin And resources to the “jars” folder of our mcp.
Let's launch decompile.bat, upon completion, press any key. If during decompilation the computer gave you a couple of errors, then do not worry about this.

Installing Eclipse

Where will we work with code, create and edit our mods? In the Java editor, of course! I prefer Eclipse, but you can also use NetBeans. Honestly, almost any text editor will do, but it’s more convenient to work in special programs.

Installation of this software is quite simple. Now we launch and specify the path:
“C:\Documents and Settings\User\Desktop\mcp\eclipse”

NotePad++ editor will also come in handy. With its help, you can also edit the necessary files, and act very quickly and conveniently.

*Attention, do not forget to copy exactly 2 folders ( bin And resources). This is not mentioned in the video!

Video

I also advise you to familiarize yourself with the Quick installing Minecraft Coder Pack. You just need to repeat all the steps after me.

Many players dreamed of a program that could create modifications. Thanks to developer Pilo, anyone can download MCreator for Minecraft 1.7.2 and 1.7.10 and start creating their own mods without deep programming knowledge. Create new blocks, things, achievements, new types of existing blocks, mobs, biomes, food, tools, plants, cars and more. Any idea can be easily implemented using the MCreator 1.7.10/1.7.2 program.

Create different types of mods


This program allows you to create various types of modifications, including overlays (like in the mini map mod), cars, structures, dimensions, tool sets, weapons (swords, guns) and more.

Intuitive interface


MCreator offers a convenient way to place items in a menu. The developer just needs to move things and elements onto the work surface using the mouse.

Crafting recipes and drops


Write recipes and drops as easily as crafting in the game. Use filters to search through a huge list of things in Minecraft. MCreator can export pictures of recipes so that they can be placed on the site.

For experienced developers


Experienced developers will love the ability to edit source code mods in a convenient interface. The MKreator program editor has syntax highlighting, auto-completion and other things that are pleasant for the programmer. Integration with Eclipse is supported.

Share: