Hostile Mob Killer

About

A Fabric mod for Minecraft 1.21.1 that instantly kills any hostile mob the moment it targets or attempts to attack the player. The mod listens for entity targeting events and entity damage events, checking if the attacking entity is classified as a hostile mob. Upon detection, the hostile entity is immediately removed from the world with a death effect, ensuring the player remains safe from all aggressive mobs. Compatible with all vanilla hostile mobs including zombies, skeletons, creepers, and spiders.