Sueta

Corpse | Lightweight & Asynchronous | 1.8-26.2

4.1.1

dead bodies in minecraft for 1.8-26.2 servers.

·Plugin

Corpse
Packet-based dead bodies for Minecraft 1.8–26.2. No real entities — corpses are sent with packets, so they stay lightweight on large servers.

Requires PacketEvents 2.13.0+.

Features

  • Corpses on death, with skin and armor
  • Lootable inventories (right-click the body or the ground under it)
  • Despawn when empty, or after a timer — leftover loot drops
  • World whitelist, sleeping or swimming pose
  • Configurable messages
  • Developer API

Commands
/corpse spawn [player] — spawn a corpse of you, or of another player ( corpses.spawn)
/corpse remove <radius> — remove corpses in a radius ( corpses.remove)
/corpse reload — reload config and messages ( corpses.reload)

Installation

  1. Install PacketEvents 2.13.0 or newer
  2. Drop Corpse into plugins
  3. Restart the server. Do not use /reload. After that, /corpse reload is enough for config/messages.

Configuration

## Set in seconds how long the corpse lasts. (-1 or lower for forever.)
corpse-time: 30

## Permission groups for corpse lifetime. First matching permission wins.
## Players without a matching permission use corpse-time.
## Time is in seconds (-1 = never despawn). Put higher ranks first.
corpse-time-groups: []
# Example:
# corpse-time-groups:
#   - permission: corpses.time.legend
#     time: 21600     # 6 hours
#   - permission: corpses.time.mvp
#     time: 3600      # 1 hour
#   - permission: corpses.time.vip
#     time: 300       # 5 minutes

## Sets if corpses spawn on death. (true or false)
on-death: true

## Show name tags on corpses. (true or false)
show-tags: false

## Should we render player armor and items on the corpses?
render-armor: true

## Maximum distance for rendering corps
corpse-distance: 60

## Lootable corpses
lootable-corpses: true

## Despawn a lootable corpse when its inventory is empty (fully looted or no drops).
despawn-when-empty: true

## How close a right-click on the ground must be to a corpse to open loot (blocks).
loot-click-range: 1.2

## Worlds where corpses spawn on death. Empty = all worlds.
worlds: []

## Entity Pose to use for the corpses.
## Possible values: SLEEPING, SWIMMING
entity-pose: "SLEEPING"

Messages live in messages.yml. Existing files are not overwritten; new keys use built-in defaults.

API

Corpse corpse = Corpse.fromPlayer(player).spawn();
Corpse corpse = Corpse.fromPlayer(player).location(location).spawn();
corpse.destroy();

Source: github.com/denmeh/Corpse

Please report bugs on GitHub Issues, not in reviews.

Similar projects

Plugin →