Download TextFilter — Minecraft Mods — MetaMods

TextFilter

Active

Downloads

0

Last update

3 months ago

Versions

1.20.1 — 1.21.8
Server
Fabric
Utils

TextFilter - Text Control for Minecraft

This mod provides filtering of unwanted characters in various game text elements. It works with signs, books, and item renaming in anvils.

Main Features

  • Signs: Text filtering with bypass capability via textfilter.signBypass permission
  • Books: Similar filtering with support for line breaks and color formatting
  • Anvil: Filtering during item renaming with textfilter.anvilBypass permission

Filter usage example

Filter Configuration

Default settings are pre-configured for English and some Cyrillic characters:

# For creating custom regular expressions
# recommended resources:
# https://regexr.com/ and https://www.compart.com/en/unicode/block
# If whitelist is empty — all symbols will be removed
# To allow all characters use '.' (whitelist: '.')

Regex:
  Sign:
    # Bypass permission: textfilter.signBypass
    whitelist: '[\u0021-\u007e а-я іїєґ]'
    blacklist: '[ыъэ]'
  Book:
    # Bypass permission: textfilter.bookBypass
    whitelist: '[\u0021-\u007e \n § а-я іїєґ]'
    blacklist: '[ыъэ]'
  Anvil:
    # Bypass permission: textfilter.anvilBypass
    whitelist: '[\u0021-\u007e а-я іїєґ]'
    blacklist: '[ыъэ]'

Technical Details

The mod is compatible with fabric-permission-api, allowing the use of LuckPerms or similar solutions for permission management. The configuration can be reloaded in-game using the /textfilter reload command, which requires operator privileges or textfilter.reload permission.

Project members
somyk

somyk

Developer

Created: 2 May 2024

ID: 23797