MCreatorMemFix

MCreatorMemFix

Fixes a large memory allocation bug in MCreator mods.

by
53.1K Downloads
forgeoptimization
Rent Server with this Mod

About this 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.

Available Versions

MCreatorMemFix 1.0.4release
MC 1.20.1forge
October 26, 2025
MCreatorMemFix 1.0.3release
MC 1.20.1forge
October 25, 2025
MCreatorMemFix 1.0.2release
MC 1.20.1forge
October 24, 2025
MCreatorMemFix 1.0.1release
MC 1.20.1forge
August 18, 2025
MCreatorMemFix 1.0.0release
MC 1.20.1forge
July 20, 2025

How to Install MCreatorMemFix on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "MCreatorMemFix". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forge

Minecraft Versions

1.20.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

MCreatorMemFix server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is MCreatorMemFix compatible with forge?

MCreatorMemFix officially supports forge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with MCreatorMemFix – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if MCreatorMemFix consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install MCreatorMemFix with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Zero v1.0 Universal
Server-side
Required

Supported Versions

1.20.1