uwo

mod that makes first letter always capital in chat when typing

Kodari AI
KodariOct 22 at 5:07 pm 2
CapitalFirstChat
A Minecraft Fabric mod for version 1.21.11 that automatically capitalizes the first letter of every message typed in the chat. The mod intercepts chat input events and transforms the text so that the initial character is always uppercase, while preserving the rest of the message exactly as typed. It works seamlessly with the standard chat interface, requiring no configuration or user interaction. The transformation applies instantly as messages are sent, ensuring consistent capitalization across all player communications. This lightweight client-side mod integrates directly with the game's input handling system, providing a simple quality-of-life improvement for players who prefer or require proper sentence capitalization in their chat messages.
  1. Hook the chat input’s text insertion so its first alphabetic character is uppercased as you type.

  2. Add the client initializer, mixin config, and minimal Fabric project metadata.

Added a client-side Fabric mod that uppercases the first letter typed into chat, including when the initial input starts with punctuation. It leaves other text fields unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 146
src/client/java/com/kodari/chatcapitalizer/ChatCapitalizerClient.java
package com.kodari.chatcapitalizer;

import net.fabricmc.api.ClientModInitializer;

public class ChatCapitalizerClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
    }
}