MCreatorMemFix

Quick rating

MCreatorMemFix

No reviews yet

Fixes a large memory allocation bug in some MCreator mods.

No Theme
No Genre
Performance & Optimization
Mod Loaders
Forge
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Where It Runs
Client and Server

Must be installed on both the client and the server.

About

Project Details

Type
Mod
License
Creative Commons Zero v1.0 Universal
Latest Version
MCreatorMemFix-1.0.4.jar

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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.

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.

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

3.3m
Total Downloads
CurseForge
3.2m
Modrinth
~65,000
Last Updated
CurseForge
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works