If any of you know about the motion NBT tags, you know that without datapacks, it's very difficult to make an entity move in the direction you're facing. I propose a method of adding motion to entities based on which direction the entity that activated the command is looking.
Allow me to show an example of how this would look.
/summon arrow ~ ~ ~ {Motion:[^.0,^.0,^1.0]}
Those that are not command block savvy, what this command would do is it would summon an arrow that moves in the direction the player is facing. Speed could be changed by changing the 1.0 to, for example, a 0.4, which would make it slower. It would also be possible to make an entity travel diagonally, relative to where the player is looking.
/summon arrow ~ ~ ~ {Motion:[^1.0,^0.0,^1.0]}
This command would fire an arrow at an angle left of the players cross-hair.
With this addition, people would have the ability to make things like shotgun styled bullet-spread, fireball spells, and throwable bombs.
Please sign in to leave a comment.
2 Comments