HomeJavaModsCorpse | Lightweight & Asynchronous | 1.8-26.2
Corpse | Lightweight & Asynchronous | 1.8-26.2
ModsJava

Corpse | Lightweight & Asynchronous | 1.8-26.2

⬇ Download on Spigot
[​IMG]

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

[​IMG]

[​IMG]

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
Code (Text):
## 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
Code (Java):

Corpse corpse = Corpse. fromPlayer (player ). spawn ( ) ;
Corpse corpse = Corpse. fromPlayer (player ). location (location ). spawn ( ) ;
corpse. destroy ( ) ;
 
Source: github.com/denmeh/Corpse
[​IMG]

Please report bugs on GitHub Issues, not in reviews.

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Corpse | Lightweight & Asynchronous | 1.8-26.2 is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11 and newer. Downloaded 4,664 times (via Spigot). Download it and open it directly in the game.

Explore more