Skip to content

Add Party Slayer Counter & Slayer Carry Calculator#2234

Closed
Akar1881 wants to merge 5 commits intoSkyblockerMod:masterfrom
Akar1881:feature/party-slayer-counter
Closed

Add Party Slayer Counter & Slayer Carry Calculator#2234
Akar1881 wants to merge 5 commits intoSkyblockerMod:masterfrom
Akar1881:feature/party-slayer-counter

Conversation

@Akar1881
Copy link
Copy Markdown

What does this PR do?

This PR adds two new features that help players who do slayer carries — one of the main ways to make coins in Hypixel SkyBlock.

Party Slayer Counter

When you're carrying multiple people through slayer bosses, keeping track of how many bosses you've killed for each party member is a pain — especially when the boss count gets high. This feature automatically tracks boss kills per party member and shows them in a clean HUD widget.

How it works:

  • When a party member spawns a slayer boss, the mod detects it by scanning nearby armor stands for "Spawned by: PlayerName" tags
  • When the boss dies and you get a LOOT SHARE chat message, it confirms the kill and increments that player's counter
  • The detection uses a timestamp correlation system — when a boss entity disappears from the world, we record the exact time. When the LOOT SHARE message comes in (usually within milliseconds), we check if it arrived within a 2-second window of a boss death. This way we never count a wrong kill, because we're matching the death event to the loot event in real time
  • Auto-detects party members via Hypixel's party info packets
  • Kill counts are cached to disk so they survive game restarts
  • Counter auto-clears when the party disbands
  • Draggable HUD widget shows per-player kills and total

About accuracy: The auto-detection is around 95% accurate. There's a small chance (~5%) it might miss a kill or double-count one, because Hypixel doesn't give us very detailed entity packets — that's just a limitation of what we can work with. But 95% is still really solid and way better than counting manually. You can always use the manual commands to correct any miscounts.

Commands:

  • /skyblocker partyslayercounter — show current kill counts
  • /skyblocker partyslayercounter add/remove <player> [amount] — manual adjustment
  • /skyblocker partyslayercounter mode <auto|manual> — switch detection mode
  • /skyblocker partyslayercounter clear — reset everything

Slayer Carry Calculator

A quick calculator to figure out how much a slayer carry costs. Supports all 6 slayer types, tiers t1-t5, price with k/m/b shorthand, and an optional discount percentage.

/skyblocker slayercalculator <type> <tier> <price> <amount> [discount%]

Example: /skyblocker slayercalculator voidgloom t4 1m 200 10

Shows a nice formatted breakdown in chat and has a clickable [Click here to share in chat] link that sends the result with a [Skyblocker] prefix so people know it came from the mod.

Why this matters

Carrying slayers is one of the main money-making methods in SkyBlock. When you're carrying 3-4 people at once and each one needs 50-200 bosses, you absolutely need a counter. Before this, people were either counting in their head (and losing track), using pen and paper, or relying on third-party tools. Having it built right into the mod with auto-detection makes the whole experience way smoother.

Technical details

  • Party detection uses HypixelPacketEvents.PARTY_INFO + periodic polling
  • Boss detection scans armor stand name tags in a 25-block radius
  • Kill confirmation correlates boss death timestamps with LOOT SHARE messages (2s window)
  • All state is thread-safe (ConcurrentHashMap, volatile fields)
  • Config integrated into Skyblocker's Dandelion config system under Slayers category
  • Disabled by default — users opt in via config

New files

  • skyblock/slayers/partycounter/ — full party counter package (8 files)
  • skyblock/slayers/SlayerCarryCalculator.java — calculator command
  • Modified: SlayersConfig.java, SlayersCategory.java, en_us.json

Ported and improved from SRE mod by the same author.

@LifeIsAParadox LifeIsAParadox added the reviews needed This PR needs reviews label Mar 15, 2026
Add PartySlayerCounter inner class to SlayersConfig with enable toggle,
counter mode (auto/manual), show widget toggle, and widget position.
Add corresponding config UI entries in SlayersCategory.
Add party tracking via HypixelPacketEvents.PARTY_INFO, boss detection
by scanning armor stand name tags, and kill confirmation via LOOT SHARE
chat messages with timestamp correlation.

When a boss entity disappears, the death time is recorded. A kill is
only counted if the LOOT SHARE message arrives within 2 seconds of
the boss death, preventing false counts.

Kill counts are cached to disk and auto-clear on party disband.
Add draggable HUD widget showing per-player kill counts and total.
Widget position is stored as normalized 0-1 floats for resolution
independence. Add commands for manual kill adjustment, mode switching,
and counter management:

/skyblocker partyslayercounter [add/remove <player> [amount] | mode <auto|manual> | clear]
Add /skyblocker slayercalculator <type> <tier> <price> <amount> [discount%]
for calculating slayer carry prices. Supports all 6 slayer types with
aliases, k/m/b price suffixes, and optional discount percentage.

Results show a formatted breakdown in chat with a clickable
[Click here to share in chat] link that sends the calculation
with [Skyblocker] branding.
Add en_us.json entries for config labels, tooltips, widget screen,
counter messages, and calculator UI strings.
@Akar1881 Akar1881 force-pushed the feature/party-slayer-counter branch from b10f554 to 9ca471c Compare March 15, 2026 02:16
@Bloxigus
Copy link
Copy Markdown
Contributor

slopppp

@Akar1881
Copy link
Copy Markdown
Author

slopppp

SYBAU

@Somebody98765432
Copy link
Copy Markdown

Somebody98765432 commented Mar 15, 2026

Very good feature tbh 👌🏻

@Akar1881 Akar1881 closed this Mar 15, 2026
@LifeIsAParadox LifeIsAParadox removed the reviews needed This PR needs reviews label Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants