fabric-example-mod
Mixin
fabric-example-mod | Mixin | |
---|---|---|
30 | 13 | |
1,503 | 1,314 | |
2.0% | 0.8% | |
5.4 | 6.0 | |
5 days ago | 3 months ago | |
Java | Java | |
Creative Commons Zero v1.0 Universal | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fabric-example-mod
- I'm currently having trouble updating my mod from 1.19.4 to 1.20
-
How do voxel games like Minecraft store and load worlds?
For accessing a decompiled minecraft source, I think the easiest way is to grab something people use to write mods (like the fabric example mod or the quilt template mod or the forge getting started guide), open it in an IDE like eclipse or intellij, then just don't write a mod and click around in the source instead. Keep the copyrights in mind
-
Mod Request Help
If you're making a fabric mod, then you can just use the Fabric Example Mod as template
-
How to export a mod from VSC?
This is the template I used, and this is what I used to setup the enviroment, I already coded an item into the mod and it all works, but when I go onto the debug tab on the left and run the code, it opens a new game rather than giving me a share-able .jar file I can drag in myself.
-
I am trying to make a mod
You need to go back to the example mod page, and start again from the 1.18 template. There's a dropdown in the top left to switch between versions. If you can't find it, here's a direct link.
-
Does anyone know how I can make mods for fabric?
Get an IDE you like (I recommend IntelliJ IDEA community with the Minecraft Dev plugin) and download/fork the example mod. That'll give you a good base
-
Problem Creating a Minecraft Mod
Hello, I am trying to create a Minecraft mod with Visual Studio Code using the template provided by Fabric (https://github.com/FabricMC/fabric-example-mod/tree/1.17). When running the mod in the VS Code testing environment both with and without debugging, it works just as expected. However, when I compile it into a jar file and put it into a normal Fabric 1.17.1 installation, Fabric does not seem to recognize it as a mod and just launches without it. Additionally, when I open the jar with 7-zip, there does not seem to be anything specific to the mod. There are no .class files from my code and no assets. It is as if the compiler just puts in the base components, and cannot find the source code or assets. The mod is for 1.17.1. Any help would be appreciated. Thank you.
-
Trying to modify minecraft title screen
Are you using the template https://github.com/fabricmc/fabric-example-mod
-
Writing Minecraft Mods And "Where Do I Start?"
I started modding using Fabric; specifically a combination of the tutorial on the wiki, reading how other mods do stuff, and asking on the Discord. Once you're familiar with how Minecraft works internally using one mod-loader it's easy enough to transfer to the others (or multiple at once, using Architectury as pointed out), but I wouldn't start off with this. The example mod also gets you a setup you can modify at will.
-
Can't use fabric-example-mod
I've been trying to use this the example mod from github for hours, but I just cannot get it to work. I keep receiving a "build failed" error on startup (something like "filename: failed") with no context to go off of. I have downloaded Java, and Intellij works fine for other coding projects. I have no idea what is causing this.
Mixin
-
Hello I would try to start Modding in Minecraft. Have you any advice or good tutorial for beginning ?
And one day maybe you'll need that to inject code into specific location, but it's to do advanced things: https://github.com/SpongePowered/Mixin/wiki
-
Can someone with an coding brain tell me where the problem is? i dont even have a mod named "spongepowered"
SpongePowered isn't a Mod, they're the group that maintain the Framework for Mixins. The next mod in the stacktrace is cpw.mods.modlauncher
-
MineFortress beta is here! More professions, custom buildings, combats and some other things that I worked on during the past months! Let me know what do you think
That source was probably outdated. Forge didn't natively allow you to do that. You could do Java voodoo to allow a library that implemented(? Not sure if it implemented the feature or simply allowed it to be used in a specific way) Mixins, those allow you to modify the game's bytecode. Modern Forge has that library natively. Source: First paragraph of https://github.com/SpongePowered/Mixin/wiki/Mixins-on-Minecraft-Forge
- A Critique of Mojang, and Microsoft. I couldn't post this in r/minecraft for some dumb reason. feel free to critique me if you want!.
- Any advice for a new mod maker?
-
Scratch Is a Big Deal
These days Mojang provides obfuscation maps, so you can work with proper class and method names (though no parameter or local variable names). There's also been a lot of effort been put into the tooling. Nowadays there exists Gradle plugins that will download the game jar, decompile it and deobfuscate it using the official mappings. You develop against the deobfuscated code, then the plugin will turn the unobfuscated names back into their obfuscated versions when you compile. There's also been technology developed that lets you easily modify specific parts of a method in the game, so you can e.g. insert calls to your own functions at runtime.[1] This saves from you having to modify the game jar itself.
[1]: https://github.com/SpongePowered/Mixin
- How tf do i set up mixins
-
New open source Java decompiler
quilt (and fabric) take mojang's jar and preprocess it similarly, but the rest of the modifications to the code are done at runtime using a ridiculously powerful instrumenting classloader. the game is not decompiled at all, other than giving you something to look at in the IDE.
-
Questions on Coremods
If you can't use the API, I suggest you to use Mixins or really asking yourself if your idea should worth the instability/effort of creating a coremod.
-
Minecraft 1.18 Pre-Release 2: Minecraft 1.18 will require Java 17
see spongepowered's mixin wiki
What are some alternatives?
MCP-Reborn - MCP-Reborn is an MCP (Mod Coder Pack) for Minecraft for making modded clients and researching its code. (1.13-1.20.1)
Visual Studio Code - Visual Studio Code
LambDynamicLights - A dynamic lights mod for Minecraft with Fabric.
MCPConfig - Public facing repo for MCP SRG mappings.
yarn - Libre Minecraft mappings, free to use for everyone. No exceptions.
bytecode-viewer - A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
GeneratorFabricMod - Prompts the user for various information and outputs a skeleton mod for the Fabric toolchain
jabel - Jabel - unlock Javac 9+ syntax when targeting Java 8
MinecraftDev - Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
Perses - A project to cause (controlled) destruction on your jvm application
lwjgl - [LEGACY] LWJGL 2.X - The Lightweight Java Game Library.