Questions tagged [minecraft-forge]

Minecraft Forge is an unofficial API for extending Minecraft. It is built upon the Minecraft Coder Pack (MCP) and is usually updated to the latest version upon release. It is built upon java and has its own initialization system.

Minecraft Forge is an application library for .

This library is used to compile and play modifications (mods) to Minecraft.

Minecraft Forge works by doing live ASM modifications to the Minecraft classes and injecting its own event busses into the Minecraft classes without permanently changing the original Minecraft classes.

There are different aspects to Minecraft forge. There is the Forge client/server and Forge Mod Loader (FML) which allows players to load the mods into their Minecraft instance. This is used by the players to play and use the mods. When the Minecraft instance starts, Forge injects itself into the Minecraft classes and then starts up an FML instance which checks the "mods folder" for mods and injects those into the proper places.

There is also the development instance of Minecraft Forge which comes as a standalone library/sources or a prepackaged and setup where you have very little setup to do to start modding Minecraft with Forge. It is the foundation of the majority of current client/server-side mods of Minecraft.

Minecraft Forge builds can be downloaded at the Minecraft Forge Downloads page.

See the Forge Forum or the Forge Documentation for more information on MinecraftForge.

777 questions
22
votes
1 answer

Where to start with creating Minecraft client mods

I've looked all over the net and YouTube and for some reason this is some top secret information or something but I'm trying to find out where to get started on making a Minecraft client mod, preferably something that can be put into a pack like…
Tony
  • 734
  • 4
  • 19
  • 37
15
votes
11 answers

The method must override or implement a supertype method

I am making a custom armor, and in my armor class I am getting this error: The method getArmorTexture(ItemStack, Entity, int, int) of type ArmorE must override or implement a supertype method Why I am getting this error? Here's my code: Armor…
GriffinMite
  • 193
  • 1
  • 3
  • 9
15
votes
1 answer

Add external jar in gradle

How can I add an external library in gradle? My build.gradle contains: buildscript { repositories { mavenCentral() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } …
QuadX
  • 661
  • 1
  • 7
  • 10
14
votes
2 answers

Minecraft Forge 1.8 - Loading Block Textures

I have just started learning Java while modding Minecraft. I have watched a tutorial on adding the blocks into the game using the Minecraft Forge API, but I have a problem. There is no longer the ".setBlockTextureName ()" method, so I don't know…
MrStank
  • 314
  • 4
  • 10
11
votes
5 answers

Gradle sync failed: Unable to make field private static final java.util.Map java.lang.ProcessEnvironment.theCaseInsensitiveEnvironment accessible

I try to build my gradle project and I get the following error: 1:36 PM Gradle sync failed: Unable to make field private static final java.util.Map java.lang.ProcessEnvironment.theCaseInsensitiveEnvironment accessible: module java.base does not…
Quapi
  • 111
  • 1
  • 2
  • 5
11
votes
2 answers

Intellij IDEA Maven Import problems

I wanted to switch to IntelliJ for forge modding (minecraft). When I do what they are saying to do on internet, I get a maven error... Unindexed remote maven repositories found. Disable... The following repositories used in…
Etienne Poulin
  • 178
  • 1
  • 4
  • 15
8
votes
3 answers

Could not determine java version from '13.0.1'

I have gradle 6.0.1 and JDK 13.0.1 installed and tried gradlew setupDecompWorkspace, but it tells me "Could not determine java version from '13.0.1' ". I've tried to find an answer for a week now and I can't find a solution. edit: the result of…
jaliho
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

Modifying Minecraft World files Programatically (Java)

I have a forge server/client project setup in Eclipse and am running a vanilla server. I'd like to copy some structures my children have built in another vanilla world and modify them slightly (ie. change the scale, replace block types, etc) and…
Casey Murray
  • 1,582
  • 17
  • 21
7
votes
2 answers

How to log information in Forge?

I'm trying to log into using MinecraftServer.logInfo(), but I get a nosuchmethod exception. server.logInfo("Example message"); I'm getting the instance of MinecraftServer in the server starting event. MinecraftServer server =…
Alsan Ali
  • 187
  • 2
  • 10
7
votes
1 answer

How to set Gradle environment variables?

I'm trying to execute a Gradle command-line task -setupDecompWorkspace to set up Minecraft Forge, but the task gets stuck on decompileMC. I've tried the first solution from this issue, but it didn't work. The second solution suggest setting the…
Matthew
  • 1,905
  • 3
  • 19
  • 26
6
votes
1 answer

Disable "Constant conditions & exceptions" inspection for field in IntelliJ IDEA

I'm using a framework (Minecraft Forge) that injects specific objects into public static final fields with null values (through the @CapabilityInject and @ObjectHolder annotations). Unfortunately whenever I reference one of these fields in a context…
Choonster
  • 141
  • 1
  • 7
6
votes
2 answers

Minecraft forge not loading textures

I'm trying to teach myself java syntax and using minecraft as a platform for diving in. I'm having a problem though because none of my textures are being loaded. For that matter neither are my localizations. Here is the code for my block package…
richbai90
  • 4,994
  • 4
  • 50
  • 85
6
votes
5 answers

Where are the source files for forge?

When I try to open Block.class, or any other classes from the same package as Block.class, eclipse will say: "the source attachment does not contain the source for the Block.class. You can change the source attachment by clicking Change Attached…
lllendexll
  • 81
  • 1
  • 1
  • 3
5
votes
1 answer

Found Gradle version Gradle 7.4. Versions Gradle 6.0.0 and newer are not supported in FG3, FG4 however supports Versions 6.8.1 and newer

I have a problem with Gradle. I'm trying to make a mod for Minecraft 1.12.2 and I'm using Intellij IDEA. Everything works fine for the version 1.16.4, but if I want to build a mod for the 1.12 I get this error: Failed to apply plugin…
mondab17
  • 51
  • 1
  • 3
5
votes
1 answer

Is there a way to cast enum into other enum?

I'm trying to make a mod for 1.7.10 (I know, outdated, but I don't think it matters much in this context) merging a few mods with CustomNPC, basically adding a few weapons that would look and work like CustomNPC weapons but made of differen mods'…
AHuIci
  • 51
  • 2
1
2 3
51 52