Hello, I have a problem with the command blocks. I tell you:
I want that when you touch the pressure plate, the command is triggered only for a certain tag. If the player does not have the tag that is written in the command block, then it simply would not work.
I made this command: /execute if entity @p[tag=char1] run /title @a[tag=char1] title test
But for some reason, when I touch the pressure plate for another tag (for example: char2), the command is triggered, but it shows for the tag (char1).
I would like that if the player with the tag (char2), when touching the pressure plate, the command simply did not work, but was executed only if the player with the tag (char1) touched the pressure plate.
Hello, I have a problem with the command blocks. I tell you:
I want that when you touch the pressure plate, the command is triggered only for a certain tag. If the player does not have the tag that is written in the command block, then it simply would not work.
I made this command: /execute if entity @p[tag=char1] run /title @a[tag=char1] title test
But for some reason, when I touch the pressure plate for another tag (for example: char2), the command is triggered, but it shows for the tag (char1).
I would like that if the player with the tag (char2), when touching the pressure plate, the command simply did not work, but was executed only if the player with the tag (char1) touched the pressure plate.
Who can help me with this problem?
please...
I found the problem!
Correct command: /execute as @p at @s[tag=char1] run /title @a[tag=char1] title test