Arcane Repulsion Forcefield

A pulsing arcane energy dome protects a central mage, violently blasting away charging vindicators and deflecting volleys of glowing arrows in mid-air.

Java EditionMagic & SpellsMedium24 commandsTested on a real 26.2 & 26.3 server
A glowing figure inside a particle forcefield deflects spectral arrows beneath a floating end crystal at night. Download the GIF Video & GIF © www.9minecraft.net

Arcane RunesMysticMedievalCyanBlueWhiteBoss FightPvPAdventure MapBlock displaysArmor standsSummoned mobsRotation math21+ commands

An arcane mage stands atop a glowing crying obsidian pedestal beneath a floating end crystal, surrounded by a rotating spherical barrier of cyan energy. Every 1.5 seconds the dome pulses outward with a burst of white sparks.

As vindicators charge toward the shrine and volleys of glowing spectral arrows fly in from both sides, the barrier erupts with electric sparks on contact and flings every threat backward through the air.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9 dummy
  2. /summon block_display ~ ~0.55 ~ {Tags:["c9_pedestal"],block_state:{Name:"minecraft:crying_obsidian"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.55f,-0.5f],scale:[1.0f,1.1f,1.0f]},brightness:{sky:15,block:15}}
  3. /summon villager ~ ~ ~ {Tags:["c9_bait"],NoAI:1b,Invulnerable:1b,Silent:1b,Age:-24000}
  4. /summon armor_stand ~ ~1.1 ~ {Tags:["c9_actor","c9_core"],NoGravity:1b,Invulnerable:1b,Glowing:1b,ShowArms:1b,equipment:{head:{id:"minecraft:amethyst_cluster",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:breeze_rod",count:1},offhand:{id:"minecraft:amethyst_shard",count:1}}}
  5. /summon end_crystal ~ ~3.5 ~ {Tags:["c9_crystal"],ShowBottom:0b,Invulnerable:1b}
  6. /summon marker ~ ~0.5 ~ {Tags:["c9_ring"],Rotation:[0f,-18f]}
  7. /summon marker ~ ~0.5 ~ {Tags:["c9_ring"],Rotation:[120f,-42f]}
  8. /summon marker ~ ~0.5 ~ {Tags:["c9_ring"],Rotation:[240f,-66f]}
  9. /summon marker ~12 ~ ~4 {Tags:["c9_mob_spawner"]}
  10. /summon marker ~-12 ~ ~-4 {Tags:["c9_mob_spawner"]}

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

  1. /scoreboard players add #t c9 1
  2. /execute if score #t c9 matches 30.. run scoreboard players set #t c9 0
  3. /execute as @e[tag=c9_ring] at @s run tp @s ~ ~ ~ ~41 ~
  4. /execute at @e[tag=c9_ring] run particle dust{color:[0.15,0.85,1.0],scale:1.4} ^ ^ ^5.0 0.06 0.06 0.06 0 2 force
  5. /execute if score #t c9 matches 0 run particle end_rod ~ ~1.8 ~ 1.5 1.5 1.5 0.18 45 force
  6. /execute positioned ~ ~1.5 ~ at @e[tag=c9_threat,distance=..5.2] run particle electric_spark ~ ~0.4 ~ 0.3 0.3 0.3 0.15 10 force
  7. /execute positioned ~3.0 ~1.5 ~ as @e[tag=c9_threat,distance=..3.9] positioned ~-3.0 ~ ~ if entity @s[distance=..5.2] run data merge entity @s {Motion:[0.78,0.36,0.08]}
  8. /execute positioned ~-3.0 ~1.5 ~ as @e[tag=c9_threat,distance=..3.9] positioned ~3.0 ~ ~ if entity @s[distance=..5.2] run data merge entity @s {Motion:[-0.78,0.36,-0.08]}
  9. /execute positioned ~ ~1.5 ~3.0 as @e[tag=c9_threat,distance=..3.9] positioned ~ ~ ~-3.0 if entity @s[distance=..5.2] run data merge entity @s {Motion:[-0.08,0.36,0.78]}
  10. /execute positioned ~ ~1.5 ~-3.0 as @e[tag=c9_threat,distance=..3.9] positioned ~ ~ ~3.0 if entity @s[distance=..5.2] run data merge entity @s {Motion:[0.08,0.36,-0.78]}
  11. /execute if score #t c9 matches 2 unless entity @e[tag=c9_mob,distance=..18] at @e[tag=c9_mob_spawner] run summon vindicator ~ ~ ~ {Tags:["c9_threat","c9_mob"]}
  12. /execute if score #t c9 matches 6..8 run summon spectral_arrow ~13 ~2.5 ~2 {Tags:["c9_threat","c9_arr"],Motion:[-1.3,0.22,-0.18]}
  13. /execute if score #t c9 matches 18..20 run summon spectral_arrow ~-13 ~2.5 ~-2 {Tags:["c9_threat","c9_arr"],Motion:[1.3,0.20,0.22]}
  14. /kill @e[tag=c9_arr,nbt={inGround:1b}]

How it works

Frames from the test run

Arcane Repulsion Forcefield - frame 1Arcane Repulsion Forcefield - frame 2Arcane Repulsion Forcefield - frame 3

Recorded on our own test server: 44 frames at about 7.2 fps. Our image check saw: A glowing blue-armored figure stands on crying obsidian beneath a floating end crystal inside a sphere of blue and white particles that deflects incoming spectral arrows with sparks while two vindicators stand 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. Clear a flat open area at least 35x35 blocks wide and stand at the exact center where you want the forcefield shrine.
  2. Run each of the 10 setup commands once in chat (or place them in a chain of impulse command blocks) while standing at the center.
  3. Place 14 repeating command blocks set to Always Active in a safe spot nearby, positioned relative to the center or wrapped with execute positioned at the shrine.
  4. Paste one loop command into each repeating command block so the timer, dome particles, deflection sectors, and threat spawners run every tick.
  5. Watch the dome pulse and repel arrows and vindicators automatically, or run the remove commands whenever you want to clear the scene.

Use it with real players

To carry this forcefield around as a player, skip the c9_pedestal, c9_bait, and c9_actor setup commands and instead run /tag @p add c9_actor. Wrap the loop commands with execute at @a[tag=c9_actor] (or check if items entity @s weapon.mainhand breeze_rod so the shield only activates while holding the staff) and add a loop command /execute at @a[tag=c9_actor] run tp @e[tag=c9_ring] ~ ~0.5 ~ so the dome moves with you.

Remove it again 8 commands

  1. /kill @e[tag=c9_actor]
  2. /kill @e[tag=c9_pedestal]
  3. /kill @e[tag=c9_bait]
  4. /kill @e[tag=c9_crystal]
  5. /kill @e[tag=c9_ring]
  6. /kill @e[tag=c9_mob_spawner]
  7. /kill @e[tag=c9_threat]
  8. /scoreboard objectives remove c9

FAQ

Can the dome block projectiles shot by real skeletons or players too?

Right now the deflection sector commands check for entities tagged c9_threat so nothing accidental gets flung around. If you want it to block every arrow and hostile mob automatically, change tag=c9_threat in loop commands 6 through 10 to type=#minecraft:arrows or add a command that tags nearby arrows and monsters with c9_threat.

Why is a villager summoned inside the central block?

Hostile mobs like vindicators ignore armor stands, so the hidden baby villager acts as an aggro target inside the glowing block_display pedestal. Because display entities have no hitbox, mobs still see the target clearly and charge straight into the barrier.

Commands used

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

Similar creations

Join 9Minecraft News & Guides