1
Command Help!
Recently I've been working on a datapack for me and my friends on our private Minecraft server. The idea is simple enough; I want a command that will summon a Wither Skull in the direction I'm looking, and make it move in that direction. However, the command I wrote doesn't seem to be working...
Any Help would be much appreciated :D
BTW my current command is below and I'm in 1.20.1
Also I'll sub you if you can help me, I'll credit you to my friends as well :)
Any Help would be much appreciated :D
BTW my current command is below and I'm in 1.20.1
| /execute at @p anchored eyes run summon minecraft:wither_skull ~ ~ ~ {direction:[0.0,0.0,0.0]} /execute as @e[type=minecraft:wither_skull] at @s run data modify entity @s Motion set from entity @p Pos |
Also I'll sub you if you can help me, I'll credit you to my friends as well :)
6
/execute as @e[type=minecraft:wither_skull] at @s run data modify entity @s Motion set from entity @p Pos
pretty sure this doesnt work. Pos is the xyz coords of your position. You are trying to set them as the motion of the skull [3D Vector].
If you want the skull to fly in the dir youre looking at, you would need to calculate the values you need in direction vector for the skull from the rotation of the player.
Doing that isnt rly easy and not a one command thing.
I have found a youtube video where the dude did what you want to do: https://www.youtube.com/watch?v=DaIvJwhcz8Q
Hope that helps ^^
pretty sure this doesnt work. Pos is the xyz coords of your position. You are trying to set them as the motion of the skull [3D Vector].
If you want the skull to fly in the dir youre looking at, you would need to calculate the values you need in direction vector for the skull from the rotation of the player.
Doing that isnt rly easy and not a one command thing.
I have found a youtube video where the dude did what you want to do: https://www.youtube.com/watch?v=DaIvJwhcz8Q
Hope that helps ^^
Thanks so much! That was super helpful!
wow thanks!
Is the problem that it’s not summoning or it’s not moving?
If it’s not summoning, it might be because of your @p selector in the first command.
It isn't moving.
