promotional bannermobile promotional banner

Ineitsuki True Invisibility

This mod makes it so that when you have any potion effect applied no particles are shown to you or others on the same server, alongside added true invisibility by hiding your armor and tools when invisible.
Back to Files

true-invis-1.1.0.jar

File nametrue-invis-1.1.0.jar
Uploader
IneiTsukiIneiTsuki
Uploaded
Oct 22, 2025
Downloads
475
Size
14.8 KB
Mod Loaders
Fabric
File ID
7138301
Type
R
Release
Supported game versions
  • 1.20.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:forgiving-true-invisibility-1249544:7138301"

Learn more about Curse Maven

What's new

- Refactor True_invis to use UUIDs for tracking players instead of ServerPlayerEntity objects, preventing memory leaks.
- Introduce trueSightMap to track which players can see invisible players dynamically.
- Optimize server tick handling:
    - Run main invisibility/equipment logic every 10 ticks instead of every tick.
    - Resend glowing outlines to True Sight players every 200 ticks to prevent desync.
- Enhance equipment storage:
    - Store copies of ItemStacks to prevent accidental mutations.
    - Check for equipment changes before sending update packets to reduce network load.
- Expand invisibility detection to include both potion effects and invisible flags for broader compatibility.
- Add disconnect event handler to clean up player data on logout.
- Replace System.out logging with Log4j logger for better debugging and server logging practices.
- Ensure dynamic True Sight changes are reflected immediately for observers.
- Update enchantment registry identifier from "noparticles" → "true_invis" for clarity.

Overall, this refactor improves performance, reliability, and maintainability of the True_invis mod.

This mod has no additional files