mojira.dev
MC-131087

Entitles Leave Their Teams (Fix: @r Selector Doesn't Work)

Yup, another one of mine! 😃

In my world, I have a command-block version of the Lucky Blocks mod. It uses the 1.12 /scoreboard teams command (long story how I got to that). I've been updating the world to 1.13, as I said in my solved Repeating Command Blocks a-mistake-that-was-mistaked-to-be-a-bug (my bad! 🙂), and when I tried to update the commands, I noticed they do not work. I tried the command in chat:

/team join LuckyBlock @e[name=LuckyBlockSelector,limit=1]

When I ran the command

/execute as @e[team=LuckyBlock] run execute at @s run tp ~ ~10 ~

, that is supposed to teleport the target 10 block up (or 10 block above me, I don't know if that's the right command), it said "No entity found". There is no command block running the command "/team leave @e" or anything like that.

So, I believe this is a bug. Please fix it as soon as possible- I don't want my world to be corrupted! 😉

Thanks in advance, David Kleiner (MasterOfTheCats)

Linked issues

Comments 7

What was the output of

/team join LuckyBlock ....

No output. I have the game rule SendCommandFeedback set on false. I'll go check it (although I checked, and the entity's name is LuckyBlockSelector).

I've checked a little, changed the commands, all that. I think the @r selector doesn't work. I have this command:

/execute as @r[name=LuckyBlockSelector] run execute at @s run tp ~ ~10 ~

That does nothing. And I'm pretty sure it's supposed to work (please tell me if it's not like last time). That does work, although it always targets the same one:

/execute as @e[name=LuckyBlockSelector,limit=1] run execute at @s run tp @s ~ ~10 ~

So... yeah. What do I do?

(BTW the output is "Added 2 members to team [LuckyBlock]. If I do "/team join LuckyBlock @r[name=LuckyBlockSelector]", the output is "No entity was found")

@r cannot target non-player entities.

Oh. So how do I target a random non-player entity?

 

Thanks 😃 I think this can be classified as solved now

 

David Kleiner

(Unassigned)

Unconfirmed

Minecraft 1.13-pre1

Retrieved