PVP Tiers

PVP Tiers

Hardcore mode tiers based on player kills/deaths/totem pops

433 downloads 1 followers

Hardcore Tiers

Automatic pvp ranks for your server/hosted world. All players earn a tier prefix (from LT5 to HT1+) that shows in chat, the tab list and above their head, with their elo under their name. Ranks go up and down on their own based on kills, deaths and totem pops, and you can run timed seasons with a leaderboard, soft reset and rewards.

How it works

Everyone has an elo (points) score. It's elo style, so who you kill and who kills you matters, not just the count.

  • Kill: +10 for an unranked player, more for a ranked victim (see below)
  • Death: -15, plus or minus a bit depending on who killed you
  • Totem pop: -15 for you. If another player popped your totem right after hitting you, they get +5 plus your tier (max +14)
  • Non-player deaths are a flat -15

You need a 1.5 "kd" just to break even, so dying a lot cancels out farming kills. Elo can go negative, you just won't have a rank until you're back over 600.

Kill values (by victim's tier)

Unranked 10, LT5 15, HT5 20, LT4 30, HT4 35, LT3 45, HT3 55, LT2 70, HT2 85, LT1 100, HT1 150, HT1+ 300

Killing someone ranked below you is worth less: 85% for 1 tier lower, then 70%, 55%, 40% and 25% for 5+ tiers lower (never under 5). Killing up is always worth the full value, so killing an HT1+ as an LT5 gets you 300.

Deaths

Dying to someone lower ranked than you costs extra (3 per tier of gap, max +15, so up to -30 total). Dying to someone higher costs less (3 less per tier, max 10 less, so as little as -5).

Kill streaks

Chat announces you at a 3 kill streak, then every 5 kills from 5. It also announces when a streak of 5 or more gets ended.

Tiers

Tiers are based on elo, inspired by mctiers:

  • LT5: 600
  • HT5: 1150
  • LT4: 2150
  • HT4: 3200
  • LT3: 4200
  • HT3: 6100
  • LT2: 8200
  • HT2: 12000
  • LT1: 19000
  • HT1: 24000
  • HT1+: 56000, the top rank

Ranking up plays a level up sound, shows a title and announces it in chat, while ranking down shows an actionbar message. Dropping under 600 removes your rank. This works in hardcore where a death is permanent and totem pops count as spent lives.

Players can check their own stats with /trigger rank.

Seasons

Seasons are optional and fully manual. Datapacks have no real world clock, so you end a season yourself when you want to.

  • First time: run /function tiers:season/start once. Whatever points everyone has right now becomes season 1.
  • End a season: /function tiers:season/end. It announces the new season, starts a fresh leaderboard on the sidebar, and everyone gets reset (see below).
  • Soft reset: everyone who played the season that just ended keeps 25% of their final elo. Change it with /scoreboard players set #carrypct const 0 (0 = full reset) or any other percent.
  • Rewards: finishing a season at a rank gives you a "Season Finisher" advancement (LT5 to HT1+). Put your own rewards (items, commands) in season/reward_hook.mcfunction.
  • Hall of fame: every season gets its own sidebar leaderboard that includes offline players. Show an old one with /function tiers:season/hof {n:1}, the current one with /function tiers:season/live, hide it with /function tiers:season/hof_hide.
  • Offline players get their reset, rewards and carry-over the next time they log in, so nobody misses out.

Seasons are new, so if something breaks please tell me.

Install

  1. Put the zip in world/datapacks/
  2. Do the /reload command
  3. Check /datapack list for file/tiers
  4. Run /function tiers:season/start once (only needed for seasons)

Made and tested with 1.21.11 ONLY. I listed 1.21.5-1.21.10 because MAYBE it works since they're similar versions. There are no dependencies since it's made as a plain datapack (that i DID test) and packaged as a mod (which i DIDN'T test, so good luck lol).

Good to know

  • Existing players keep their kills. Deaths and pops only count from the moment you install it, nobody gets wiped.
  • All deaths count, not just PvP ones.
  • Totem pops can't tell what caused them, so a pop from lava or a creeper costs the same as one from a player.
  • It uses teams for the prefixes (lt5 to ht1plus). A player can only be on one team, so it will override any team they were already on.
  • I used AI for much of the code, but I did all the brainstorming, some of the code, tested it etc.

Changing the numbers

  • Kill values: elo/kill.mcfunction, and the "killing down" discount in elo/discount.mcfunction
  • Death adjustment: elo/death.mcfunction
  • Totem pop reward: pop/reward.mcfunction
  • Points per tier: the list of "matches" lines in check.mcfunction and season/final_tier.mcfunction (keep both the same)
  • Colors and prefixes: load.mcfunction

Testing

  • /scoreboard players set @s players 600
  • /scoreboard players set @s deaths 600

Make sure to reset yourself after testing!

Reset yourself

/function tiers:resetme or /trigger resetme (it asks you to confirm with /trigger resetme set 2)

Reset all

This deletes everyone's kills, deaths, pops, ranks and every season and leaderboard, then starts season 1 again. It can't be undone. The team empty stuff is what clears the prefix for players that are offline so don't skip them.

/function tiers:reset

Or /trigger reset, which only works for players with the admin tag (/tag <name> add admin) and also asks you to confirm with /trigger reset set 2.

Rank up title

Chat message

Ranked player chatting

Ranked player in tab list

Version Minecraft Loader Download

PVP Tiers 2.0.2

2.0.2+mod

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.5, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

PVP Tiers 2.0.2

2.0.2

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.5, 1.21.7, 1.21.6
datapack
Download

PVP Tiers 2.0.1

2.0.1+mod

1.21.11, 1.21.10, 1.21.5, 1.21.9, 1.21.8, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

PVP Tiers 2.0.1

2.0.1+mod

1.21.11, 1.21.10, 1.21.5, 1.21.9, 1.21.8, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

PVP Tiers 2.0.1

2.0.1

1.21.11, 1.21.10, 1.21.5, 1.21.9, 1.21.8, 1.21.7, 1.21.6
datapack
Download

V2 YEAAAAAAAAAAAAAAAAAAAAAAAAAAAA

2.0+mod

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

V2 YEAAAAAAAAAAAAAAAAAAAAAAAAAAAA

2.0

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
datapack
Download

PVP Tiers 1.5.3 - Elo gain changes

1.5.3+mod

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.5.3 - Elo gain changes

1.5.3

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
datapack
Download

PVP Tiers 1.4.2

1.4.2+mod

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.4.2

1.4.2

1.21.11, 1.21.5, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6
datapack
Download

PVP Tiers 1.4.1

1.4.1+mod

1.21.11, 1.21.10, 1.21.9, 1.21.7, 1.21.8, 1.21.6, 1.21.5
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.4.1

1.4.1

1.21.11, 1.21.10, 1.21.9, 1.21.7, 1.21.8, 1.21.6, 1.21.5
datapack
Download

PVP Tiers 1.4

1.4.0+mod

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.4

1.4.0

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.7, 1.21.6, 1.21.5
datapack
Download

PVP Tiers 1.3.0

1.3.0+mod

1.21.11, 1.21.6, 1.21.5, 1.21.7, 1.21.8, 1.21.10, 1.21.9
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.3.0

1.3.0

1.21.11, 1.21.6, 1.21.5, 1.21.7, 1.21.8, 1.21.10, 1.21.9
datapack
Download

PVP Tiers 1.2.1

1.2.1+mod

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.6, 1.21.7, 1.21.5
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.2.1

1.2.1

1.21.11, 1.21.10, 1.21.9, 1.21.8, 1.21.6, 1.21.7, 1.21.5
datapack
Download

PVP Tiers 1.2.0

1.2.0+mod

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, forge, neoforge, quilt
Download

PVP Tiers 1.2.0

1.2.0

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
datapack
Download

1.1.0 - tier rank up points amount

1.1.0+mod

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, forge, neoforge, quilt
Download

1.1.0 - tier rank up points amount

1.1.0

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
datapack
Download

First release

1.0.0+mod

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, forge, neoforge, quilt
Download

First release

1.0.0

1.21.10, 1.21.11, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
datapack
Download