• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Are the setLivingAnimations like ocasionnally Animations?
    • Core mods are when you make changes to the minecraft source code (vanilla, Forge, other mod) using the Java ASM package (as D7 mentions, its now done via JavaScript, but the general idea is the same, even if that JS doesn't directly interface with the ASM package). It literally lets you rewrite the compiled bytecode of any class in any way you want.*   They are useful when the effect you want to achieve cannot be done in any other way. For example, lets say I want to change how long a Minecraft moon phase is in the overworld. Currently that is defined (something) like this:   public int getMoonPhase() { return (totalWorldTime() / 24000) % 8; } Gosh, that 24,000 looks awfully magic and awfully unchangable...   *But hoo boy does that sound dangerous. What if two people modify the same section of code in different ways? Well, you get a conflict, the game crashes,** and no one's happy. This is why core mods are a last resort, only to be done after a request for Forge to insert a hook for modding has failed. They are only to be done with extreme care in very specific ways in order to insure that conflicts are minimized. As such tutorials do not exist.   **What happens when a coremod change fails? Well, the game crashes and reports the original code as being at fault! That makes it impossible for anyone to track down what actually happened and why because the original code is incapable of throwing that error and there are no fingerprints left over from your grubby mits going in and changing things.
    • Coremods (nowadays) are small JavaScript (yes, not Java) files that can modify the vanilla game classes directly while the game launches. As you can imagine this can be problematic, so coremods should be seen as a last resort.
    • So for some time I wanted to learn something more about core mods but I could hardly find anything about them. I realize that for someone as inexperienced as I am it would be stupid to create core mods so this is just for learning purposes. So could anyone explain to me core mods more in depth (what's the difference between normal mod and core mod, when are core mods useful and why would someone want to create them, ...) and/ or link some tutorials? Thanks in advance.
  • Topics

  • Who's Online (See full list)