this post was submitted on 29 Oct 2025
819 points (99.5% liked)

Games

43105 readers
2680 users here now

Welcome to the largest gaming community on Lemmy! Discussion for all kinds of games. Video games, tabletop games, card games etc.

Rules

1. Submissions have to be related to games

Video games, tabletop, or otherwise. Posts not related to games will be deleted.

This community is focused on games, of all kinds. Any news item or discussion should be related to gaming in some way.

2. No bigotry or harassment, be civil

No bigotry, hardline stance. Try not to get too heated when entering into a discussion or debate.

We are here to talk and discuss about one of our passions, not fight or be exposed to hate. Posts or responses that are hateful will be deleted to keep the atmosphere good. If repeatedly violated, not only will the comment be deleted but a ban will be handed out as well. We judge each case individually.

3. No excessive self-promotion

Try to keep it to 10% self-promotion / 90% other stuff in your post history.

This is to prevent people from posting for the sole purpose of promoting their own website or social media account.

4. Stay on-topic; no memes, funny videos, giveaways, reposts, or low-effort posts

This community is mostly for discussion and news. Remember to search for the thing you're submitting before posting to see if it's already been posted.

We want to keep the quality of posts high. Therefore, memes, funny videos, low-effort posts and reposts are not allowed. We prohibit giveaways because we cannot be sure that the person holding the giveaway will actually do what they promise.

5. Mark Spoilers and NSFW

Make sure to mark your stuff or it may be removed.

No one wants to be spoiled. Therefore, always mark spoilers. Similarly mark NSFW, in case anyone is browsing in a public space or at work.

6. No linking to piracy

Don't share it here, there are other places to find it. Discussion of piracy is fine.

We don't want us moderators or the admins of lemmy.world to get in trouble for linking to piracy. Therefore, any link to piracy will be removed. Discussion of it is of course allowed.

Authorized Regular Threads

Related communities

PM a mod to add your own

Video games

Generic

Help and suggestions

By platform

By type

By games

Language specific

founded 2 years ago
MODERATORS
 

Minecraft: Java Edition has been obfuscated since its release. This obfuscation meant that people couldn’t see our source code. Instead, everything was scrambled – and those who wanted to mod Java Edition had to try and piece together what every class and function in the code did.

Modding is at the heart of Java Edition – and obfuscation makes modding harder. We're excited about this change to remove obfuscation, as it should make it quicker and easier for modders to create and improve mods. Now you won’t have to untangle tricky code or deal with unclear names. What’s more, de-bugging will become more straightforward, and crash logs will actually be readable!

surprisingly fantastic and consumer friendly move from mojang, good on them

you are viewing a single comment's thread
view the rest of the comments
[–] Unattributed@feddit.online 20 points 1 day ago (1 children)

Not only do I think this will generate a fair number of CVE's, I think there will be a lot of optimization of the code going on.

Look at what happened with OpenOffice a few years back -- the Oracle buyout of Sun Microsystems forced the forking of OpenOffice to LibreOffice -- during which the new Dev team took the time cleanup and refactor the code. This resulted in a suite that was about 10 percent smaller, and removed a bunch of redundant things (like multiple copies of icons).

I bet we see something similar with Minecraft -- even if it can't be an "authorized" version.

[–] DaPorkchop_@lemmy.ml 25 points 1 day ago (1 children)

This doesn't really change too much for the modding scene, it just allows the deobfuscation step to be skipped when setting up a dev environment. Mojang has already been providing official deobfuscation mappings for years, and before that we had community-made ones which were already pretty great.

There are already plenty of mods which drastically overhaul how major parts of the game work to get better performance, and there are some projects like Gregtech: New Horizons and CleanroomMC which have pretty much completely torn apart and rebuilt the game on older versions from before official deobfuscation mappings were even available.

[–] Unattributed@feddit.online 5 points 1 day ago (2 children)

Right, but this means these efforts can be undertaken on the current release, and done without having to work around Mohjang's obfuscation.

Removing this kind of barrier is a major change. Less time will be spent on trying to understand code that has been obscured from view. It will be easier to ensure "correctness" in code that is optimizing the server (ie, that new code will not break internal dependencies). It will be easier to ensure compatibility between the official release and community based extensions.

I understand that the modding community has been able to do a lot up to this point...(I play on an optimized modpack). But, I'm betting this will actually produce a larger jump in terms of the efficiency of all codebases - including Mohjangs. Just the reports that document issues (not CVE level issues) for Mohjang will lead to them improving the base code.

[–] brucethemoose@lemmy.world 4 points 1 day ago* (last edited 1 day ago) (1 children)

It has. There have been major rewrites of parts of the codebase, like Sodium, Cubic Chunk, server frameworks, just to start.

Major performance issues, and associated code fixes, have been repeatedly reported to Mojang's tracker.

The issue is that any major modification is inherently incompatible with other major modifications, hence most persist for one version (or a few) before the devs burns out maintaining it. There are two solutions to this:

  • Get Mojang to pull in large optimizations. Thus far, they have been uninterested in this (though some controversy over Optifine may have left a bad taste).

  • Pull the changes into a modding framework. Understandably, Fabric/Forge aren't willing to pull in a huge overhaul they'd have to maintain. Mojang may have similar feelings.

Some modifications (like Sodium) minimize vanilla changes to prioritize compatibility, and are popular to the extent that some other mods implement workarounds for them specifically. But this is rare, and it's still problematic.

[–] Unattributed@feddit.online 1 points 20 hours ago (1 children)

Get Mojang to pull in large optimizations. Thus far, they have been uninterested in this (though some controversy over Optifine may have left a bad taste).

I remember that. I think the issue there was it mostly handled badly... It seemed like Mojang was trying to go behind the communities back (which I thought sounded a lot like the way Microsoft does things...so I blamed them instead of Mojang). IMO - if this is an era of more open-collaboration it may be possible for Mojang to benefit from working with the community. (There is an excellent example of this in the way AMD has worked with the Open Source community...)

Pull the changes into a modding framework. Understandably, Fabric/Forge aren’t willing to pull in a huge overhaul they’d have to maintain. Mojang may have similar feelings.

I can see that too... That's why I am thinking that it might be possible for there to be a more collaborative effort... Like a repository set up where community devs can submit PR's for changes, and Mojang can either approve or deny them. If that started working well, I could see a situation where there are specifically Mojang employed community devs, the role of working on changes that will help both the main Minecraft tree and the modding community.

(Okay, I am probably more optimistic than I should be -- after all Microsoft is in the mix here...)

[–] brucethemoose@lemmy.world 2 points 20 hours ago* (last edited 20 hours ago) (1 children)

Yeah, that sounds dreamy. It could certainly work.

And yeah, the problem is not just Microsoft but Mojang. Mojang is an extremely conservative/careful dev, even before they got bought by MS. It's why the game hasn't enshittified too bad, but also why development seems to move so slow for arguably the biggest game on Earth.

Collaborating via a repo like that would be... a lot.

Again, it'd be awesome and I think it would work, but it would be a massive step even if Microsoft wasn't in the picture.

[–] Unattributed@feddit.online 2 points 20 hours ago

Yeah, Mojang's conservative development style is arguably the reason for Minecraft's success, while also being a source of frustration and friction for the community, IMO.

MS is another story altogether, though. While Mojang is a very thoughtful company, MS is driven by profit. I'm honestly surprised there aren't more collisions between the two cultures.

[–] DaPorkchop_@lemmy.ml 1 points 1 day ago (1 children)

My point is that literally nobody has been looking at obfuscated code for at least 5 years by now. All the toolchains automatically handle de- and reobfuscation transparently to the point that nobody has to think about it anymore unless maybe you are one of the like 3 people who is actually maintaining the classloading stage of a modloader, or if you are manually writing a bytecode transformer (which almost nobody has needed to do for years either, ever since tools like Mixin entered the scene).

For 99.9% of the modding community, and this includes most optimization mods, the only thing that is going to change is everyone deletes a line or two from their build.gradle and continues about their day.

As far as reporting things to Mojang: again, nothing changes here either, everyone who has ever set up a mod dev environment already has a copy of the deobfuscated source code on their computer, which is the only thing they are looking at when inspecting the minecraft source code or making changes to it. There have been reports on the issue tracker with actual suggested code changes basically since the issue tracker became a thing.

[–] Unattributed@feddit.online 1 points 20 hours ago

Okay - I am a bit of a dreamer, but I hope that Mojang dropping the obfuscation side of things is a sign that they are interested in working more closely with the community.

Of course, if I were to put on my pessimistic hat, I might think this is a move for Mojang to distance themselves from the Java edition as it's likely that Microsoft thinks from a business perspective focusing on Bedrock is a better deal.