How to track if a player has the minecraft tag (/tag)

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Mar 8, 2025
2
0
1
Im trying to make a skill system with minecraft tags, because i know no other way how, and basically it just wont work, so if any one can help heres just a small little snippet of the skript


# Cursed Vision - Passive glowing effect when near players
every 5 seconds:
loop all players:
if loop-player has tag "CursedVision":
loop all players in radius 10 around loop-player:
if loop-player is not loop-player:
apply glowing 2 to loop-player for 3 seconds

# Shadow Cloak - Invisibility when sneaking, attacking removes effect
on sneak toggle:
if player has tag "ShadowCloak":
if event-player is sneaking:
if {shadow_cloak_cooldown::%player%} is not set or {shadow_cloak_cooldown::%player%} <= now:
apply invisibility 2 to player for 5 seconds
send "&8You fade into the shadows..."
set {shadow_cloak_cooldown::%player%} to now + 20 seconds
else:
send "&7You must wait before using &8Shadow Cloak &7again!" to player
else:
remove invisibility from player
send "&7You are visible again!"

on damage:
if attacker has tag "ShadowCloak":
if attacker has invisibility:
remove invisibility from attacker
send "&cYour attack revealed you!" to attacker
 
Hey, I dont think condition if player has tag exists.
I would recommend you to do it like when player equips tag, you will add the player to the list with the tag, and then check if he is in the list, that will be probably the easiest way for you to it.