fuckalllarp

Act as an expert Minecraft mod developer specializing in Java and the Fabric API for Minecraft version 1.21.11. Write the complete source code for a lightweight, server-side Fabric mod that implements an unscripted, high-stakes hardcore survival environment with zero information leaks.

The mod must strictly enforce the following rules:

  1. Hardcore 1-Life & Instant Ban on Death:
  • When a player dies, instantly ban them from the server so they cannot re-join or spectate.
  1. Distance-Restricted System Messages (200-Block Radius):
  • Player Join, Player Leave, and Player Death messages MUST NOT be broadcast globally.
  • When a player joins, leaves, or dies, calculate their exact world position and broadcast the notification ONLY to players within a strict 200-block 3D sphere radius of that event location.
  1. Total Command Lockdown for Non-Ops:
  • Non-OP players are strictly prohibited from executing ANY commands. If a non-op player tries to run any command (e.g., /help, /me, /stats, etc.), cancel it entirely and block execution. Only server operators (OPs) are allowed to use commands.
  1. Total Chat & Broadcast Lockdown:
  • Block and cancel ALL regular player chat completely.
  • Block and cancel ALL internal/admin system messages and chat commands that output text to chat. This includes /tellraw, /tell, /w, /msg, /say, /me, and any text generated by command blocks.
  • The ONLY text ever permitted in the chat window are the 200-block scoped join, leave, and death alerts.
  1. Total Tablist Elimination & In-Game Obfuscation:
  • Completely cancel or clear the player list (Tab key menu) for everyone in-game so that opening the Tab menu displays zero online players.
  • Completely strip player name auto-completion from the network connection so players cannot use Tab to discover who is online.
  1. External Server List & Status Hiding (Anti-Pinger Leak):
  • Intercept and modify server list ping packets (ServerListPingEvent / status response) so that external clients viewing the server from the multiplayer menu see 0 online players, and clear/hide any sample player profiles or player sample lists from the packet response so outsiders cannot check who is online from outside the server.

Provide clean, modular Java code using Fabric API events or Mixins where appropriate, including the main mod initializer class and event listeners.

Kodari AI
KodariOct 31 at 12:43 am 3
StealthHardcore
Server-side Fabric mod enforcing hardcore survival with instant ban on death. Restricts join, leave, and death messages to a 200-block 3D radius. Locks all commands for non-ops, blocks all chat and system messages except scoped alerts. Eliminates tablist and name autocompletion, and hides online player count and sample profiles from server list pings.
  1. Implement death bans and 200-block scoped lifecycle alerts.

  2. Lock down commands, chat/system-message output, tab listings and completion.

  3. Hide player counts and samples in server status responses; add Fabric and mixin metadata.

Created the Fabric 1.21.11 server mod and project setup.

  • Player deaths add a permanent ban and disconnect the player; join, leave, and death alerts go only to players in the same world and strictly less than 200 blocks away.

  • Regular player chat is blocked. Non-operators’ command packets are canceled; outgoing chat and system-message packets are suppressed except for scoped alerts.

  • Tab-list updates and command suggestions are suppressed. Server-list status reports zero online players and an empty sample list.

fuckalllarp

Can players see each other

Kodari AI
KodariNov 4 at 10:27 pm 1

Yes. The mod hides players from the tab list and server-list status, but they remain visible to each other in the world.

fuckalllarp

i can't see other players and my skin is a default minecraft player

Kodari AI
KodariNov 4 at 10:35 pm 1

Fixed: the mod now preserves player profile packets (so players render with their real skins) while marking them unlisted, keeping the Tab list empty. The previous filter discarded those packets entirely.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
12 339
src/main/java/dev/kodari/hardcoreveil/HardcoreVeil.java
package dev.kodari.hardcoreveil;

import net.fabricmc.api.ModInitializer;

public final class HardcoreVeil implements ModInitializer {
    @Override
    public void onInitialize() {
        HardcoreRules.register();
    }
}