Build a shimmering cyan particle dome that pulses on your stage, violently flinging charging vindicators and incoming spectral arrows backward.
Shapes & GeometryTechnologyLightningMysticCyanWhitePvPBoss FightAdventure MapItem displaysRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
A glowing Spherical Repulsor Barrier forms a protective cyan dome around a central sea lantern pedestal, using spinning ray markers to weave dense dust and electric_spark particles across a 4.5-block hemisphere.
In this self-playing demo, charging vindicators and incoming spectral arrows continuously assault the protected villager inside. The moment any threat touches the barrier, a sonic_boom erupts and radial vector math launches it backward across the grass.
/scoreboard objectives add c9_x dummy/scoreboard objectives add c9_z dummy/summon marker ~ ~0.3 ~ {Tags:["c9_core","c9_ray"],Rotation:[0.0f,-5.0f]}/summon marker ~ ~0.3 ~ {Tags:["c9_ray"],Rotation:[90.0f,-26.0f]}/summon marker ~ ~0.3 ~ {Tags:["c9_ray"],Rotation:[180.0f,-48.0f]}/summon marker ~ ~0.3 ~ {Tags:["c9_ray"],Rotation:[270.0f,-72.0f]}/execute store result score #core c9_x run data get entity @e[tag=c9_core,limit=1] Pos[0] 100/execute store result score #core c9_z run data get entity @e[tag=c9_core,limit=1] Pos[2] 100/summon villager ~ ~ ~ {Tags:["c9_bait","c9_safe"],Invulnerable:1b,NoAI:1b,Silent:1b,Passengers:[{id:"minecraft:item_display",Tags:["c9_vis"],item:{id:"minecraft:nether_star",count:1},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.9f,0f],scale:[1.0f,1.0f,1.0f]},billboard:"center",brightness:{sky:15,block:15}}]}/setblock ~ ~-1 ~ sea_lantern/execute as @e[tag=c9_ray] at @s run tp @s ~ ~ ~ ~27 ~/execute at @e[tag=c9_ray] run particle dust{color:[0.1,0.85,1.0],scale:1.4} ^ ^ ^4.5 0.15 0.15 0.15 0 2 force/execute at @e[tag=c9_ray] run particle electric_spark ^2.2 ^ ^3.9 0.12 0.12 0.12 0.02 2 force/execute if entity @e[tag=c9_core,y_rotation=24..30] run summon vindicator ~8.5 ~ ~-2 {Tags:["c9_att"],PersistenceRequired:1b,DeathLootTable:"minecraft:empty"}/execute if entity @e[tag=c9_core,y_rotation=-93..-87] run summon spectral_arrow ~-9.5 ~2.5 ~-4.5 {Tags:["c9_att"],Motion:[0.95d,0.08d,0.45d],pickup:0b}/execute if entity @e[tag=c9_core,y_rotation=-30..-24] run kill @e[tag=c9_att,distance=5.5..]/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] store result score @s c9_x run data get entity @s Pos[0] 100/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] run scoreboard players operation @s c9_x -= #core c9_x/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] store result score @s c9_z run data get entity @s Pos[2] 100/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] run scoreboard players operation @s c9_z -= #core c9_z/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] run data merge entity @s {Motion:[0.0d,0.38d,0.0d]}/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] store result entity @s Motion[0] double 0.0022 run scoreboard players get @s c9_x/execute as @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] store result entity @s Motion[2] double 0.0022 run scoreboard players get @s c9_z/execute at @e[tag=!c9_safe,type=!marker,type=!item_display,type=!item,type=!player,distance=..4.8] run particle sonic_boom ~ ~1 ~ 0 0 0 0 1 forcesetup #3 Summons the central <code>c9_core</code> marker with an upward pitch of <code>-5.0</code>. Alongside three other <code>c9_ray</code> markers pitched at <code>-26</code>, <code>-48</code>, and <code>-72</code>, these four markers trace horizontal rings at four heights across the dome.setup #7 Stores the core's world X coordinate (scaled by <code>100</code> for decimal precision) into <code>#core c9_x</code>. Command 7 does the same for Z, allowing the barrier to work at any location in your world.setup #9 Places an invulnerable villager tagged <code>c9_safe</code> at the center to attract hostile mobs, carrying a brightly lit floating <code>nether_star</code> <code>item_display</code> above its head.loop #1 Rotates every <code>c9_ray</code> marker by <code>27</code> degrees per tick. Because <code>c9_core</code> only returns to its starting angle every 40 ticks (2 seconds), its <code>y_rotation</code> also doubles as a compact wave timer for spawning and cleanup.loop #2 Spawns cyan <code>dust</code> particles <code>4.5</code> blocks in front of each rotated marker using local coordinates (<code>^ ^ ^4.5</code>), forming a spherical shell. Command 2 adds <code>electric_spark</code> particles at <code>^2.2 ^ ^3.9</code> (also radius ~4.5) for extra surface shimmer.loop #7 Commands 6 through 12 compute each intruding entity's horizontal offset from <code>#core</code>, lift it with <code>Motion[1] = 0.38</code>, and write scaled radial velocities into <code>Motion[0]</code> and <code>Motion[2]</code> so both mobs and arrows fly straight away from the dome.loop #14 Fires a <code>sonic_boom</code> particle at the exact point of impact whenever a mob or projectile is deflected.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A villager stands on a sea lantern beneath a floating nether star surrounded by a cyan dust and white spark particle dome, while a defeated mob lies red and smoking outside the barrier.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
Players are already ignored by the repulsion filter (type=!player), so you can step inside your own dome freely. To keep the barrier in survival without automatic demo attackers, leave out loop commands 3, 4, and 5; to make the dome follow you, teleport c9_ray and c9_vis to @p and refresh #core c9_x and #core c9_z from your position each tick.
/kill @e[tag=c9_ray]/kill @e[tag=c9_core]/kill @e[tag=c9_vis]/kill @e[tag=c9_bait]/kill @e[tag=c9_att]/scoreboard objectives remove c9_x/scoreboard objectives remove c9_z/setblock ~ ~-1 ~ grass_blockYes. Simply skip loop commands 3, 4, and 5 (index 3, 4, and 5) when setting up the repeating command blocks. The dome will still deflect real arrows, tridents, and any hostile mobs that approach.
During setup, the creation records the exact X and Z coordinates of <code>c9_core</code> into the <code>c9_x</code> and <code>c9_z</code> scoreboards. Every deflection subtracts those center coordinates from the intruder's position to calculate a true outward vector.
▶Automated Circle BuilderShapes & GeometryEasy19 cmds
▶High-Voltage PerimeterShapes & GeometryEasy26 cmds
▶High-Voltage Laser Security FenceShapes & GeometryEasy24 cmds
▶Shifting Chladni Plate Cymatics ResonanceShapes & GeometryExpert24 cmds
▶Weaving Persian Carpet Arabesque MedallionShapes & GeometryExpert24 cmds
▶Ferrofluid Magnetic Spike Dance SculptureShapes & GeometryHard23 cmds