Summon fireball going same direction as arrow

Summon fireball going same direction as arrow - Background of paper with seamless ornament in rows

A bit of background before I ask the question:

I am making a system of command blocks that finds in arrow in the ground and replaces it with a fireball. Right now I am making the fireball go directly into the ground, but that doesn't work very well when the arrow hits something on the side, as the fireball goes straight down.

Question:

How can I make it so the fireball spawns with a direction the same as the arrow in the ground?

Current Command:

/execute @e[type=Arrow,score_inGround_min=1] ~ ~ ~ summon Fireball ~ ~1 ~ {ExplosionPower:20, direction:[0.0,-10.0,0.0]}


Best Answer

Do

/execute @e[type=Arrow] ~ ~ ~ summon Fireball ~ ~ ~ {direction:[0.0,0.0,0.0],ExplosionPower:1}

On a timer. It will remove the arrow though.




Pictures about "Summon fireball going same direction as arrow"

Summon fireball going same direction as arrow - Contemplative ethnic woman with coffee and bike walking on pavement
Summon fireball going same direction as arrow - Brown Wooden Arrow Signed
Summon fireball going same direction as arrow - Exit Signage Pointing at Right Side



How do you summon a fireball direction?

How to Enter the Command
  • Open the Chat Window. The easiest way to run a command in Minecraft is within the chat window.
  • Type the Command. In this example, we are going to summon a fireball in Minecraft Java Edition (PC/Mac) 1.18 with the following command: /summon fireball ~ ~1 ~


  • How do you summon a fireball that explodes?

    Fire a fireball by putting a fire charge in a dispenser and activate it with redstone. Then teleport it (like /tp @e[type=fireball,r=5] 5 10 5 ) to where you want.



    How to Shoot Entities where you look




    More answers regarding summon fireball going same direction as arrow

    Answer 2

    You can hook this up to a always active repeating command block and then when you fire a snowball, it immediately transforms into a fireball and is thrusted into the direction that you threw it:

    /execute @e[type=snowball] ~ ~ ~ summon Fireball ~ ~ ~ {direction:[0.0,0.0,0.0],ExplosionPower:0}
    

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Julia Filirovska, Blue Bird, Jens Johnsson, Pixabay