Heat-Seeking Fireballs in Vanilla Minecraft

Build heat-seeking fireballs in Minecraft Java Edition using command blocks. Blazing projectiles curve smoothly through the air to track and destroy targets.

Java EditionWands, Weapons & ToolsMedium22 commandsTested on a real 26.2 & 26.3 server
Glowing magma fireballs curve in mid-air from a central turret to strike a flying target at night. Download the GIF Video & GIF © www.9minecraft.net

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.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 magma_block
  3. /setblock ~ ~ ~ nether_brick_wall
  4. /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},{}]}
  5. /summon marker ~ ~1 ~ {Tags:["c9_pivot"]}
  6. /summon husk ~10 ~ ~ {Tags:["c9_target"],Glowing:1b,PersistenceRequired:1b,Silent:1b}

2. Loop - one repeating command block each (Always Active) 16 commands

  1. /scoreboard players add @e[tag=c9_actor] c9_timer 1
  2. /execute as @e[tag=c9_pivot] at @s run tp @s ~ ~ ~ ~9 ~
  3. /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}
  4. /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 ~
  5. /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]}}
  6. /execute as @e[tag=c9_actor,scores={c9_timer=25..}] at @s run playsound entity.blaze.shoot master @a ~ ~1.8 ~ 1 0.8
  7. /scoreboard players set @e[tag=c9_actor,scores={c9_timer=25..}] c9_timer 0
  8. /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 ~
  9. /execute at @e[tag=c9_fb] run particle flame ~ ~ ~ 0.12 0.12 0.12 0.03 5 force
  10. /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
  11. /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
  12. /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
  13. /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
  14. /execute as @e[tag=c9_fb] at @s run scoreboard players add @s c9_timer 1
  15. /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
  16. /kill @e[tag=c9_fb,scores={c9_timer=80..}]

How it works

Frames from the test run

Heat-Seeking Fireballs in Vanilla Minecraft - frame 1Heat-Seeking Fireballs in Vanilla Minecraft - frame 2Heat-Seeking Fireballs in Vanilla Minecraft - frame 3

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.

Build it in your world

  1. Create a flat area and run the 6 setup commands in chat while standing at the center of your arena.
  2. Place a column or line of 16 Repeating Command Blocks set to Always Active nearby.
  3. Paste one loop command into each repeating command block in order.
  4. Watch the center turret automatically spawn glowing husks and launch curving fireballs to hunt them down.
  5. When finished, run the remove commands in chat to clean up all entities, blocks, and scoreboards.

Use it with real players

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.

Remove it again 7 commands

  1. /kill @e[tag=c9_fb]
  2. /kill @e[tag=c9_target]
  3. /kill @e[tag=c9_pivot]
  4. /kill @e[tag=c9_actor]
  5. /scoreboard objectives remove c9_timer
  6. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_block
  7. /setblock ~ ~ ~ air

FAQ

Why use a block_display entity instead of a default Minecraft fireball?

Vanilla 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.

What happens if a fireball misses and all targets are gone?

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.

Commands used

/damage/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides