Back to mods
MC-249136 Fix project artwork

Modrinth · Minecraft mod

MC-249136 Fix

A hacky fix for server lag spikes when generating shipwreck buried treasure map / explorer map loot.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which MC-249136 Fix release should I use?

Updated 2 years ago
beta file 1.0.2
Game version 1.19, 1.19.1, 1.19.2
Loader Fabric, Quilt

MC-249136 Fix 1.0.2 targets 1.19, 1.19.1, 1.19.2 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. All 1 required mods have matching files.

Where it goes

Is MC-249136 Fix required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does MC-249136 Fix 1.0.2 need?

1.0.2. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by MC-249136 Fix 1.0.2
required
Matching file found Matched file: 0.92.12+1.20.1

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add MC-249136 Fix without breaking your instance.

Built for MC-249136 Fix 1.0.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.2. It targets 1.19, 1.19.1, 1.19.2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.2. It opens that exact file at the source.

About this project

What does MC-249136 Fix add?

NOTICE

MC-249136 appears to have been fixed in newer versions of Minecraft! As such, I've decided not to update this mod for 1.20.5-onwards.

If you still encounter problems with treasure maps in 1.20.5+, please create an issue to let me know!

MC-249136 Fix

Requires Fabric API
Available on GitLab
Available on Modrinth

This mod implements a minimal hacky fix for MC-249136, a significant server lag spike that occurs when locating buried treasure structures for shipwreck loot.

To avoid this lag spike, structure location is moved into a separate thread that does not block the server tick loop. This does nothing to improve the structure location performance, but it does at least prevent it from significantly impeding gameplay.

An empty Minecraft buried treasure map, with the text "Loading" in the center

Configuration

The map "loading" images can be customized by placing 128x128 PNG files in /config/mc249136/map_loading.png and /config/mc249136/map_not_found.png.

For performance reasons, these images will draw all pixels as black unless they are fully transparent (i.e. rgba(0,0,0,0)). Minecraft's map color palette is difficult and expensive to calculate - so this mod literally just does an if (rgb != 0) to draw the image.

Known issues:

  • This mod does not handle state persistence, and only updates loaded maps once they are inside a player's inventory.
    This means that it is possible to prevent a treasure map from loading by breaking the chest, leaving it in item entity
    form, and then restarting the server.

Project description from Modrinth.

Pick your setup

MC-249136 Fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

20 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

MC-249136 Fix versions and loaders

3 of 3 releases match

Looking for an older file? The official Modrinth project page is in Resources.