Mixin
vineflower
Our great sponsors
Mixin | vineflower | |
---|---|---|
13 | 10 | |
1,314 | 1,024 | |
1.2% | 7.2% | |
6.0 | 8.9 | |
3 months ago | 3 days ago | |
Java | Java | |
MIT License | Apache License 2.0 |
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.
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
vineflower
-
I'm curious, what was the reason Fabric mod loader was made in the first place?
this is kind of a silly point, but the quilt community is just nicer to be around than any of the other ones in my experience, which has real effects: e.g., you attract people really really good at decompiler tech and create quiltflower which is a decompiler so good Java professionals use it. inclusivity matters! the cutting edge happens on quilt
-
Question regarding a mod's safety?
The only way is to reverse-engineer it. Use something like quiltflower or javap if you want to be extra sure, and have a look through the Java code
- Quiltflower – Modern Java Decompiler
-
Can AI Deobfuscate Minecraft?
Firstly, we have to decompile the JAR, turning the bytecode back into Java. This is a very difficult job: a lot of work has been put into the tools to make this happen.
-
is there a extention that adds support for .class files? please let me know
Alternatively, there's this new project that I haven't tried yet: https://github.com/QuiltMC/quiltflower
-
The Code the FBI Used to Wiretap the World
The decompiler they used to view that code is not very good, that output is garbled.
If you're going to take apart JVM bytecode, you're better off using Recafe or Quiltflower.
https://github.com/Col-E/Recaf
https://github.com/QuiltMC/quiltflower
-
Java Decompiler Gui
They are community contributed (through using decompilers to see what the classes do) and decompiler toolchains have ways of instrumenting classes with javadoc. They are also incomplete, you really can't write a mod using only a javadocs page
-
New open source Java decompiler
runs nice with jbang https://github.com/QuiltMC/quiltflower/releases/download/1.8.1/quiltflower-1.8.1.jar
What are some alternatives?
fabric-example-mod - Example Fabric mod
ForgeFlower - Forge's modifications to FernFlower. Fixing various bugs/inconsistencies. Main Repo: https://github.com/MinecraftForge/FernFlower
Visual Studio Code - Visual Studio Code
cfr - This is the public repository for the CFR Java decompiler
MCPConfig - Public facing repo for MCP SRG mappings.
fernflower - Unofficial mirror of FernFlower Java decompiler (All pulls should be submitted upstream)
bytecode-viewer - A Java 8+ Jar & Android APK Reverse Engineering Suite (Decompiler, Editor, Debugger & More)
MinecraftForge - Modifications to the Minecraft base files to assist in compatibility between mods. New Discord: https://discord.minecraftforge.net/
jabel - Jabel - unlock Javac 9+ syntax when targeting Java 8
Recaf - The modern Java bytecode editor
Perses - A project to cause (controlled) destruction on your jvm application
decompiler - Java Decompiler GUI