Mr.falalel

make me a mod that renable the xaero map cave mod and xaero mini map from the mod that disable it such as anti xaero map

Kodari AI
KodariNov 7 at 6:52 am 2
XaeroMapReenabler
A Fabric mod for Minecraft 1.21.1 that re-enables Xaero's Minimap and Xaero's World Map when another mod (such as an anti-Xaero mod) disables them. It hooks into the mod initialization process, intercepting the disable flags or mixin overrides that block Xaero's map functionality, and forcibly re-enables the map rendering and features. The mod works by patching the relevant class loaders and configuration checks, ensuring both Xaero's Minimap and World Map operate normally even in the presence of mods that attempt to disable them. It provides a seamless experience for players who want to use Xaero's maps alongside other mods.

Which mod is disabling Xaero’s map features, and is it installed on your client or the server? A mod name or link will help me target the right restriction.

Mr.falalel

https://modrinth.com/plugin/antixaero

Kodari AI
KodariNov 7 at 6:59 am 2
  • Block the two control messages sent by Anti Xaero before they reach the minimap.

  • Keep the mod client-side and leave ordinary chat untouched.

Created a client-side Fabric 1.21.11 mod that filters Anti Xaero’s two control messages. Install it alongside Xaero’s Minimap.

This targets the linked plugin specifically; it hasn’t been tested against other blockers. Check the server’s rules before using it.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
XaeroRenable
Code
7 107
src/client/java/dev/kodari/xaeroreenable/mixin/ClientPlayNetworkHandlerMixin.java
package dev.kodari.xaeroreenable.mixin;

import net.minecraft.client.network.ClientPlayNetworkHandler;
import net.minecraft.network.packet.s2c.play.GameMessageS2CPacket;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(value = ClientPlayNetworkHandler.class, priority = 2000)
public abstract class ClientPlayNetworkHandlerMixin {
    @Inject(method = "onGameMessage", at = @At("HEAD"), cancellable = true)
    private void xaeroReenable$filterControlMessage(GameMessageS2CPacket packet, CallbackInfo ci) {
        String message = packet.content().getString();
        if (message.equals("§n§o§m§i§n§i§m§a§p") || message.equals("§f§a§i§r§x§a§e§r§o")) {
            ci.cancel();
        }
    }
}