Перейти к содержимому
Mineforgian

TextFilter

This mod removes blacklist symbols from signs, books, and when renaming items in an anvil.

Загрузки
704
Подписчики
2
Обновлён
23 июля 2026 г.
Лицензия
MPL-2.0

Опубликован 2 мая 2024 г.

TextFilter

A Fabric mod that filters text in signs, books, anvil renaming, and chat messages.

Features

  • Regex filtering — whitelist and blacklist character patterns
  • Replacements — find-and-replace text substitutions (applied after regex filtering)
  • Chat filtering — server-side chat message modification
  • Config reload — in-game via /textfilter reload
  • Bypass permissions — per-category and global bypass

Config

Config file: config/textfilter.json

{
  "whitelist": "[\\u0020-\\u007e \\n § а-я іїєґ \\u00C0-\\u024F \\u2010-\\u2027 ≈≠∞±×÷€₴]",
  "blacklist": "[ыъэ]",
  "replacements": {
    "xd": "😂"
  }
}
  • whitelist — regex pattern of allowed characters
  • blacklist — regex pattern of characters to remove from the whitelist
  • replacements — key-value pairs for find-and-replace (applied after regex)

Unicode ranges reference

Range Block Includes
\u0020-\u007e Basic Latin Standard ASCII (space, letters, digits, punctuation)
\u00C0-\u024F Latin-1 Supplement + Latin Extended-A Accented European letters (À-ÿ, Ă-ž), «»°±²³µ·¹º¼½¾¿×÷
\u2010-\u2027 General Punctuation Typographic dashes, quotes, ellipsis (–—'"„…•‹›)

Interactive tool: regexr.com · Unicode blocks: compart.com
If whitelist is empty — all symbols will be deleted.
Allow all symbols by putting . as the whitelist.

Commands

Command Permission Description
/textfilter reload textfilter.reload or OP level 4 Reload config from disk

Permissions

Permission Description
textfilter.bypass Bypass all text filtering
textfilter.signBypass Bypass sign text filtering
textfilter.bookBypass Bypass book text filtering
textfilter.anvilBypass Bypass anvil rename filtering
textfilter.chatBypass Bypass chat message filtering
textfilter.reload Use /textfilter reload command

Uses fabric-permissions-api.
Manage permissions with LuckPerms or similar.


Support me here:

ko-fi monobank

Ченджлог

1.0+1.21.10Релиз1.21.10, 1.21.11 · 23 июля 2026 г.

GSON config, update project to 1.21.10, chat filter, find-and-replace

  • Simple-YAML → GSON config (Config + ConfigManager)
  • Minecraft 1.21.10, Loom 1.17.17, Gradle 9.5
  • Chat message filtering via handleDecoratedMessage
  • Find-and-replace (replacements) after regex filtering
  • Unified single whitelist/blacklist across all text types
  • Global bypass permission (textfilter.bypass)
  • Expanded default Unicode ranges in whitelist
0.3-1.21.6Релиз1.21.8, 1.21.9, 1.21.10 · 17 июля 2025 г.

This update prevents crash if installed on client

0.2-1.21.6Релиз1.21.6, 1.21.7, 1.21.8 · 30 июня 2025 г.

Update to 1.21.6-1.21.8

0.2-1.20.1Релиз1.20.4, 1.20.5, 1.20.6 · 21 августа 2024 г.

bug fixes, small improvements

0.2-1.21Релиз1.21, 1.21.1 · 21 августа 2024 г.

Update to 1.21, bug fixes, small improvements

Комментарии

Загружаем…