Build heat-seeking fireballs in Minecraft Java Edition using command blocks. Blazing projectiles curve smoothly through the air to track and destroy targets.
Projectiles & MissilesFireNetherMysticOrangeRedYellowPvPBoss FightAdventure MapBlock displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands
Traditional fireballs in Minecraft only travel in a straight line, making it easy for fast enemies to dodge them. This command creation upgrades fire magic by summoning glowing magma fireballs that lock onto nearby targets and bend their flight path in mid-air until they strike.
In the demonstration, a pyromancer turret stands in the center of the arena while targets spawn and run around the perimeter. Every second, the turret launches a fireball high into the air that curves down with a trail of flames and smoke, detonating with a burst of lava particles the moment it catches its prey.
/scoreboard objectives add c9_timer dummy/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 magma_block/setblock ~ ~ ~ nether_brick_wall/summon armor_stand ~ ~1 ~ {Tags:["c9_actor"],NoGravity:1b,Invisible:0b,ShowArms:1b,ArmorItems:[{id:"minecraft:netherite_boots",count:1},{id:"minecraft:netherite_leggings",count:1},{id:"minecraft:netherite_chestplate",count:1},{id:"minecraft:carved_pumpkin",count:1}],HandItems:[{id:"minecraft:blaze_rod",count:1},{}]}/summon marker ~ ~1 ~ {Tags:["c9_pivot"]}/summon husk ~10 ~ ~ {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Silent:1b}/scoreboard players add @e[tag=c9_actor] c9_timer 1/execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~9 ~/execute as @e[tag=c9_actor,scores={c9_timer=1}] at @e[tag=c9_pivot] positioned ^ ^ ^11 unless entity @e[tag=c9_target,distance=..25] run summon husk ~ ~ ~ {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Silent:1b}/execute as @e[tag=c9_target] at @s facing entity @e[tag=c9_actor,limit=1] feet run tp @s ^0.22 ^ ^0.06 ~90 ~/execute as @e[tag=c9_actor,scores={c9_timer=25..}] at @s if entity @e[tag=c9_target,distance=..22] facing entity @e[tag=c9_target,limit=1,sort=nearest] eyes run summon block_display ~ ~1.8 ~ {Tags:["c9_fb"],Glowing:1b,glow_color_override:16738816,teleport_duration:1,block_state:{Name:"minecraft:magma_block"},transformation:{translation:[-0.25f,-0.25f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],right_rotation:[0f,0f,0f,1f]}}/execute as @e[tag=c9_actor,scores={c9_timer=25..}] at @s run playsound entity.blaze.shoot master @a ~ ~1.8 ~ 1 0.8/scoreboard players set @e[tag=c9_actor,scores={c9_timer=25..}] c9_timer 0/execute as @e[tag=c9_fb] at @s facing entity @e[tag=c9_target,limit=1,sort=nearest] eyes positioned ^ ^ ^1.2 facing entity @e[tag=c9_fb,limit=1,sort=nearest] feet run tp @s ^ ^0.18 ^0.65 ~180 ~/execute at @e[tag=c9_fb] run particle flame ~ ~ ~ 0.12 0.12 0.12 0.03 5 force/execute at @e[tag=c9_fb] run particle dust{color:[1.0,0.35,0.0],scale:1.6} ~ ~ ~ 0.15 0.15 0.15 0 4 force/execute as @e[tag=c9_fb] at @s if entity @e[tag=c9_target,distance=..1.6] run particle explosion_emitter ~ ~ ~ 0 0 0 0 1 force/execute as @e[tag=c9_fb] at @s if entity @e[tag=c9_target,distance=..1.6] run playsound entity.generic.explode master @a ~ ~ ~ 0.8 1.2/execute as @e[tag=c9_fb] at @s if entity @e[tag=c9_target,distance=..1.6] run damage @e[tag=c9_target,distance=..2.5,limit=1,sort=nearest] 12 magic/execute as @e[tag=c9_fb] at @s run scoreboard players add @s c9_timer 1/execute as @e[tag=c9_fb] at @s if entity @e[tag=c9_target,distance=..1.6] run scoreboard players set @s c9_timer 100/kill @e[tag=c9_fb,scores={c9_timer=80..}]loop #5 Every 25 ticks, if a target is within range, the actor summons a glowing <code>block_display</code> magma block tagged <code>c9_fb</code> with <code>teleport_duration:1</code> so its movement looks smooth.loop #8 This single command creates the smooth homing arc. It looks from the fireball toward the nearest target, steps forward 1.2 blocks along that line, looks back at the fireball, and teleports the fireball partially along that vector with an upward lift (<code>^0.18</code>). This blends the old position and the target direction into a natural curve.loop #13 When the fireball comes within 1.6 blocks of a target, it deals 12 magic damage to the target while accompanying commands trigger an explosion particle and sound before removing the projectile.


Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: An armor stand turret on a magma pad fires glowing magma blocks that leave a curving trail of flames to track a moving glowing zombie in the air.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To cast heat-seeking fireballs yourself instead of using the armor stand turret, add a right-click scoreboard objective with /scoreboard objectives add c9_cast minecraft.used:minecraft.carrot_on_a_stick. Replace @e[tag=c9_actor,scores={c9_timer=25..}] in the fireball summon and sound commands with @a[scores={c9_cast=1..}], and reset c9_cast to 0 right after. You can also change tag=c9_target to type=#minecraft:raiders or type=zombie so your fireballs track hostile mobs around you.
/kill @e[tag=c9_fb]/kill @e[tag=c9_target]/kill @e[tag=c9_pivot]/kill @e[tag=c9_actor]/scoreboard objectives remove c9_timer/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_block/setblock ~ ~ ~ airVanilla fireballs have built-in acceleration logic that can stutter when their motion NBT is modified every tick. A block_display with teleport_duration set to 1 interpolates smoothly between ticks and lets us scale and glow the projectile.
Every fireball counts up on the c9_timer scoreboard objective each tick and is automatically deleted after 80 ticks (4 seconds) so leftover projectiles never cause lag.
/damage/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp
▶Tarot Card Arcana Summoning DeckProjectiles & MissilesExpert25 cmds
▶Expanding Ring of ArrowsProjectiles & MissilesEasy24 cmds
▶Rapid-Fire Skull TurretProjectiles & MissilesMedium21 cmds
▶Relentless Heat-Seeking Arrow SwarmProjectiles & MissilesEasy24 cmds
▶Ferris-Wheel Gondola Revolver CannonProjectiles & MissilesExpert24 cmds
▶Leviathan Water-Dragon Calligrapher ScrollProjectiles & MissilesExpert26 cmds