Kinetic Repulsion Forcefield

Create a glowing cyan energy dome that vaporizes incoming projectiles in bursts of plasma and repels nearby hostile mobs with pure command blocks.

Java EditionParticle ArtEasy20 commandsTested on a real 26.2 & 26.3 server
A beacon-headed guardian generates a blue particle forcefield that launches approaching wither skeletons into the air. Download the GIF Video & GIF © www.9minecraft.net

Rings & OrbitsTechnologyLightningMysticCyanBlueWhitePvPBoss FightAdventure MapBlock displaysArmor standsSummoned mobsStatus effectsRotation math13-20 commands

The Kinetic Repulsion Forcefield generates a protective energy dome around a central guardian using rotating particle rings and a floating beacon core. When incoming arrows hit the boundary of the field, they instantly vaporize in a flash of cyan plasma and electric sparks before they can reach their target.

Any hostile monsters that step across the perimeter are immediately caught in an anti-gravity pulse, lifting them off the ground while crackling energy arcs across the dome.

1. Setup - type these once 6 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /scoreboard players set #time c9_tick 0
  3. /summon armor_stand ~ ~ ~ {Tags:["c9_actor","c9_clean"],NoGravity:1b,ShowArms:1b,equipment:{head:{id:"minecraft:diamond_helmet"},chest:{id:"minecraft:diamond_chestplate"},legs:{id:"minecraft:diamond_leggings"},feet:{id:"minecraft:diamond_boots"},mainhand:{id:"minecraft:beacon"}},CustomName:{"text":"Shield Bearer","color":"aqua"}}
  4. /summon block_display ~ ~2.2 ~ {Tags:["c9_ring","c9_clean"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.35f,-0.35f,-0.35f],scale:[0.7f,0.7f,0.7f]}}
  5. /summon armor_stand ~-11 ~ ~-3 {Tags:["c9_archer_w","c9_clean"],Invisible:1b,NoGravity:1b}
  6. /summon armor_stand ~11 ~ ~3 {Tags:["c9_archer_e","c9_clean"],Invisible:1b,NoGravity:1b}

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

  1. /scoreboard players add #time c9_tick 1
  2. /execute if score #time c9_tick matches 60.. run scoreboard players set #time c9_tick 0
  3. /execute as @e[tag=c9_actor] at @s run tp @s ~ ~ ~ ~12 ~
  4. /execute as @e[tag=c9_actor] at @s rotated ~ 0 positioned ^ ^0.3 ^4.5 run particle dust{color:[0.0,0.95,1.0],scale:1.8} ~ ~ ~ 0.15 0.15 0.15 0 5 force
  5. /execute as @e[tag=c9_actor] at @s rotated ~ 0 positioned ^ ^2.2 ^3.8 run particle electric_spark ~ ~ ~ 0.25 0.25 0.25 0.05 4 force
  6. /execute as @e[tag=c9_actor] at @s rotated ~ 0 positioned ^ ^3.6 ^2.2 run particle soul_fire_flame ~ ~ ~ 0.15 0.15 0.15 0.01 2 force
  7. /execute if score #time c9_tick matches 5 at @e[tag=c9_archer_w] run summon arrow ~ ~2.2 ~ {Tags:["c9_proj","c9_clean"],Motion:[1.3,0.18,0.35]}
  8. /execute if score #time c9_tick matches 35 at @e[tag=c9_archer_e] run summon arrow ~ ~2.2 ~ {Tags:["c9_proj","c9_clean"],Motion:[-1.3,0.18,-0.35]}
  9. /execute if score #time c9_tick matches 15 if entity @e[tag=c9_mob] run kill @e[tag=c9_mob,limit=1,sort=arbitrary]
  10. /execute if score #time c9_tick matches 20 run summon husk ~-4 ~ ~3 {Tags:["c9_mob","c9_clean"],Glowing:1b,equipment:{mainhand:{id:"minecraft:iron_sword"}}}
  11. /execute if score #time c9_tick matches 50 run summon husk ~4 ~ ~-3 {Tags:["c9_mob","c9_clean"],Glowing:1b,equipment:{mainhand:{id:"minecraft:iron_axe"}}}
  12. /execute at @e[tag=c9_actor] as @e[type=arrow,distance=..4.8] at @s run particle soul_fire_flame ~ ~ ~ 0.3 0.3 0.3 0.1 35 force
  13. /execute at @e[tag=c9_actor] run kill @e[type=arrow,distance=..4.8]
  14. /execute at @e[tag=c9_actor] as @e[tag=c9_mob,distance=..5.5] at @s run effect give @s levitation 1 6 true

How it works

Frames from the test run

Kinetic Repulsion Forcefield - frame 1Kinetic Repulsion Forcefield - frame 2Kinetic Repulsion Forcefield - frame 3

Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: An armored figure with a beacon head stands inside a blue particle ring while glowing wither skeletons levitate into the air around the perimeter.

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. Enable cheats in your world and give yourself a command block using /give @s command_block.
  2. Stand at the center of a flat open area and run each of the setup commands once in your chat window.
  3. Place a line of 14 repeating command blocks nearby and set all of them to Always Active.
  4. Paste one loop command into each repeating command block in the listed order.
  5. Watch as the forcefield forms around the guardian, vaporizing incoming arrows and lifting attackers into the sky.

Use it with real players

To attach the forcefield to your own character instead of the demo stand, give yourself the tag with /tag @s add c9_actor and remove the third loop command that forces the entity rotation. You can then replace the mob target filter tag=c9_mob with type=#minecraft:raiders or type=zombie to repel natural monsters around you as you walk.

Remove it again 2 commands

  1. /kill @e[tag=c9_clean]
  2. /scoreboard objectives remove c9_tick

FAQ

Can I change the size of the forcefield dome?

Yes. Increase the ^4.5, ^3.8, and ^2.2 local Z offsets in the particle commands, and raise the distance=..4.8 value in the arrow detection commands to match your new radius.

Does this stop other projectiles like tridents or fireballs?

By default it targets arrows, but you can change type=arrow to tag=!c9_actor with a custom entity type list or multiple execute blocks for spectral_arrow, trident, and fireball.

Commands used

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

Similar creations

Join 9Minecraft News & Guides