Minecraft Command: The Complete Strategy Guide – Trick #28: “Use the family condition filter to select only mobs!”

This video explains Trick #28: “Use the family condition filter to select only mobs! ” from the 40 essential techniques featured in the book Minecraft Command: The Complete Strategy Guide, now available on Amazon.
Using this video alongside the book will deepen your understanding of commands even further! Be sure to check out the guide and start enjoying the world of Minecraft with total freedom .

Use the family condition filter to select only mobs!

Command entered in the Command Block:

Command Block A

Block Type: Repeat / Redstone: Always Active
/execute as @e[type=splash_potion] at @s run tag @e[family=mob,r=3] add target
➡️ This gives a target tag to mobs near the splash potion.

Command Block B

Block Type: Chain / Conditional / Redstone: Always Active
/execute as @e[type=splash_potion] at @s run particle minecraft:huge_explosion_emitter ~~~
➡️ This ensures the explosion effect only occurs if a mob was successfully tagged in Command Block A.

Command Block C

Block Type: Chain / Redstone: Always Active
/execute as @e[tag=target] at @s run tp @s ^^0.5^-1 facing @p
➡️ This makes the mob appear as though it’s being blown backward and slightly upward while looking at the player.

What is Minecraft: Education Edition?

Minecraft: Education Edition is a version of Minecraft specifically designed for educational use. It aims to help students develop skills in creative problem-solving, collaboration, and communication. A key feature is the ability to learn programming through tools like MakeCode and Python. It also provides specialized features for the classroom, including teacher management tools, lesson plans, and educational content.