Text Chat Distance
No reviews yet
A semi-realistic text chat where the closer you get, the better you understand
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources