Minecraft Data Packs / Game Mechanic

Combat Tag (Kills on logout)

  • check_circle Functions
  • 2,963 views, 3 today
  • 221 downloads, 0 today
  • 6
  • 4
  • 1
PvPqnda's Avatar PvPqnda
Level 57 : Grandmaster Engineer
100
Hate dealing with combat loggers? Here's the ultimate solution!

Created by: PvPqnda

For Minecraft 1.17+

Datapack Features:

• Adds a restriction to players in combat disallowing them from disconnecting from the server attempting to defy risky situations that they're already in.

• Players who take damage are immediately "combat tagged" which applies a custom set timer (default 10 seconds) that is displayed to them, which indicates how long they must wait before being able to safely disconnect from the server.

• Players who disconnect from the server while combat tagged are immediately killed upon logout, dropping their items at their last location (unless keepInventory is set to true), and are prompted with the death screen like normal (unless doImmediateRespawn is set to true) upon logging back in.

• There are 5 customizable settings and 2 different server statistics for admins to access using the command: "/function combattag:admin_info".
The following are the 5 different settings:

• Tag Duration: How long players must wait for their combat tag to expire.
(0-60 seconds) (0 seconds prevents combat tagging)

• Damage Source: Any / Player
Any: Players will be combat tagged upon taking any kind of damage.
Player: Players will only be combat tagged upon taking damage from another player within 50 blocks.

• Tag Status: Hotbar / Crosshair / Chat
Where the combat tag status timer is displayed to combat tagged players.

• Tag Prefix: True / False
When set to True, tag status messages will be prefixed with "Combat Tag"

• Info Trigger: True / False
When set to True, anyone will be able to type "/trigger CombatTag" to see how many combat tags they've received/inflicted, and what settings are set to.

Survival & Multiplayer friendly


More datapacks on my website! PvPqnda.com
Join my Discord to know when something is released, updated, or to connect with me!
discord.gg/xS57622

If you'd like to further support me, my Patreon is where it's at! Also comes with exclusive posts/messages, voting power on what comes next, and access to new releases and updates as soon as they're ready! patreon.com/PvPqnda




Video Showcase:

CompatibilityMinecraft 1.17
toMinecraft 1.19
Tags

Create an account or sign in to comment.

2
11/06/2022 8:34 pm
Level 41 : Master Birb
Ethan_Triff
Ethan_Triff's Avatar
This is an awesome solution! I don't play pvp and never knew combat logging was a thing, but it does sound like it'd be an annoyance so good job for finding a punishment for people that do this! :D
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome