Jump to content

Recommended Posts

Posted (edited)

I absolutely need to change a few client classes directly in Minecraft Jar. How do I do that? I already made the changes (which are extremely simple and can't possibly break anything), now I need to compile the .java files to .class files and replace the right ones but their names are weird like aaa.class

Edited by Is.M.L
explaining scope of changes
Posted

In short: You don't. Forge exists to allow compatibility between mods, editing base classes leads to incompatibilities.

 

You can usually achieve what you want in some other way, e.g. with an event or by replacing a field. If you tell us what you're trying to achieve, we can tell you how to do it.

 

It is possible to modify base classes using ASM, but this is highly discouraged and you won't get any help with it here.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Thank you. Unfortunately, Forge is not even an option. I want to add functionality to my client directly. And there would be no incompatibilities, because I only add, don't change or remove anything.

Posted
  On 6/14/2017 at 1:48 PM, Is.M.L said:

Thank you. Unfortunately, Forge is not even an option. I want to add functionality to my client directly. And there would be no incompatibilities, because I only add, don't change or remove anything.

Expand  

 

If you're not using Forge, why are you asking for help on the Forge forums?

 

If you want to modify the base classes directly, you need to use MCP. Your edits will likely make the mod incompatible with Forge and any other JAR mod that changes the same classes.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted (edited)

I ask here because it's the only place I know where people who really know about this stuff gather. You are right, though. I shouldn't do it. You never know, I could break a mod that uses ASM to change bytecode in the classes I need to change. As unlikely as this is with the edits I made, it is a possibility, depending on the way the mode does its bytecode manipulation. Then again, said mod would have to be itself very badly written.

Edited by Is.M.L
  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • "I want to understand how complex mods with ASM transformation and coremods work, such as Xray or AntiXray. Why do they break when you simply rename packages? What features of their architecture make refactoring difficult? And what techniques are used to protect these mods? I am interested in technical aspects in order to better understand the bytecode and Forge loader system."
    • I can't figure out if you're looking for help trying to steal someone elses work, or cheat at the game....
    • Title: Why Is It So Hard to Rename and Restructure Mods Like Xray or AntiXray? 🤔 Post text: Hey everyone! I’ve been digging into Minecraft modding for a while and have one big question that I can’t figure out on my own. Maybe someone with more experience could help or give me some advice. Here’s the issue: When I take a “normal” Minecraft mod — for example, one that just adds some blocks or new items — I can easily change its structure, package names, or even rebrand it entirely. It’s straightforward. But as soon as I try this with cheat-type mods like XrayMod or AntiXray, everything falls apart. Even if I just rename the classes, refactor the packages, or hide its identity somehow, the mod either breaks or stops working properly. XrayMod in particular is proving to be a nightmare to modify without losing its core function. So my question is — why is this so much harder with cheat mods like Xray? Is there something fundamentally different about how they’re coded, loaded, or protected that prevents simple renaming or restructuring? And if so, how can I actually learn to understand someone else’s cheat mod enough to safely refactor it without breaking the core features? I’ve already been spending over two months trying to figure this out and haven’t gotten anywhere. It feels like there must be some trick or knowledge I’m missing. Would really appreciate any thoughts, tips, or references — maybe there are guides or techniques for understanding cheat-mod internals? Or if you’ve successfully “disguised” a cheat mod like Xray before, I’d love to hear how you did it. Thanks in advance for any help or discussion. ✌️
    • just started making cinamatic contect check it out on my channel or check out my facebook page    Humbug City Minecraft Youtube https://www.youtube.com/watch?v=v2N6OveKwno https://www.facebook.com/profile.php?id=61575866982337  
    • Where did you get the schematic? Source/Link? And do use an own modpack or a pre-configured from curseforge? If yes, which one On a later time, I can make some tests on my own - but I need the schematic and the modpack name
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.