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;
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:
These fireballs all go at the same angle and stop at the same place:
At this angle the fireballs 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
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.
add a comment |
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:
These fireballs all go at the same angle and stop at the same place:
At this angle the fireballs 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
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
add a comment |
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:
These fireballs all go at the same angle and stop at the same place:
At this angle the fireballs 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
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:
These fireballs all go at the same angle and stop at the same place:
At this angle the fireballs 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
minecraft minecraft-commands
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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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