

“Use ‘unless blocks’ to Precisely Detect Snowball Collisions!”
Command entered in the Command Block:
Command Block A
Block Type: Repeat / Redstone: Always Active
/execute as @e[type=snowball] at @s unless blocks ~1~1~1 ~-1~-1~-1 ~~~ masked run tag @s add back
This adds the back tag to the snowball when it’s about to hit a wall or the ground.
Command Block B
Block Type: Repeat / Redstone: Always Active
/execute as @e[tag=back] at @s run tp @s ^^0.1^1 facing @p
This gives entities with the back tag (the thrown snowball) a movement that makes them fly back towards the player.
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.
