2

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]}
3
  • Does it need to be a fireball, or can it just be an explosion?
    – user139899
    Commented Mar 19, 2016 at 22:17
  • It could just be an explosion, but I want to be able to control the size of it.
    – Da Monster
    Commented Mar 26, 2016 at 1:10
  • I believe creepers also allow you to control ExplosionPower... not 100% sure though. Edit: Not explosion power, but ExplosionRadius
    – user139899
    Commented Mar 26, 2016 at 3:15

2 Answers 2

3

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.

-1

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}
2
  • It works exactly like you would imagine. Its pretty darn awesome.
    – A Cake
    Commented Dec 9, 2017 at 4:39
  • This is essentially no different than the already existing answer, apart from executing off a snowball instead of an arrow which is not what the question asked.
    – Skylinerw
    Commented Dec 9, 2017 at 5:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.