DUXPLIMA Documentation

Head Drops

The chance a killed player drops their head, rarities that make good players' heads rare, and how the head looks.

When a player kills another, they may get the victim's head as a trophy, with the fight written on it. Heads of strong players are rarer, both to get and in how they look. File: configs/headdrop/HeadDropSettings.yml.

When a head drops

All of these must be true:

ConditionDetail
A death battle was savedThe fight passed the battle log filters: 3 seconds and 5 damage by default
The killer is online
The world allows itNot in disabledWorlds; and in enabledWorlds if that list is not empty
Killer and victim are not teammates or alliesWith blockSameTeamHeadDrop and blockAllyHeadDrop in TeamIntegration.yml
The chance roll succeedsbaseDropChance × the victim's rarity modifier

The head goes into the killer's inventory, or drops at their feet when it is full, and the killer is told which.

The chance

settings.baseDropChance (10) is the chance in percent. It is multiplied by the dropChanceModifier of the victim's rarity:

RarityModifierChance with the default 10 %
COMMON1.010 %
UNCOMMON0.88 %
RARE0.55 %
EPIC0.252.5 %
LEGENDARY0.11 %
MYTHIC0.050.5 %

For a head on every kill, set baseDropChance: 100 and every modifier to 1.0, or turn rarities off with rarity.enabled: false.

A player's rarity

The victim's rarity is found in this order:

  1. rarity.playerRarities: a fixed rarity for a player, by name or UUID.
  2. dynamicRarity: from the victim's K/D, if it is on. Thresholds are checked from the top, and the first whose minKD the K/D reaches wins, so list them from high to low.
  3. rarity.defaultRarity: COMMON.
K/D at leastRarity
10MYTHIC
5LEGENDARY
2EPIC
1RARE
0.5UNCOMMON
0COMMON
rarity:
  enabled: true
  defaultRarity: COMMON
  playerRarities:
    Notch: MYTHIC
    069a79f4-44e9-4726-a5be-fca90e38aaf5: LEGENDARY
dynamicRarity:
  enabled: true
  thresholds:
    - minKD: 4.0
      rarity: LEGENDARY
    - minKD: 1.5
      rarity: RARE
    - minKD: 0.0
      rarity: COMMON

The default playerRarities holds two examples, ExampleAdmin and ExampleMod; remove them.

Each rarity in rarity.rarities has:

KeyMeaning
gradientMiniMessage gradient put before the head's name, as {gradient}
colorColour code used as {rarity_color} in the lore
displayNameThe rarity's name, as {rarity}
dropChanceModifierMultiplies the drop chance

The head item

Key in headItemDefaultMeaning
displayName{gradient}{victim}'s HeadThe head's name
loreKiller, date, duration, damage, K/D and rarityThe lines under it
glowtrueEnchantment shine
customModelData0For a resource pack model. 0 keeps the normal head
dateFormatdd/MM/yyyy HH:mmHow {date} is written
PlaceholderShows
{victim}, {killer}The two players
{date}When the fight ended
{world}Where
{duration}How long the fight lasted, in seconds
{damage_given}, {damage_taken}Damage of the fight
{kd}, {kills}, {deaths}The victim's K/D, kills and deaths
{rarity}, {rarity_color}, {gradient}From the victim's rarity

A head placed as a block and broken again keeps its name and lore.

Commands

CommandDoes
/headdrop give <player> (receiver)Makes an online player's head with the current settings and gives it to you or the receiver
/headdrop reloadReads HeadDropSettings.yml again

Both need uxmpvpcore.headdrop.admin. The messages for a received or dropped head are under messages.

Related: Battle Logs, Statistics and Rating