MCreatorMemFix

MCreatorMemFix

Fixes a large memory allocation bug in MCreator mods.

von
68.3K Downloads
forgeoptimization
Server mit dieser Mod mieten

Über diese Mod

MCreator Memory Fix

Fixes a large memory allocation bug in some MCreator for Forge 1.20.1 mods. Detects mods on first startup, then a restart is required for effects to activate. Is no longer required for mods made with the Forge 1.20.1 Generator >=1.0 (28/10/2025). This mod still shouldn't have any conflicts with these mods, even if it detects them, but it won't affect them.

About

TLDR

  • This mod fixes high allocation rates in some MCreator mods that use a lot of player-attached variables.
  • This might result in less GC stuttering, less average/peak memory usage, and even a small FPS gain.
    Your mileage may vary, and it entirely depends on your installed MCreator mods.
  • There shouldn't be any downsides to having this mod installed.
  • This mod will detect all applicable mods when you launch the game,
    but it will not come into effect until you launch the game again.
  • Modpack creators should redistribute the mcreator_mem_fix.json file found in .minecraft/config,
    and may optionally lock it by adding the locked key to the json object found within the config file, and setting it to true.
    This prevents the mod from regenerating its config when the mod list changes.

Some light technical stuff ahead. Nothing too bad.

The Issue

Whenever an MCreator mod accesses its player variables at all, it creates a new object to serve as a default, then accesses the stored one.
If there is no stored one, the default one is used. If there is a stored one, the default one was created for no reason.

Where's the problem? Many MCreator mods like to access player variables a lot.
This results in a lot of unnecessary allocations.
These allocations can happen many, many times within both ticks and frames,
resulting in a large amount of allocations per second.

The Solution

This mod just stops that object from being created every time an MCreator mod wants to access its player variables.
It stores a default variables object for each mod, and instead of making a new object every time we access it, we fall back to the stored default. Easy.

There shouldn't be any functional difference with this mod installed.

Effect

Some MCreator mods can allocate up to ~300MB of garbage before the GC does its thing.
Memory allocation is a slow operation, and allocating that much memory for no gain is not necessary.
With this mod, the memory allocation from MCreator mods, regarding player variables, should drop to next to nothing.
This might result in less stuttering, less average/peak memory usage, and even a small FPS gain. Your mileage may vary.

I haven't actually tested much, but this mod shouldn't cause many issues. It's pretty much free, with little-to-no downside.

Compatibility

No idea. Should probably be fine as long as no other mod is touching the same stuff this one touches (obviously, that's usually how compatibility works).

This mod is a little intrusive, it modifies a lot of the original mod's classes, BUT it should be in a relatively clean way.

Any mod that doesn't explicitly touch MCreator mods should be 100% compatible, always. Unless I mess something up.

FAQ

DISCLAIMER: Not a single individual has ever asked me any one of these questions.

How do I make it work for a specific MCreator mod?

Upon running the game, a file in
the config directory .minecraft/config will be created.
After this file is created, you should restart the game to ensure the detected MCreator mods are modified.
After adding new MCreator mods, you should delete this file so the mod rescans your mods.
A message is logged when the mod scans for MCreator mods.

Modpack developers may safely redistribute this config file,
preventing the end user from having to restart their game.
They may also lock this file by adding and setting the locked key to true in the config.
This is not really necessary, but it stops the mod from searching for new candidates to modify,
saving a few milliseconds on startup.

Something went wrong. How do I fix it?

First things first, try deleting the config and re-running the game once or twice.
If that doesn't work, submit an issue here.

You seem really cool. Can you be my friend?

No. Maybe.

Can I use this in a modpack?

Yeah, it's designed for that.

Verfügbare Versionen

MCreatorMemFix 1.0.4release
MC 1.20.1forge
26. Oktober 2025
MCreatorMemFix 1.0.3release
MC 1.20.1forge
25. Oktober 2025
MCreatorMemFix 1.0.2release
MC 1.20.1forge
24. Oktober 2025
MCreatorMemFix 1.0.1release
MC 1.20.1forge
18. August 2025
MCreatorMemFix 1.0.0release
MC 1.20.1forge
20. Juli 2025

MCreatorMemFix auf dem Server installieren

1

Server bestellen

Bestelle einen Minecraft Java Server mit mindestens 3 GB RAM (4 GB empfohlen).

2

forge Loader setzen

Wähle im Panel unter "Egg" den forge-Loader und die passende Minecraft-Version (1.20.1).

3

Mod installieren

Öffne den Mod-Browser im Dashboard und suche nach "MCreatorMemFix". Klicke "Installieren" – fertig! Alternativ: Lade die .jar via SFTP in den /mods Ordner.

Kompatibilität

Mod-Loader

forge

Minecraft-Versionen

1.20.1

Server-seitig

Erforderlich

Empfohlener RAM

4 GB(min. 3 GB)

Häufige Fragen

MCreatorMemFix Server crasht beim Start – was tun?

Häufigste Ursache: falsche forge-Version oder zu wenig RAM. Prüfe im Server-Log (latest.log), ob ein "OutOfMemoryError" oder "Mixin"-Fehler auftritt. Bei Mado Hosting: Stelle sicher, dass mindestens 3 GB RAM zugewiesen sind und der Loader zur Mod-Version passt (1.20.1). Über das Panel kannst du den Loader mit einem Klick wechseln.

Ist MCreatorMemFix mit forge kompatibel?

MCreatorMemFix unterstützt offiziell forge für Minecraft 1.20.1. Im Mado Dashboard werden inkompatible Loader-Kombinationen automatisch erkannt.

Server laggt mit MCreatorMemFix – wie optimiere ich die Performance?

Empfohlener RAM: 4 GB (+1 GB pro 8 Spieler). Prüfe mit /spark profiler, ob MCreatorMemFix den meisten Tick-Time verbraucht. Häufige Fixes: Server-View-Distance auf 8-10 reduzieren, bei Forge "performant" oder "starlight" als Zusatz-Mod installieren. Bei Mado Hosting läuft dein Server auf NVMe-SSDs mit dedizierten CPU-Kernen für minimale Latenz.

Modded Server mieten

Installiere MCreatorMemFix mit nur einem Klick auf deinem Server.

Empfohlener RAM
4 GBab €5.2/Monat
Min. 3 GB | +1 GB pro 8 Spieler
Jetzt Server erstellen
1-Klick Mod Installation
NVMe SSD Speicher
DDoS-Schutz inklusive

Details

Lizenz
Creative Commons Zero v1.0 Universal
Server-seitig
Erforderlich

Unterstützte Versionen

1.20.1