MonitoringMinecraft MonitoringMinecraft

creative-hit-mod

Мод Fabric

Мод для Майнкрафт — удары по игроку в режиме творчества теперь работают: симулирует получение урона

98 скачиваний 2 подписчика
Оцените первым

Creative Hit Mod

A Fabric client-side mod for Minecraft 1.21.11

In vanilla Minecraft, attacking a player in Creative mode does nothing — Creative players are invulnerable by default. This mod changes that: when you hit a Creative-mode player, the mod sends the /damage <target> 1 generic_kill command to the server, dealing 1 point of unavoidable damage.

How it works

  1. You hit another player who is in Creative mode.
  2. The mod intercepts this via a Mixin into ClientPlayerInteractionManager#attackEntity.
  3. It sends a CommandExecutionC2SPacket with the command damage <target> 1 generic_kill directly to the server.
  4. The server executes the command, dealing 1 HP of generic_kill damage — this bypasses Creative invulnerability, armor, and resistance effects.

Why this approach?

The mod uses CommandExecutionC2SPacket (not sendChatCommand) to bypass Minecraft's chat signing system. Modern Minecraft signs chat commands with cryptographic keys; sending the packet directly avoids any signing failures or silent drops.

Permission checks are left to the server — if you're not OP'd, the server simply rejects the command.

Requirements

Requirement Version
Minecraft 1.21.11
Fabric Loader ≥0.16.x
Fabric API Any compatible release

Installation

  1. Install the Fabric Loader for Minecraft 1.21.11.
  2. Place the mod JAR in your mods/ folder.
  3. Ensure you are OP'd on the server (/op <yourname>), or that cheats are enabled in singleplayer.
  4. That's it — no configuration needed.

Permissions

The /damage command requires GAMEMASTERS permission level (OP level 1+). The mod does not check permissions client-side — it sends the packet and lets the server enforce access.

  • Singleplayer: Always enabled (cheats implicitly on).
  • Server: You must be an operator (/op). The default /op level (permission level 2 → OWNERS) is more than sufficient.

Technical details

  • Client-side only: The mod runs entirely on the client via a Mixin. No server-side installation is required.
  • Damage type: minecraft:generic_kill — tagged with BYpASSES_INVULNERABILITY and BYPASSES_RESISTANCE. Deals 1 HP per hit regardless of Creative mode, armor, or potion effects.
  • Packet: Uses CommandExecutionC2SPacket directly to avoid Minecraft's chat signing layer.

Building from source

./gradlew build

The built JAR will be in build/libs/creative-hit-mod-<version>.jar.

License

MIT

Смотри также

Похожие подборки моды — по версиям Майнкрафта, загрузчикам и жанрам.

Сервера Майнкрафт

Играть интереснее на сервере — выбирай в рейтинге серверов Майнкрафт и заходи прямо сейчас.

SkyBars
SkyBars Java + BE
1737 онлайн
1.8 — 26.2 версия
🎮 ВЫЖИВАНИЕ ⚔️ АНАРХИЯ 🚗 ГТА РП 🎤 ГОЛОСОВОЙ ЧАТ 🎁 БЕСПЛАТНЫЙ ДОНАТ 🌟 СМП 💻 ПК+ТЕЛЕФОН
Minestory
27 онлайн
1.21 — 26.2 версия
Выживание • Экономика • Кланы • Приваты • Ивенты • PVP • Работа
BULLCRAFT
BULLCRAFT Java + BE
118 онлайн
26.2 версия
Анархия! PvP | Работают поршни и вагонетки
ReallyWorld КОПИЯ ВСЕМ АДМИНКА
57 онлайн
1.16.5 — 1.21.1 версия
ПвП, Гриферство, бесплатный донат Dragon, AIR DROP
MineLauncher
Лаунчер Майнкрафт без лицензии — все версии
Бесплатный лаунчер для ПК и Андроид — все версии 26.2, 1.21.11, 26.1.2, 1.21.4. Fabric, NeoForge, Forge, шейдеры, моды и скины в один клик.
Без лицензии Fabric, NeoForge, Forge Моды, шейдеры, скины Все версии Майнкрафта ПК и Андроид Для слабых ПК Сервера в лаунчере
Скачать бесплатно
Windows и Андроид · Бесплатно · Без лицензии
Наш чат