How to get a fireball/projectile to shoot in the same direction as the summoning player is looking in 1.13? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to use ^^^ coordinate systems for motion nbt (minecraft)Summon fireball going same direction as arrowSpawning mobs a few feet away in the direction you are looking atSummoning based on direction player is facingHow to make a fireball summoning item in vanilla Minecraft?How do I affect a player that is 20 blocks away from me if I am looking in their direction?How to make a score be recorded as team?My arrows aren't being executed at by a looping function/command blockHow can I testfor a nearby player in minecraft 1.13How to test if a player is running in 1.13Need to make target selector only select one entity

I'm having difficulty getting my players to do stuff in a sandbox campaign

What was Bilhah and Zilpah's ancestry?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Keep going mode for require-package

If I can make up priors, why can't I make up posteriors?

How did the aliens keep their waters separated?

Writing Thesis: Copying from published papers

3 doors, three guards, one stone

Can the prologue be the backstory of your main character?

Determine whether f is a function, an injection, a surjection

Windows 10: How to Lock (not sleep) laptop on lid close?

How to dynamically generate the hash value of a file while it gets downloaded from any website?

Is there a documented rationale why the House Ways and Means chairman can demand tax info?

Interesting examples of non-locally compact topological groups

Stop battery usage [Ubuntu 18]

How to rotate it perfectly?

Why use gamma over alpha radiation?

If A makes B more likely then B makes A more likely"

Am I ethically obligated to go into work on an off day if the reason is sudden?

Aligning matrix of nodes with grid

Can a 1st-level character have an ability score above 18?

Can I throw a sword that doesn't have the Thrown property at someone?

Is it possible to ask for a hotel room without minibar/extra services?

Who can trigger ship-wide alerts in Star Trek?



How to get a fireball/projectile to shoot in the same direction as the summoning player is looking in 1.13?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to use ^^^ coordinate systems for motion nbt (minecraft)Summon fireball going same direction as arrowSpawning mobs a few feet away in the direction you are looking atSummoning based on direction player is facingHow to make a fireball summoning item in vanilla Minecraft?How do I affect a player that is 20 blocks away from me if I am looking in their direction?How to make a score be recorded as team?My arrows aren't being executed at by a looping function/command blockHow can I testfor a nearby player in minecraft 1.13How to test if a player is running in 1.13Need to make target selector only select one entity



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Right now, I'm working on a datapack that allows you to summon an enchanted carrot on a stick, which when you right click takes a fire charge from your inventory and shoots it where you are looking. I've got everything complete except for a funny issue where the fireballs shoot at an angle from where you are looking and they slow down quickly after being shot. Also, they then hang in the air and all move in the direction of the most recently fired one. Here is my function:



summon minecraft:fireball ^ ^ ^2 CustomName:""firewandfireball"", direction:[0d,0d,0d], ExplosionPower:0, life:1000
summon minecraft:area_effect_cloud 0 0 0 CustomName:""firewandaoecloud"", radius:0, duration:1000, particle:"take", effects:[]

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] at @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] rotated as @a[scores=firewandClicks=1,nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] run tp @s ^ ^ ^1

scoreboard objectives add firewandx dummy
scoreboard objectives add firewandy dummy
scoreboard objectives add firewandz dummy

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandx run data get entity @s Pos[0] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandy run data get entity @s Pos[1] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandz run data get entity @s Pos[2] 10000

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

scoreboard objectives remove firewandx
scoreboard objectives remove firewandy
scoreboard objectives remove firewandz

execute run scoreboard players reset firewandClicks
execute run scoreboard players set @e firewandClicks 0


And this is the command that runs the function:
execute as @a[scores=firewandClicks=1, nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] at @s anchored eyes run function firewand:fwshoot
All of them moving at once happens because they are all named the same, so I'll open another question on how to remove a customName from an entity after it has been summoned. What I need help on is getting the fireball to come straight forwards from where the player is looking when the fireball is summoned. I think I have some math wrong somewhere but I really am at a loss on how to fix it, because the angle it is off by changes based on where I'm looking.



These fireballs are just hanging in the air:
Fireballs hanging in the air.
These fireballs all go at the same angle and stop at the same place:
Fireballs going at the same angle.
At this angle the fireballs go where I point:
At this angle they go where I point.



Edit: Added power so they constantly are accelerated, but no matter which combination of direction, Motion, and power I use, they still go flying away at the wrong angle.










share|improve this question









New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

    – Fabian Röling
    3 hours ago











  • … even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

    – Fabian Röling
    3 hours ago











  • The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

    – Nik3141
    1 hour ago






  • 1





    If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

    – Fabian Röling
    22 mins ago












  • Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

    – Fabian Röling
    20 mins ago

















0















Right now, I'm working on a datapack that allows you to summon an enchanted carrot on a stick, which when you right click takes a fire charge from your inventory and shoots it where you are looking. I've got everything complete except for a funny issue where the fireballs shoot at an angle from where you are looking and they slow down quickly after being shot. Also, they then hang in the air and all move in the direction of the most recently fired one. Here is my function:



summon minecraft:fireball ^ ^ ^2 CustomName:""firewandfireball"", direction:[0d,0d,0d], ExplosionPower:0, life:1000
summon minecraft:area_effect_cloud 0 0 0 CustomName:""firewandaoecloud"", radius:0, duration:1000, particle:"take", effects:[]

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] at @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] rotated as @a[scores=firewandClicks=1,nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] run tp @s ^ ^ ^1

scoreboard objectives add firewandx dummy
scoreboard objectives add firewandy dummy
scoreboard objectives add firewandz dummy

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandx run data get entity @s Pos[0] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandy run data get entity @s Pos[1] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandz run data get entity @s Pos[2] 10000

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

scoreboard objectives remove firewandx
scoreboard objectives remove firewandy
scoreboard objectives remove firewandz

execute run scoreboard players reset firewandClicks
execute run scoreboard players set @e firewandClicks 0


And this is the command that runs the function:
execute as @a[scores=firewandClicks=1, nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] at @s anchored eyes run function firewand:fwshoot
All of them moving at once happens because they are all named the same, so I'll open another question on how to remove a customName from an entity after it has been summoned. What I need help on is getting the fireball to come straight forwards from where the player is looking when the fireball is summoned. I think I have some math wrong somewhere but I really am at a loss on how to fix it, because the angle it is off by changes based on where I'm looking.



These fireballs are just hanging in the air:
Fireballs hanging in the air.
These fireballs all go at the same angle and stop at the same place:
Fireballs going at the same angle.
At this angle the fireballs go where I point:
At this angle they go where I point.



Edit: Added power so they constantly are accelerated, but no matter which combination of direction, Motion, and power I use, they still go flying away at the wrong angle.










share|improve this question









New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 1





    First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

    – Fabian Röling
    3 hours ago











  • … even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

    – Fabian Röling
    3 hours ago











  • The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

    – Nik3141
    1 hour ago






  • 1





    If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

    – Fabian Röling
    22 mins ago












  • Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

    – Fabian Röling
    20 mins ago













0












0








0








Right now, I'm working on a datapack that allows you to summon an enchanted carrot on a stick, which when you right click takes a fire charge from your inventory and shoots it where you are looking. I've got everything complete except for a funny issue where the fireballs shoot at an angle from where you are looking and they slow down quickly after being shot. Also, they then hang in the air and all move in the direction of the most recently fired one. Here is my function:



summon minecraft:fireball ^ ^ ^2 CustomName:""firewandfireball"", direction:[0d,0d,0d], ExplosionPower:0, life:1000
summon minecraft:area_effect_cloud 0 0 0 CustomName:""firewandaoecloud"", radius:0, duration:1000, particle:"take", effects:[]

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] at @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] rotated as @a[scores=firewandClicks=1,nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] run tp @s ^ ^ ^1

scoreboard objectives add firewandx dummy
scoreboard objectives add firewandy dummy
scoreboard objectives add firewandz dummy

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandx run data get entity @s Pos[0] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandy run data get entity @s Pos[1] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandz run data get entity @s Pos[2] 10000

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

scoreboard objectives remove firewandx
scoreboard objectives remove firewandy
scoreboard objectives remove firewandz

execute run scoreboard players reset firewandClicks
execute run scoreboard players set @e firewandClicks 0


And this is the command that runs the function:
execute as @a[scores=firewandClicks=1, nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] at @s anchored eyes run function firewand:fwshoot
All of them moving at once happens because they are all named the same, so I'll open another question on how to remove a customName from an entity after it has been summoned. What I need help on is getting the fireball to come straight forwards from where the player is looking when the fireball is summoned. I think I have some math wrong somewhere but I really am at a loss on how to fix it, because the angle it is off by changes based on where I'm looking.



These fireballs are just hanging in the air:
Fireballs hanging in the air.
These fireballs all go at the same angle and stop at the same place:
Fireballs going at the same angle.
At this angle the fireballs go where I point:
At this angle they go where I point.



Edit: Added power so they constantly are accelerated, but no matter which combination of direction, Motion, and power I use, they still go flying away at the wrong angle.










share|improve this question









New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












Right now, I'm working on a datapack that allows you to summon an enchanted carrot on a stick, which when you right click takes a fire charge from your inventory and shoots it where you are looking. I've got everything complete except for a funny issue where the fireballs shoot at an angle from where you are looking and they slow down quickly after being shot. Also, they then hang in the air and all move in the direction of the most recently fired one. Here is my function:



summon minecraft:fireball ^ ^ ^2 CustomName:""firewandfireball"", direction:[0d,0d,0d], ExplosionPower:0, life:1000
summon minecraft:area_effect_cloud 0 0 0 CustomName:""firewandaoecloud"", radius:0, duration:1000, particle:"take", effects:[]

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] at @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] rotated as @a[scores=firewandClicks=1,nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] run tp @s ^ ^ ^1

scoreboard objectives add firewandx dummy
scoreboard objectives add firewandy dummy
scoreboard objectives add firewandz dummy

execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandx run data get entity @s Pos[0] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandy run data get entity @s Pos[1] 10000
execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] store result score @s firewandz run data get entity @s Pos[2] 10000

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s Motion[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s direction[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[0] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandx
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[1] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandy
execute as @e[type=minecraft:fireball, name=firewandfireball] store result entity @s power[2] double 0.0001 run execute as @e[type=minecraft:area_effect_cloud, name=firewandaoecloud] run scoreboard players get @s firewandz

scoreboard objectives remove firewandx
scoreboard objectives remove firewandy
scoreboard objectives remove firewandz

execute run scoreboard players reset firewandClicks
execute run scoreboard players set @e firewandClicks 0


And this is the command that runs the function:
execute as @a[scores=firewandClicks=1, nbt=SelectedItem:tag:display:Name:""text":"Fire Wand""] at @s anchored eyes run function firewand:fwshoot
All of them moving at once happens because they are all named the same, so I'll open another question on how to remove a customName from an entity after it has been summoned. What I need help on is getting the fireball to come straight forwards from where the player is looking when the fireball is summoned. I think I have some math wrong somewhere but I really am at a loss on how to fix it, because the angle it is off by changes based on where I'm looking.



These fireballs are just hanging in the air:
Fireballs hanging in the air.
These fireballs all go at the same angle and stop at the same place:
Fireballs going at the same angle.
At this angle the fireballs go where I point:
At this angle they go where I point.



Edit: Added power so they constantly are accelerated, but no matter which combination of direction, Motion, and power I use, they still go flying away at the wrong angle.







minecraft minecraft-commands






share|improve this question









New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 8 mins ago







Nik3141













New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









Nik3141Nik3141

306




306




New contributor




Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Nik3141 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 1





    First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

    – Fabian Röling
    3 hours ago











  • … even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

    – Fabian Röling
    3 hours ago











  • The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

    – Nik3141
    1 hour ago






  • 1





    If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

    – Fabian Röling
    22 mins ago












  • Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

    – Fabian Röling
    20 mins ago












  • 1





    First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

    – Fabian Röling
    3 hours ago











  • … even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

    – Fabian Röling
    3 hours ago











  • The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

    – Nik3141
    1 hour ago






  • 1





    If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

    – Fabian Röling
    22 mins ago












  • Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

    – Fabian Röling
    20 mins ago







1




1





First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

– Fabian Röling
3 hours ago





First things I notice: 1. Don't you need quotes around the custom name? 2. The space after the comma in the selector is not necessary. For now it works, but it's not really intended that you put it there. I definitely remember that in the past additional spaces messed up some commands. 3. Why do you add and remove the scoreboard every time the function is ran? You could just add it once and keep it, reset scores if necessary. 4. So you copy the absolute position of the AEC and store it in "Motion", "direction" and "power" of the fireball? What exactly is that supposed to do? "Motion" doesn't …

– Fabian Röling
3 hours ago













… even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

– Fabian Röling
3 hours ago





… even do anything, it's not a tag that fireballs in 1.13 usually have. And the absolute position of course depends on where you are. 5. I remember some issue where setting fireball speed didn't work properly. But I don't know if it's fixed and I can't find the bug report, if it even was a bug. So you might want to teleport it instead.

– Fabian Röling
3 hours ago













The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

– Nik3141
1 hour ago





The goal was that the new coordinates of the cloud (because it was teleported one block forwards with the rotation of the player) would give the proper angle for the direction/power nbt to make it fly straight away from the player. I'm guessing that my understanding of that is flawed, and it doesn't work that way. How can I achieve this effect otherwise? Can I somehow make the player automatically punch the fireball when it is spawned in?

– Nik3141
1 hour ago




1




1





If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

– Fabian Röling
22 mins ago






If the fireball is at x=100 and you give it the momentum [1,0,0], then it will move to x=101 in the next tick, a little less than x=102 in the next and so on, slowing down or speeding up, I don't quite know. You can't make the player punch, but you can summon an arrow, or easier, just enter proper velocity. I'll look up a link…

– Fabian Röling
22 mins ago














Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

– Fabian Röling
20 mins ago





Possible duplicate of How to use ^^^ coordinate systems for motion nbt (minecraft)

– Fabian Röling
20 mins ago










0






active

oldest

votes












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "41"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Nik3141 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f349008%2fhow-to-get-a-fireball-projectile-to-shoot-in-the-same-direction-as-the-summoning%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








Nik3141 is a new contributor. Be nice, and check out our Code of Conduct.









draft saved

draft discarded


















Nik3141 is a new contributor. Be nice, and check out our Code of Conduct.












Nik3141 is a new contributor. Be nice, and check out our Code of Conduct.











Nik3141 is a new contributor. Be nice, and check out our Code of Conduct.














Thanks for contributing an answer to Arqade!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgaming.stackexchange.com%2fquestions%2f349008%2fhow-to-get-a-fireball-projectile-to-shoot-in-the-same-direction-as-the-summoning%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Isurus Índice Especies | Notas | Véxase tamén | Menú de navegación"A compendium of fossil marine animal genera (Chondrichthyes entry)"o orixinal"A review of the Tertiary fossil Cetacea (Mammalia) localities in wales port taf Museum Victoria"o orixinalThe Vertebrate Fauna of the Selma Formation of Alabama. Part VII. Part VIII. The Mosasaurs The Fishes50419737IDsh85068767Isurus2548834613242066569678159923NHMSYS00210535017845105743

Is 1 ppb equal to 1 μg/kg? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How to determine the concentration after a dilution with Beer's law?What would be SMILES notation for a compound with delocalized bonding?Amount of substance of a molecule in a solute the same as amount of substance of constituent elements?Interpreting notation format 1.64E-02 from particulate emission dataWhat was the lithium concentration in 1940's 7-Up?Why are osmoles not considered SI units?Why is Ka constant when volume is increased?Should residual sodium be considered in measuring sodium content of sweat?Concentration of mercury in bodyConversion from a PPB value to µg/m3 of Isobutylene

What does “fit” mean in this sentence? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How does 'jealousy' mean 'suspicion'?What does “not so say” mean?Does “somebody of my caliber” mean the speaker themselves?“accounting for high fasting blood glucose”- help about the meaningWhat does “cloaked by NDA” mean in this context?What does it mean by 'community ownership' in this context?What does “human corroborators” mean in this context?What does “everything but a fire” mean in this context?What does “run” mean here?What does “rabbited” mean/imply in this sentence?