I'm trying to make a minecraft map that requires raycasting. I know approximately 0 trigonometry and have been unable to find any sort of generator or mcedit filter or ANYTHING that will help. Is there a way to teleport/move an entity (Such as an armor stand) in the direction it's facing? Please help!
A simpler way is is to us /tp @p ~ ~ ~ ~ ~ The last two are for the way they will be facing. Or /tp @e[type=ArmorStand] ~ ~ ~ ~ ~ Although you can't make them facing down using this command.
A simpler way is to use /tp @p ~ ~ ~ ~ ~ or /tp @e[type=ArmorStand] ~ ~ ~ ~ ~ The last two sections of each command are where you ininput the direction you want the player/entity to be facing.
That'd require the player to know where the given entity is facing, and rather than doing what OP wants it'll still require a ton of command blocks.
OP wants the entity to keep moving the same way it's facing. Your command doesn't let them do that. It'll let them choose a direction to face, but not act upon a pre-known facing. I'm not trying to be mean, I'm just trying to lead the discussion forward and let you know my opinion.
You can replace the ~ with coordinates so you would not need to know they're current position but know I see what he is trying to do and how that wouldn't work.
It is actually very simple. All you need to do is this: say you were at 100 100 100 and you wanted to move the Z but nothing else and only wanted to move south. You would forever activate this command: /tp @p 100 100 ~ 0 0
And forever activate these /execute @p ~ ~ ~ fill ~ ~ ~-1 ~ ~1 ~-1 barrier and /execute @a ~ ~ ~ fill ~ ~ ~-2 ~ ~1 ~-2 air
That will allow you to only move south and no other direction. I am not sure this is what you were looking for but I hope it helps you!
Directly copy-pasted from what OP said. Basically OP wants an entity facing X, to move in the X direction, In this case X is whatever direction the entity is facing. Anything else is something the OP doesn't want, I assume. The entity is supposed to be able to move "forward" without the help of 1 billion commands detecting every possible angle. It's supposed to be independent of any other interaction than from the help of a command block contraption programmed to tell the entity where to move based on where it's looking (facing). If I'm wrong, feel free to correct me.
Directly copy-pasted from what OP said. Basically OP wants an entity facing X, to move in the X direction, In this case X is whatever direction the entity is facing. Anything else is something the OP doesn't want, I assume. The entity is supposed to be able to move "forward" without the help of 1 billion commands detecting every possible angle. It's supposed to be independent of any other interaction than from the help of a command block contraption programmed to tell the entity where to move based on where it's looking (facing). If I'm wrong, feel free to correct me.
This is exactly what I'm going for. Basicly I want to be able to raycast without using 700 command blocks calculating spherical radius and trig stuff.
"I know one way, but it's not very customizable regarding speed and motion (it accelerates with time). The other disadvantage is that you need approx. 7-10 blocks of space above the entity. Other than those cons it should work with 100% accuracy (atleast when tested with players). Reply if you're interested."
One thing to add, is that it doesn't track rxm and rx unfortunately (I mean the roation for looking up and down).
I know this thread was from like 3 years ago, but if there is anyone on here now wanting a more effective and simpler way of doing things, you can just use
/execute as @e[WHATEVER] at @s run tp @s ^ ^ ^1
This will teleport any entity in the exact direction that it is facing and the "1" can be replaced with any integer you want. Negative numbers will push the entity backwards.
That's all. Hope this extremely late replay helped someone.
I'm trying to make a minecraft map that requires raycasting. I know approximately 0 trigonometry and have been unable to find any sort of generator or mcedit filter or ANYTHING that will help. Is there a way to teleport/move an entity (Such as an armor stand) in the direction it's facing? Please help!
North:
South: East: West: Up: Down:A simpler way is is to us /tp @p ~ ~ ~ ~ ~ The last two are for the way they will be facing. Or /tp @e[type=ArmorStand] ~ ~ ~ ~ ~ Although you can't make them facing down using this command.Check out my YouTube Channel! https://www.youtube.com/channel/UC5xGeY82ipCffJjAu6_kHMQ
A simpler way is to use /tp @p ~ ~ ~ ~ ~ or /tp @e[type=ArmorStand] ~ ~ ~ ~ ~ The last two sections of each command are where you ininput the direction you want the player/entity to be facing.Check out my YouTube Channel! https://www.youtube.com/channel/UC5xGeY82ipCffJjAu6_kHMQ
i need no names awesome command compilation .rtf ....... i know he's got one.......
This is it. Each direction an entity is facing, it will be teleported in that direction. Commands are above.
How about this:
This contraption will propel entities at where they are looking! It atleast works! .You can replace the ~ with coordinates so you would not need to know they're current position but know I see what he is trying to do and how that wouldn't work.
Check out my YouTube Channel! https://www.youtube.com/channel/UC5xGeY82ipCffJjAu6_kHMQ
It is actually very simple. All you need to do is this: say you were at 100 100 100 and you wanted to move the Z but nothing else and only wanted to move south. You would forever activate this command: /tp @p 100 100 ~ 0 0
And forever activate these /execute @p ~ ~ ~ fill ~ ~ ~-1 ~ ~1 ~-1 barrier and /execute @a ~ ~ ~ fill ~ ~ ~-2 ~ ~1 ~-2 air
That will allow you to only move south and no other direction. I am not sure this is what you were looking for but I hope it helps you!
Check out my YouTube Channel! https://www.youtube.com/channel/UC5xGeY82ipCffJjAu6_kHMQ
/entitydata @e[type=!Player,r=5] {Motion:[-20.0,0.5,0.0]}
would do the same thing except you wouldnt have to build BUD switch clocks or something like that....
What?
This is exactly what I'm going for. Basicly I want to be able to raycast without using 700 command blocks calculating spherical radius and trig stuff.
Let me guess, elytra raycasting?
I think.
I know this thread was from like 3 years ago, but if there is anyone on here now wanting a more effective and simpler way of doing things, you can just use
/execute as @e[WHATEVER] at @s run tp @s ^ ^ ^1
This will teleport any entity in the exact direction that it is facing and the "1" can be replaced with any integer you want. Negative numbers will push the entity backwards.
That's all. Hope this extremely late replay helped someone.
bro thank you so much ! you saved me from days of searching. I love you, I created this acount just to say thank you