Check if player has specific tag/add tag

Started by Lord Makishi on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check if player has specific tag/add tag

Hi,

I want to check if the player has an specific tag (for example:fire). Or add an specific tag to the player. Is that possible?

Joined Mar 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
global trigger on entity…
Mon, 12/19/2022 - 22:54

global trigger

on entity tick

if is Nbt/GlobalVar/Tag = X for the event/target entity.
there are several tags in mcreator. the most common are the usage of nbts
if you want to add one for all players. use global variables. which are applied to all players when they enter the world

here is a tutorial by me about nbts. and variables. recommend pausing for reading properly
https://www.youtube.com/watch?v=hk8QrAIkmxk&t=1s&ab_channel=KyouksterM

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@Kyoukster Hey! at first i…
Tue, 12/20/2022 - 09:31

@Kyoukster Hey! at first i didn't realize it was you :D I subbed to you a few months ago, and i find your videos very helpful. Anyways, i don't know if that's what i meant. I wanted to check if the player has an specific tag, which in minecraft you would check with "Tag <playername> list". Maybe i would have to make a function that checks that, but idk. Still thanks for trying to help me!