Minecraft Blogs / Tutorial

Detect Direction Command

  • 104 views, 3 today
  • 1
  • 1
AbrarZaim avatar AbrarZaim
Level 34 : Artisan Miner
10
commands that help to detect direction

West
/execute as @a[​y_rotation=45..135] run title @s actionbar {"text":"west"}
North
/execute as @a[​y_rotation=136..225] run title @s actionbar {"text":"north"}
East
/execute as @a[​y_rotation=-133..-45] run title @s actionbar {"text":"east"}
South
/execute as @a[​y_rotation=-43..43] run title @s actionbar {"text":"south"}

it helps you to learn about y rotation
Tags

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2022
www.planetminecraft.com

Welcome