mojira.dev
MC-46336

Brackets to define a mob don't work with /kill, /tp, /effect,..

Brackets to define a mob don't work with /kill, /tp, /effect,..

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/testfor @e[...] {...}

does work, but for example

/kill @e[...] {...}

does not.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

More examples:

/testfor @e[type=Slime] {Riding:{id:Zombie}}

is working.

/kill @e[r=3,c=-1,type=Slime] {Riding:{id:Zombie}}

is not.

Making this work would help me to create a headshot detection system for my awesome soon to be playable 'Tower Defense' style game.

Also i think it would be nice to have a RiddenBy-Tag to see if another entity is riding on the specific entity I want to be checked or manipulated.
(Because I want to kill the ZOMBIES that have NO invisible slime on their head)

I think a lot of people could make a use of this.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have created a reddit post for this, but it does not feel like this issues are getting upvoted much because it does only affect map makers and not normal players (which are most of the people obviously).

http://redd.it/1wdrwu

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Edit: Used proper formatting. Thanks to [Mod] Talven81.

Edit2: Can you think of any other way to kill a zombie that has no slime riding on it, without the above suggestions (RiddenBy-Tag for example)?
Think of the multiple options this would give to the players!

Edit3: How can I reopen this issue? How could I verificate the answer?

Linked issues

Attachments

Comments 4

You can wrap your code in code tags. See the help page on any comment window.

/testfor @e[...] {...}

That extra part is specific to /testfor, the usage of testfor is:

/testfor entity NBT data

. It is not part of the player selector syntax and thus will not work anywhere else.

But it would be nice for /kill and the other commands to have the same possibilites as /testfor. Also the RiddenBy Tag would be extremely useful if you try to make something like a headshot detection system with invisible slimes riding zombies. Please consider the multiple options!

EscoreFairplay

(Unassigned)

Unconfirmed

brackets, command, selector

Minecraft 14w04b, Minecraft 14w05b, Minecraft 14w06a

Retrieved