Did you ever want to make an intro like the all the great adventure maps, especially those which makes you turn around a point in the center of the room?
Look no further because after spending a complete day looking for a way to rotate around a map point, I have come to the conclusion that I would be better trying to find an answer by trying it in-game. And I found part of that answer which requires only two commands.
Disclaimer: A lot of player might have found this way already. It is not new in any way, shape, or form. It is simply new for me as I am currently in the process of learning the great art of making adventure maps using command blocks, datapacks and so on.
1. You will need to create an armor stand with a custom name added to his tags.
If you want to summon it at a specific coordinate, simply replace the three ~ to the numbers you want in this order: X Y Z.
If you need a double, simply write the coordinate as you would read it from the F3 panel. For example: 23.4
2. You will then need to create a repeating command block (Which you can simply achieve by placing a command block and switching it into repeat mode.) and switch the redstone signal to always active. Note that this is simply for testing, you can add the next command into a datapack function or execute it in an in-game redstone contraption. (Use it the way you prefer, it should still work.)
- Here is the command:
/execute as @p at @p facing entity @e[name=cam_lookat] feet run tp ~ ~ ~
You should be able to replace the first @p to @e[type=minecraft:player] if you want to use this on multiple users at once. You should also be able to
The second @p is used for the teleport command at the end. It is so you get teleported where you are instead of where the armor stand is standing at.
I will try to upload a video to better explain this command, but this might only happen after the holidays.
Note that it will look chunky unless you increment the player position by 0.1 or 0.01 as it is called each tick (Which are 1/20th of a second or so).
I am currently trying to find a simple way to get the player to move around the point and I will update the thread once I find a way or possibly create another thread completely seperate and include both parts in it as a small tutorial.
Sorry if I posted this in the wrong section, I could not find any other section that would better fit this thread.