I was doing redstone and commands. I wanted to do something with a target selector, and some arguments. On a certain moments, i wanted to use more then one argument.
What I expected to happen was...:
The command block detects the zombie and teleports it to
me.
What actually happened was...:
The command block didn't detected the zombie, and wasn't being teleported. I saw that the command didnt worked if there are more than 1 target selector arguments
Steps to Reproduce:
1. I typed this command: tp @e[type=Zombie, r=5]
2. I made sure there was a zombie within a 5 radius of the command block
3. I activated the command block.
Also, i discovered that it will also not work with @p, @r and @a.
Comments 5
Not sure since based on that issue is about /give and /clear, which is intended since mobs don't have inventories; it seems to be about the commands, not the target selector.
tp @e[type=Zombie, r=5]
Get rid of the space between the "," and "r" and it should work:
tp @e[type=Zombie,r=5]
WAI for @e. MC-44517