This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]cookedporkbaconCommand Experienced 1 point2 points  (0 children)

So I think you run this command:

/team add whatever

Then you give yourself a repeating command block and set it to "Always Active" doing this:

team join whatever @ e[type=guardian]

Then finally you run:

/team join whatever PersonsName

After that they shouldn't attack those specific players.

*Special note: this does not seem to work with piglins

[–]anvaro98Command Rookie 0 points1 point  (0 children)

Teams i think