mojira.dev
MC-47832

Certain entities can't be selected by type

Fishing rod bobbers and lightning bolts have no way to specify their type in selector arguments. This may be intended for lighting bolts, as they only last a short amount of time, but it is certainly a bug for fishing rod bobbers. These 2 entities are the only remaining entities to have this problem. All other entities do now have a way to select them.

Linked issues

Attachments

Comments 27

You're doing it wrong, use:

testfor @e[type=Item] {Item:{id:minecraft:egg,Damage:0s,Count:1b}}

Still present in 14w18a, both thrown Eggs and the Fishing Hook will be type unknown if you do /say @e to get a list of all the entities in the world. Both can't be summoned or used in a /testfor @e[type=...] command.

Entity list in the screenshot created with "/say @e", all the eggs are listed as "unknown.

Still present in 14w25b.

Also present in 14w28a.

17 more comments

Yes, fishing rod bobber should be fixed, because GrapplingHooks on command blocks! 😃

I think all of these should be fixed, so that mapmakers can detect when you throw an egg, cast a fishing rod, or when lightning spawns. Choosing not to fix this is an awful annoyance. What if you want to make thrown eggs have particle trails? What if you want to effect fishing rod bobbers with glowing? What if you want lightning to transform a mob into a custom mob? There is SO much potential, and it would be so simple to fix.

[media]

This is still an issue for me in the latest snapshot. /execute @e ~ ~ ~ say hi returns "unknown" if a fishing rod bobber is present in the world, and the only way select a fishing rod bobber that I know of is by using the entity selector @e[name=unknown], which could easily select other entities.

Intended, read the ticket and resolution.

Regardless of intention, this has been fixed as of 18w02a/1.13.

Owen Sanchez

KingSupernova

michael

Confirmed

Minecraft 14w06b, Minecraft 14w18a, Minecraft 14w25b, Minecraft 14w28a, Minecraft 14w28b, ..., Minecraft 15w33b, Minecraft 15w33c, Minecraft 15w35b, Minecraft 15w36d, Minecraft 15w51b

Minecraft 1.8.2-pre7, Minecraft 1.13

Retrieved