Corpse Extension
Spawns a player corpse at death location with the player’s skin and full inventory.
Multi-Backend Models
Use any entity definition from 5 supported backends as the corpse visual model.
Skin Reflection
Automatically applies the dead player’s skin to the corpse entity.
Key Features
- Death Corpse Spawn: Automatically spawns a corpse at death location with the player’s skin.
- Inventory Storage: Saves the player’s full inventory (main, armor, offhand) in the corpse.
- Right-Click Loot: Right-click the corpse to drop all items and experience at its location.
- GUI Preview: Sneak + right-click to open a preview GUI (configurable).
- Configurable Duration: Corpses expire after a configurable time (default: 300 seconds).
- PvP Protection: Optional owner-only looting (
onlyOwnerCanLoot). - Death Effects: Blood particles, soul particles, and death sounds on spawn.
- Red Glow Effect: Subtle red dust particles around the corpse.
- Respawn Notification: Notifies the dead player of their corpse location on respawn.
- Trigger System: Execute actions at ON_SPAWN, ON_LOOT, and ON_EXPIRE events.
- Entity Definition Dropdown: Select any registered entity definition in the Tapwriter editor.
Dependencies
| Extension | Usage |
|---|---|
| EntityExtension | Mandatory. Provides the fallback PLAYER entity. |
| BasicExtension | Mandatory. Core extension dependency. |
| ModelEngineExtension | Optional. Blockbench 3D models via ModelEngine. |
| BetterModelExtension | Optional. Blockbench 3D models via BetterModel. |
| BTCMobNPCExtension | Optional. BTC Mob NPC entity definitions. |
| MythicMobsNPCExtension | Optional. MythicMobs NPC entity definitions. |
| GUIExtension | Optional. Advanced GUI integration for inventory preview. |
Configuration
The extension has three entry types:| Entry | Type | Description |
|---|---|---|
corpse_settings | Manifest | Global settings (duration, particles, loot behavior). |
corpse_definition | Manifest | Per-corpse model definition and display options. |
corpse_action | Action | Events triggered during corpse lifecycle. |
Quick Start
- Install the extension JAR in your server’s
extensions/directory. - Reload Typewriter with
/tw reload TypeWriter-CorpseExtension. - Kill a player — a corpse appears with their skin and inventory.
- Right-click the corpse to loot it.
- Optionally: create a
corpse_definitionentry to use a custom 3D model. - Optionally: create
corpse_actionentries to trigger actions on spawn/loot/expire.
Entry Reference
See the detailed entry pages for each entry type:- Corpse Settings — Global configuration
- Corpse Definition — Model and display options
- Corpse Action — Lifecycle event triggers