

“Use the /tp Command’s “facing” Option to Move in a Specific Direction! ”
How to Set Up the Command Blocks

Command entered in the Command Block:
Command Block A1
Block Type: Repeat / Redstone: Needs Redstone
/execute as @e[type=arrow] at @s unless blocks ~1~1~1 ~-1~-1~-1 ~~~ masked run tag @s add landing
➡️ This causes the “landing” tag to be applied to an arrow when it gets close to a wall or the ground.
Command Block A2
Block Type:Chain / Conditional / Redstone: Always Active
/tag @p add move
➡️ This means the player will get the “move” tag only when the arrow hits.
Command Block B
Block Type: Repeat / Redstone: Needs Redstone
/execute as @p[tag=move] at @s run tp @s ^^0.1^1 facing @e[type=arrow,tag=landing]
➡️ This makes the player automatically move toward the arrow once it has landed.
Command Block C1
Block Type: Repeat / Redstone: Needs Redstone
/execute as @p at @s unless entity @e[type=arrow] run tag @p remove move
➡️ This automatically removes the “move” tag from the player if the arrow is picked up or disappears.
Command Block C2
Block Type:Chain / Conditional / Redstone: Always Active
/kill @e[type=arrow,tag=landing]
➡️ This means the arrow with the “landing” tag will be deleted when the player’s “move” tag is removed.
Command Block B
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.
