mojira.dev
MC-182278

team=!TeamName does not work on entities

When I try to select certain entities that are not on a certain team, nothing happens.

Linked issues

Comments 4

violine1101

Please provide the exact command(s) used.

Joseph Scilla

When I get rid of the "team=(EXCLAMATION_POINT)Red" it works, but I would like to use the team=! feature because I have a lot going on.

Joseph Scilla
/execute at @a[team=Red,scores={isSneaking=100..}] unless entity @e[distance=..2,type=minecraft:chest_minecart,name=BP,nbt={Invulnerable:1b}] unless entity @e[distance=..128,type=minecraft:chest_minecart,name=BP,nbt={Invulnerable:1b},team=!Red] if block ~ ~-1 ~ minecraft:diamond_block run summon minecraft:chest_minecart ~ ~ ~ {Invulnerable:1b,CustomName:'{"text":"BP"}',CustomNameVisible:1b, Items:[{Slot:0b,Count:1b,id:"minecraft:red_wool"}]}

/execute as @e[team=!Red,type=minecraft:chest_minecart,name=BP,nbt={Invulnerable:1b,Items:[{Slot:0b,Count:1b,id:"minecraft:red_wool"}]}] run team join Red

/execute as @a[team=Red,scores={isSneaking=100..}] run scoreboard players set @s isSneaking 0
violine1101

Chest minecarts cannot be on a team, see MC-63391.

Joseph Scilla

(Unassigned)

Unconfirmed

(Unassigned)

1.15.2

Retrieved