I wanted to know if the @r command works with the [name=] specification, aim trying to make a underwater map with randomized fish using invisible squids and i want to only select the ones named squid (meaning the unnamed ones since a squid's default name is squid)
Minecraft – @r with the [name=] specification
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – How to just clear an item with a name, not all items of the same type
- Minecraft – Can you use the /spreadplayers command with armor stands
- Minecraft Java Edition – Squid Detection System in Minecraft
- Minecraft Java Edition – How to Make a Fish Ride an Invisible Squid in 1.9
- Minecraft Java Edition – Using /blockdata Within a Radius Command
- Minecraft – /setblock a command block with nearest player’s name inside
- Minecraft – quicker alternative for the [name=!] command
- Minecraft – Custom armor stand name with multiple lines
Best Answer
Yes it does, but you have to specify the type of mob it is, or it won't target entities. As per the wiki:
Here is a example:
This would teleport a random Squid with the name "Random" 3 blocks up. Hope this helps!