Back to mods
The Death Penalty project artwork

CurseForge · Minecraft mod

The Death Penalty

A simple, configurable Fabric mod that lets modpack authors control what happens to players on respawn after death.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which The Death Penalty release should I use?

Updated 8 months ago
Latest stable file death_penalty-1.2.0-1.18.2.jar
Game version 1.18.2
Loader Fabric

The Death Penalty death_penalty-1.2.0-1.18.2.jar targets 1.18.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is The Death Penalty required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does The Death Penalty death_penalty-1.2.0-1.18.2.jar need?

death_penalty-1.2.0-1.18.2.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add The Death Penalty without breaking your instance.

Built for The Death Penalty death_penalty-1.2.0-1.18.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use death_penalty-1.2.0-1.18.2.jar. It targets 1.18.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside death_penalty-1.2.0-1.18.2.jar. It opens that exact file at the source.

About this project

What does The Death Penalty add?

The Death Penalty

Fabric 1.18.2

Overview

A simple, configurable Fabric mod that lets modpack authors control what happens to players on respawn after death.

Config Location

config/death_penalty.json

Global Options

enabled (boolean) - Enables or disables the mod entirely.

onlyWithKeepInventory (boolean) - If true, penalties only apply when the keepInventory gamerule is enabled.

dev (boolean) - Enables debug logging in console and chat. - Recommended while building a modpack.

matchMode (string) - FIRST (default) -> only highest priority rule applies - ALL -> every matching rule applies

Rule Structure

Each rule contains:

name (string), priority (number, higher runs first), when (array of strings), where (array of strings), from (array of strings), using (array of strings), penalties (array of penalty objects)

Any field can be omitted or empty to match everything.

Matching Fields

when

Matches the cause category

Example: mob, lava, fall, explosion, fire, magic, projectile

where

Matches the dimension ID.

Example: minecraft:overworld, minecraft:the_nether, minecraft:*

from

Matches the attacker entity type.

Example: minecraft:zombie, minecraft:*_dragon, #minecraft:skeletons

Supports: Exact IDs, Wildcards (*), Entity tags (#namespace:tag)

using

Matches: Attacker main-hand item, Projectile item, Damage source entity type

Supports: Exact IDs, Wildcards (*), Item tags (#namespace:tag)

Wildcard Matching

The '*' character works as a glob wildcard.

Examples:

minecraft:*_sword\ mymod:*_boss

Tag Matching

Use the format:

#namespace:tagname

Examples:

#c:arrows\ #minecraft:skeletons

Tag matching works for: Entity type tags (from) and Item tags (using)

Penalty Types

set_health

Sets player health.

Fields:, value (float)

set_food

Sets hunger and saturation.

Fields: value (int), saturationValue (float)

xp_percent

Keeps a percentage of total XP.

Fields: valueF (float between 0 and 1)

effect

Applies a status effect.

Fields: effect (status effect ID), duration (ticks), amplifier (int), ambient (boolean), showParticles (boolean), showIcon (boolean)

item_drop

Vanishes all Curse of Vanishing items, and removes a configurable percentage of an items count (rounded up) if that item is in the tag #death_penalty:item_drop_penalty_items

Fields: valueF (float between 0 and 1)

Example Rule

    {
      "name": "All zombie melee deaths hurt",
      "priority": 50,
      "from": ["minecraft:zombie"],
      "using": ["minecraft:*_sword"],
      "penalties": [
        { "type": "set_food", "value": 4, "saturationValue": 0.0 }
      ]
    }

Debugging

Enable:\ "dev": true

You will see: Cause, Attacker, Held item, Source entity, Flags, UsingItem

Project description from CurseForge.

Pick your setup

The Death Penalty by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

The Death Penalty versions and loaders

4 of 4 releases match

Looking for an older file? The official CurseForge project page is in Resources.