One hit sword banner
One hit sword icon

One hit sword

Add a sword: on hit execute kill sequence; deal max damage; run /kill on target; set target maxHealth to 0; set target health to 0; trigger death event on...

00
fabricServer1.21.1mod

One hit sword mod

  • Adds a server-side item one_hit_sword that appears in the combat tab; you can also /give @s onehitsword:one_hit_sword.
  • Striking any living target starts a kill sequence: deals maximum out-of-world damage, drops the target 10,000 blocks downward, zeros max health and current health, and repeats lethal damage every tick for 100 ticks.
  • The sequence finishes by issuing /kill on the target and forcibly removing the entity, so deaths are guaranteed even against normally immune entities.
  • Designed for dedicated servers on 1.21.1 with Fabric Loader/Fabric API.

Notes and limitations:

  • Once an entity is removed by Minecraft itself, further tick damage cannot apply; the handler still cleans up and issues the kill command.
  • The sword uses netherite stats for durability/attributes; adjust via datapack or item settings if you want different handling.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.