Repulsor Forcefield Dome

Surround an arcane defender with a spinning cyan energy dome that vaporizes incoming arrows and hurls approaching monsters away with pure command magic.

Java EditionMagic & SpellsMedium21 commandsTested on a real 26.2 & 26.3 server
A glowing mage summons a protective barrier of soul fire and cyan particles against a skeleton at night. Download the GIF Video & GIF © www.9minecraft.net

Holy & Light MagicMysticLightningCyanWhiteBluePvPBoss FightAdventure MapBlock displaysArmor standsSummoned mobsRotation math21+ commands

The Repulsor Forcefield Dome wraps an armored mage in a rotating 4.2-block shell of bright cyan dust, end rod sparkles, and soul fire flames. A glowing beacon core hovers overhead while orbiting markers weave a continuous spherical barrier around the caster.

In this self-running demonstration, any arrow fired toward the mage is vaporized in a burst of soul fire upon touching the perimeter, and approaching attackers are violently pushed backward whenever they try to breach the shield.

1. Setup - type these once 7 commands

  1. /scoreboard objectives add c9_timer dummy
  2. /scoreboard players set #tick c9_timer 0
  3. /summon armor_stand ~ ~ ~ {Tags:["c9_actor"],NoGravity:1b,ShowArms:1b,Invisible:0b,CustomName:{"text":"Arcane Defender","color":"aqua"},CustomNameVisible:1b,equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:diamond_chestplate",count:1},legs:{id:"minecraft:diamond_leggings",count:1},feet:{id:"minecraft:diamond_boots",count:1},mainhand:{id:"minecraft:blaze_rod",count:1}},Glowing:1b}
  4. /summon block_display ~ ~2.6 ~ {Tags:["c9_dome","c9_core"],block_state:{Name:"minecraft:beacon"},Glowing:1b,glow_color_override:65535,transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[0.5f,0.5f,0.5f],translation:[-0.25f,-0.25f,-0.25f]}}
  5. /summon marker ~ ~1 ~ {Tags:["c9_dome","c9_orb1"],Rotation:[0f,0f]}
  6. /summon marker ~ ~1 ~ {Tags:["c9_dome","c9_orb2"],Rotation:[90f,35f]}
  7. /summon marker ~ ~1 ~ {Tags:["c9_dome","c9_orb3"],Rotation:[180f,-35f]}

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

  1. /scoreboard players add #tick c9_timer 1
  2. /execute if score #tick c9_timer matches 40.. run scoreboard players set #tick c9_timer 0
  3. /execute as @e[tag=c9_orb1] at @s run tp @s ~ ~ ~ ~15 ~5
  4. /execute as @e[tag=c9_orb2] at @s run tp @s ~ ~ ~ ~-13 ~7
  5. /execute as @e[tag=c9_orb3] at @s run tp @s ~ ~ ~ ~11 ~-8
  6. /execute as @e[tag=c9_core] at @s run tp @s ~ ~ ~ ~8 ~
  7. /execute at @e[tag=c9_dome,type=marker] anchored eyes run particle dust{color:[0.1,0.9,1.0],scale:1.6} ^ ^ ^4.2 0.25 0.25 0.25 0 5 force
  8. /execute at @e[tag=c9_dome,type=marker] anchored eyes run particle end_rod ^ ^ ^-4.2 0.1 0.1 0.1 0.01 3 force
  9. /execute at @e[tag=c9_actor] run particle soul_fire_flame ~ ~0.2 ~ 2.6 0.1 2.6 0.01 4 force
  10. /execute if score #tick c9_timer matches 1 unless entity @e[tag=c9_foe,distance=..18] run summon husk ~4.2 ~ ~ {Tags:["c9_foe"],Glowing:1b,equipment:{head:{id:"minecraft:iron_helmet",count:1},mainhand:{id:"minecraft:iron_axe",count:1}}}
  11. /execute if score #tick c9_timer matches 20 run summon arrow ~-8 ~5.5 ~2 {Tags:["c9_proj"],Motion:[0.95,-0.12,-0.24],Glowing:1b}
  12. /execute at @e[tag=c9_actor] as @e[type=arrow,distance=..4.8] at @s run particle soul_fire_flame ~ ~ ~ 0.2 0.2 0.2 0.08 15 force
  13. /execute at @e[tag=c9_actor] as @e[type=arrow,distance=..4.8] at @s run kill @s
  14. /execute at @e[tag=c9_actor] as @e[tag=c9_foe,distance=..4.6] at @s facing entity @e[tag=c9_actor,limit=1] feet run tp @s ^ ^0.45 ^-1.8

How it works

Frames from the test run

Repulsor Forcefield Dome - frame 1Repulsor Forcefield Dome - frame 2Repulsor Forcefield Dome - frame 3

Recorded on our own test server: 59 frames at about 9.8 fps. Our image check saw: A glowing figure with a beacon above their head is surrounded by scattered soul fire particles while a dense cluster of cyan and white particles hovers high above them, with a skeleton standing nearby.

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. Stand at the center of a flat open area and run each command from the Setup list once in chat.
  2. Place 14 Repeating Command Blocks in a row nearby, set every block to Always Active, and paste one Loop command into each block.
  3. Ensure your repeating command blocks execute relative to the stage center or wrap them with /execute positioned at your armor stand's location.
  4. Watch the cyan dome form around the Arcane Defender as test arrows and a glowing husk spawn automatically to test the barrier.
  5. When you are finished testing, run the Remove commands in chat to clear all entities and scoreboard objectives.

Use it with real players

To bind the Repulsor Forcefield Dome to your own character instead of the demo armor stand, give yourself the tag with /tag @s add c9_actor and add a repeating command block running /execute at @a[tag=c9_actor,limit=1] run tp @e[tag=c9_dome] ~ ~1 ~ so the marker anchors and beacon core follow your movement. Replace @e[tag=c9_foe,distance=..4.6] in the final knockback command with @e[type=!player,type=!marker,type=!block_display,type=!arrow,distance=0.5..4.6] to repel all nearby mobs.

Remove it again 5 commands

  1. /kill @e[tag=c9_actor]
  2. /kill @e[tag=c9_dome]
  3. /kill @e[tag=c9_foe]
  4. /kill @e[tag=c9_proj]
  5. /scoreboard objectives remove c9_timer

FAQ

How do I change the size of the forcefield dome?

Change the local Z offsets (^ ^ ^4.2 and ^ ^ ^-4.2) in the two dome particle commands to your desired radius, and update the distance=..4.8 and distance=..4.6 checks on the arrow and mob repulsion commands to match.

Why use marker entities to draw the sphere instead of dozens of command blocks?

Markers have zero client rendering cost and can rotate smoothly along both yaw and pitch every tick, letting just three markers trace a complete sphere using local caret coordinates (^ ^ ^).

Commands used

/execute/kill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides