{execute @e[type=item,name=cobweb] ~ ~ ~ execute @p[r=2] ~ ~ ~ effect @a speed 30 2 true} is working well
but
{execute @e[type=item,name=spider_eye] ~ ~ ~ execute @p[r=2] ~ ~ ~ effect @a speed 30 2 true} is not working
{spider eye} {spider.eye} {spidereye} are not working too
Comments 2
Just type in the name that shows up in your hot bar. For example if you had a nether star you would type "name="nether star." If you changed the name to "glowing star," then you would have to type that name.
If the item has the original name, then it is not case-sensitive
Here is some info. hope this helps:
type=blockID (only works for entities such as arrows and trident, if you use type=item, then it will find every item dropped)
name="blockName" (used for specifying an item, the item's name must be used)
r=radius
rm=minimum radius
l=levels
lm= minimum levels
tag=tag name
scores= unknown. It doesn't seem to work for me...
These specifications I use for a lot of custom things.
Works as intended. You can't use the item ID as the name, you must use name="Spider Eye", that's the name of the item.