hytale-player-death-event

Detect player death events in Hytale plugins via ECS DeathSystems.OnDeathSystem.

13|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/JBurlison/Hytale-Mod-Agent --skill hytale-player-death-event
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hytale-player-death-event
Source: https://github.com/JBurlison/Hytale-Mod-Agent/tree/main/.github/skills/hytale-player-death-event
Command: npx skills add https://github.com/JBurlison/Hytale-Mod-Agent --skill hytale-player-death-event

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured way to detect when a player dies in Hytale and react to that event, allowing for custom game logic such as broadcasting death messages or implementing respawn mechanics.

Core Features & Use Cases

  • Player Death Detection: Utilizes Hytale's ECS DeathSystems.OnDeathSystem to trigger logic when a DeathComponent is added to an entity.
  • Access Death Information: Retrieve details about the death, including the cause and damage amount.
  • Customizable Reactions: Implement custom responses like sending messages or initiating respawn sequences.
  • Use Case: When a player dies, automatically send a message to the server chat announcing their demise and the cause of death, or trigger a respawn countdown.

Quick Start

Implement a new Java class that extends DeathSystems.OnDeathSystem and register it within your plugin's start() method to handle player deaths.

Frequently Asked Questions about hytale-player-death-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect player death events in a Hytale plugin?

Detect player death events in a Hytale plugin by extending the ECS `DeathSystems.OnDeathSystem` to trigger custom logic when a `DeathComponent` is added to an entity. Register the system within your plugin's `start()` method.

How does the ECS DeathSystems OnDeathSystem handle player fatalities in Hytale?

The ECS `DeathSystems.OnDeathSystem` handles player fatalities by triggering logic when a `DeathComponent` is added to an entity. This facilitates custom responses like retrieving death details and broadcasting server messages.

Can I retrieve the cause of death and damage amount during a Hytale player death event?

Yes, you can retrieve the cause of death and damage amount during a Hytale player death event. The system provides access to death details, allowing you to implement custom reactions like sending announcements or initiating respawn sequences.

Do I need Java and the Hytale server-side API to implement custom death event handling?

Yes, you need Java development experience and the Hytale server-side API to implement custom death event handling. Creating a new Java class that extends `DeathSystems.OnDeathSystem` is required to detect fatalities and react accordingly.

What is the best way to broadcast a server chat message when a player dies in Hytale?

The best way to broadcast a server chat message when a player dies in Hytale is to implement custom logic within the `DeathSystems.OnDeathSystem` class. This allows you to retrieve death details and automatically send messages announcing the demise.

Why use the ECS DeathComponent for player death detection instead of other event handling methods?

Using the ECS `DeathComponent` for player death detection provides a structured way to trigger custom game logic directly within Hytale's Entity Component System. This approach seamlessly integrates respawn mechanics and custom reactions into the plugin ecosystem.