Questions tagged [minecraft-fabric]

For questions related to creating modifications for Minecraft using FabricMC, an unofficial Minecraft modding API created and built using the Java programming language. FabricMC uses the Yarn mapping set and modifies Minecraft using the Spongepowered Mixin library.

FabricMC

FabricMC is an unofficial modding API for the popular game , originally created by asiekierka and modmuss50.

Fabric is built using the programming language and uses its own custom class loader in order to load modifications.

Fabric officially supports the , and IDEs.

Components

In order to deal with Minecraft's obfuscated names, Fabric uses its own mapping set, Yarn (CC0), to provide names for obfuscated objects within Minecraft. FabricMC also has a plugin named Fabric Loom which is used to remap Minecraft and modification JAR files.

Fabric modifies Minecraft's class files using and its fork of Spongepowered Mixin.

Fabric is highly modular and is composed of several elements, most of which can be found in the GitHub organization.

More Information

Fabric's first version was made available in 2016, but the toolchain wasn't ready for mass usage until 2018 when it was released officially.

Since then, Fabric has updated to every Minecraft version (including "snapshot" versions) in a relatively quick time span.

asiekierka stepped down from Fabric development sometime during July/August of 2019. modmuss50 has continued developing FabricMC.

143 questions
4
votes
3 answers

Could not find or load main class net.fabricmc.devlaunchinjector.Main fabricmc

I was programming a fabric minecraft mod in intellij and when I ran the code it said : Could not find or load main class net.fabricmc.devlaunchinjector.Main When I compiled the code and tried it in minecraft it worked, but in intellij i couldn't…
SD12
  • 51
  • 1
  • 5
3
votes
2 answers

Infer dependencies in Gradle subproject from its parent project

I currently have 3 subprojects in my Gradle project, structured like so: Main Project | -- Project A -- Project B -- Common Src Project A has dependency on Lib A and Common Src, and Project B has dependency on Lib B and Common Src. Lib A and Lib B…
EDToaster
  • 3,160
  • 3
  • 16
  • 25
3
votes
0 answers

How do I create a Minecraft fabric mod that spoofs a resource pack

I am attempting to create a Minecraft fabric mod (or jarmod) that, when sent a server resource pack, sends back a packet acknowledging that it has loaded the resource pack, while it actually has not. This is intended to be used to bypass the way…
3
votes
0 answers

How do I fix the "Configuration with name 'compile' not found" Error when building my Fabric Mod

When trying to build the Fabric ExampleMod(link) I get this Error: FAILURE: Build failed with an exception. * Where: Build file 'E:\Programmieren\Minecraft\Mods\Advanced Totems\build.gradle' line: 2 * What went wrong: An exception occurred…
Toast
  • 77
  • 1
  • 7
2
votes
0 answers

How to exclude a directory in gradle?

I need to exclude files that are used in the github readme from build as they are causing the file size to be way too large. I tried adding this to my build.gradle but the files are still in the build. sourceSets { main { resources{ …
2
votes
0 answers

Creating unit test for Minecraft Fabric serverside mod

I'm currently developing a mod that syncs player information to a database (SQL). I have deveolped the core functionality and I can release it as is, but I wish to add unit tests to make sure that any new changes dosen't destroy old…
hampus toft
  • 55
  • 10
2
votes
0 answers

"Execution failed for task ':runClient'" Fabric 1.17.1

when I run my mod it freezes when it gets to the "Caused by: com.mojang.authlib.exceptions.MinecraftClientHttpException: Status: 401" error, I expect the error since I am not signed into a Minecraft Account but the freezing was odd. Once I stopped…
Glitchy21
  • 21
  • 2
2
votes
1 answer

How to get the title of the open inventory using a fabric 1.16.5 mod

I'm using fabric 1.16.5 to develop a client-side mod for minecraft, and I am trying to get the title of the open inventory (see example below). In the example, the title is "Sell Items - 0" (with the emoji). What I've…
KingsDev
  • 654
  • 5
  • 21
2
votes
0 answers

Timeout of 120000 reached waiting for exclusive access to file

I am trying to create a minecraft mode in visual studio code and I am trying to import the minecraft and fabric API code but it give me this error Could not install Gradle distribution from gradle. Timeout of 120000 reached waiting for exclusive…
2
votes
1 answer

How to get minecraft path with Fabric

I have a mod that wants to read a file splits.yml in the minecraft directory where the other configs are (config.txt, etc.). I have no idea how I would do that. My first idea was using a Mixin @Mixin(GameOptions.class) public class GameOptionsMixin…
DownloadPizza
  • 3,307
  • 1
  • 12
  • 27
1
vote
0 answers

Is there an updated method of implementing Block ESP into a Fabric mod 1.20?

I have been trying to create a Player ESP, Block ESP, and Tracers for a while, I've tried many different methods, but every single method I try just throws an error. I need a way to render blocks or display a green overlay through blocks. I also…
Insilicon
  • 11
  • 1
1
vote
0 answers

How to get the value of a player statistic?

I am developing a Minecraft Fabric mod with custom player stats. Here is how I created a custom player stat: public class ModStats { public static final Identifier MINING_STAT = new Identifier(ExampleMod.MOD_ID, "mining_stat"); public…
Philipp
  • 335
  • 1
  • 6
  • 17
1
vote
1 answer

Is it possible to host a Minecraft server on GitHub Codespaces?

I downloaded the Fabric server jar file to a GitHub Codespace and am able to run the server without trouble. However, I am unable to determine the IP needed to connect to the server. Starting the server automatically forwards port 25565 and I make…
AdamRaichu
  • 149
  • 1
  • 13
1
vote
1 answer

I am having problems with launching a minecraft server, An UnsupportedClassVersionError

Uncaught exception in thread "main" java.lang.RuntimeException: An exception occurred when launching the server! at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:71) Caused by:…
Hoggagf2
  • 21
  • 1
  • 2
1
vote
0 answers

ParseResults as a parameter of getCommandManager().execute

I'm encountering a problem which I have not found anywhere else online as everyone is using CommandManager().executeCommand(player, string); //string is the command which for some reason is not recognized, perhaps it's defunct. What is recognized,…
Email User
  • 103
  • 5
1
2 3
9 10