Mineuniverse
Log in Register
Mods

Text Chat Distance

A semi-realistic text chat where the closer you get, the better you understand
by Tamoide
Download Claim this project
15 downloads
0 likes
Updated Jul 6, 2026
0 hypes
Server Utility

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

JJSK (Spanish)
724
Nations Mod
6
Jujustu Craft (Spanish)
1,341
Jujutsu Craft V (Spanish)
120
Culling Games (For Jujutsu Craft)
10,102

You Might Also Like

APTweaks: Items (11.x Classic)
Item clustering (fallen blocks, experience orbs, ...) and garbage cleanup.
9,884,514
VanillaDeathChest (Fabric)
Places containers when players die that contain their items.
994,762
Styled Nicknames
Simple, but configurable nicknaming mod allowing your server's players (and admins) to change their nickname with full formatting support
989,499
Tiquality
Make server lag the problem of the source player.
99,489
Blame (Fabric)
Those gosh darn crashlogs not saying which worldgen feature is crashing!
99,012
Weathering with You
Forecast Minecraft weather with a radar or a hat!
98,579