Skip to content

DeathSystems.DropPlayerDeathItems

Package: com.hypixel.hytale.server.core.modules.entity.damage

public static class DeathSystems.DropPlayerDeathItems extends DeathSystems.OnDeathSystem

Handles item loss and item dropping when a player dies. Only applies to non-Creative mode players. Processes durability loss first (reduces durability on all non-broken items by the configured percentage), then processes item drops based on the loss mode:

  • ALL: drops all items from the player’s inventory.
  • CONFIGURED: drops a percentage of each item’s quantity (items flagged with dropsOnDeath()).
  • NONE: drops nothing.

Dropped items are spawned as item entities at the player’s position (offset upward by 1 block). Also recalculates stat modifiers if any armor broke during durability loss.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.