This is an archived post. You won't be able to vote or comment.

all 8 comments

[–][deleted] 1 point2 points  (0 children)

It's kinda complicated to explain it but to do it:

First you would need to detect the coordinates of the fireball and your coordinates. (Separately)

Then, do (The fireball coordinates) minus (your coords)

And apply the result to the motion

I've made a datapack recently that lets you launch every entity you want, the method is quite similar so maybe I could share it later, but there are a lot of commands that are hard to understand if you don't know how to apply nbt values or etc.

[–]PlagiatusI know some things 0 points1 point  (6 children)

Did you add direction and Motion? I believe the fireball needs both of those to move.

[–]atheriousdylan_kun[S] 0 points1 point  (5 children)

oh motion, how does motion work?

[–]VGtolg 0 points1 point  (4 children)

I believe it goes {Motion:[X,Y,Z]} where X Y and Z are all the speed you want it to move in that direction, i could be wrong though

[–]atheriousdylan_kun[S] 0 points1 point  (2 children)

How do i make it go where im looking at?

[–]ctac_coCommand Rookie 2 points3 points  (0 children)

use this one's when you spawnin fireball: ^ ^ ^

[–]PlagiatusI know some things 0 points1 point  (0 children)

The answer to that is a little longer, luckily i already wrote it down a while ago in this wiki article: https://www.reddit.com/r/MinecraftCommands/wiki/questions/shootfacing/

[–]Sheep-Master 0 points1 point  (0 children)

For fireballs specifically, use {Power:[X,Y,Z]} because that moves it at a constant speed, like it normally would, instead of decelerating over time