Mineuniverse
Mods
Text Chat Distance

Text Chat Distance

MOD
A semi-realistic text chat where the closer you get, the better you understand
by Tamoide
Download Claim this project
Add a badge to your pageLink to Text Chat Distance from a README, website or forum post.
Preview: Badge

Badges update automatically and link to the mod page on MineUniverse.

319 downloads
0 likes
0 followers
Updated Oct 14, 2026
0 hypes
Follow0
Server Utility
Advertisement Remove ads with Premium →

This mod makes text chat intelligible, as if the player were speaking.
It affects private chats like /msg and the general server chat.

The TextChatDistanceAPI functions as an automated communication filter. It handles proximity logic by calculating the spatial distance between the source (player or block) and containers.Core Mechanisms:

  • Spatial Calculation: Utilizes distanceToSqr for efficient coordinate-based math, verifying dimension consistency to ensure messages do not bleed across dimensions.
  • Dynamic Obfuscation: Implements a probability-based algorithm for the "Half-Away" range. As a container moves from CloseMax toward HalfAwayMax, a calculated ratio (0.0 to 1.0) determines the likelihood of each character being replaced by a *.
  • Component Integration: Accepts Minecraft Component objects (both literal and translatable). It flattens these into raw strings to perform character-level transformations, then reconstructs them into final components to maintain UI compatibility and bypass network signature restrictions.
  • Abstraction: Centralizes iteration over server-side players and logic validation, requiring only a simple method call (broadcastArea or sendDirectMessage) from other mod components.
  • Integration Requirement: To utilize the API, import net.txd.textchatdistance.api. TextChatDistanceAPI. Use broadcastArea for radial messages originating from an entity or BlockPos, and sendDirectMessage for point-to-point communication. The API consumes these requests, processes the distance against the ChatDistanceManager config, and executes sendSystemMessage internally for all valid recipients, automatically filtering those beyond the HalfAwayMax limit.
textChatDistance-1.0.jar
MC 1.20.1, Forge, Server
Release 2026-06-09 Get

More from Tamoide

Advertisement Remove ads with Premium →

You Might Also Like