Build an automated Arcane Sentinel Tower in vanilla Minecraft using commands! Watch a floating crystal spire fire homing energy bolts at approaching monsters.
Arcane RunesMysticMedievalDarkPurpleBlueMap MakingAdventure MapDecorationBlock displaysSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
The Arcane Sentinel Tower is a self-acting magical defense crystal built with vanilla command blocks. At the center of a glowing stone pedestal, a rotating amethyst crystal floats in mid-air while surrounded by rising enchanting runes and purple light.
Whenever monsters wander too close to the spire, the crystal locks onto the nearest intruder and fires a homing bolt of cyan and purple arcane energy. Each bolt curves straight toward its target and detonates in a burst of sonic particles and lightning magic.
/scoreboard objectives add c9_timer dummy/scoreboard players set #clock c9_timer 0/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 polished_blackstone_bricks/setblock ~ ~-1 ~ crying_obsidian/fill ~ ~ ~ ~ ~2 ~ deepslate_brick_wall/setblock ~-2 ~ ~-2 soul_lantern/setblock ~2 ~ ~-2 soul_lantern/setblock ~-2 ~ ~2 soul_lantern/setblock ~2 ~ ~2 soul_lantern/summon block_display ~ ~5.5 ~ {Tags:["c9_spire"],Glowing:1b,glow_color_override:11141375,block_state:{Name:"minecraft:amethyst_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0.353f,0.353f,0.146f,0.853f],scale:[1.3f,1.3f,1.3f],translation:[-0.65f,-0.65f,-0.65f]}}/scoreboard players add #clock c9_timer 1/execute if score #clock c9_timer matches 120.. run scoreboard players set #clock c9_timer 0/execute as @e[tag=c9_spire] at @s run tp @s ~ ~ ~ ~5 ~/execute at @e[tag=c9_spire] run particle dust{color:[0.6,0.1,1.0],scale:1.6} ~ ~ ~ 0.6 0.6 0.6 0 4 force/particle enchant ~ ~5.5 ~ 1.5 1.5 1.5 0.5 6 force/execute if score #clock c9_timer matches 1 unless entity @e[tag=c9_mob8] at @e[tag=c9_spire] run summon husk ~7 ~-5.5 ~5 {Tags:["c9_mob","c9_mob8"],Glowing:1b,CustomName:'{"text":"Arcane Target","color":"dark_purple"}'}/execute if score #clock c9_timer matches 40 unless entity @e[tag=c9_mob8] at @e[tag=c9_spire] run summon husk ~-7 ~-5.5 ~4 {Tags:["c9_mob","c9_mob8"],Glowing:1b,CustomName:'{"text":"Arcane Target","color":"dark_purple"}'}/execute if score #clock c9_timer matches 80 unless entity @e[tag=c9_mob8] at @e[tag=c9_spire] run summon husk ~2 ~-5.5 ~-8 {Tags:["c9_mob","c9_mob8"],Glowing:1b,CustomName:'{"text":"Arcane Target","color":"dark_purple"}'}/execute if score #clock c9_timer matches 20 if entity @e[tag=c9_mob,distance=..18] at @e[tag=c9_spire] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_bolt"],Duration:50,Radius:0f}/execute if score #clock c9_timer matches 60 if entity @e[tag=c9_mob,distance=..18] at @e[tag=c9_spire] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_bolt"],Duration:50,Radius:0f}/execute if score #clock c9_timer matches 100 if entity @e[tag=c9_mob,distance=..18] at @e[tag=c9_spire] run summon area_effect_cloud ~ ~ ~ {Tags:["c9_bolt"],Duration:50,Radius:0f}/execute as @e[tag=c9_bolt] at @s facing entity @e[tag=c9_mob,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.85/execute at @e[tag=c9_bolt] run particle dust{color:[0.2,0.9,1.0],scale:1.5} ~ ~ ~ 0.1 0.1 0.1 0 5 force/execute at @e[tag=c9_bolt] as @e[tag=c9_mob,distance=..1.6] at @s run particle sonic_boom ~ ~1 ~ 0 0 0 0 1 forcesetup #10 Summons a glowing amethyst block display entity tilted on its corner using a quaternion rotation so it looks like a floating crystal.loop #3 Rotates the floating crystal spire by 5 degrees every tick around its center axis.loop #9 Checks if a target monster is within 18 blocks and spawns a short-lived area effect cloud tagged <code>c9_bolt</code> to act as the homing projectile.loop #12 Steers every active energy bolt directly toward the eyes of the nearest monster and advances it 0.85 blocks per tick using local caret coordinates.loop #14 Triggers a sonic boom burst particle whenever an arcane bolt gets within 1.6 blocks of a monster.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A glowing, rotating amethyst block floats above a dark stone pedestal with soul lanterns, emitting purple particles and a trail of blue magic particles toward the lower left.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make this tower protect your base against all natural hostile monsters instead of only the demo husks, replace tag=c9_mob in the loop commands with type=#minecraft:raiders or type=!player,type=!item,type=!block_display,type=!area_effect_cloud, and remove loop commands 6, 7, and 8 so it stops spawning test husks.
/kill @e[tag=c9_spire]/kill @e[tag=c9_bolt]/kill @e[tag=c9_mob]/fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 grass_block/fill ~-2 ~ ~-2 ~2 ~3 ~2 air/scoreboard objectives remove c9_timerAn area_effect_cloud with a Duration tag automatically despawns after its timer runs out (50 ticks here), preventing leftover projectile entities from building up if a target dies or moves out of range.
Edit the RGB numbers inside dust{color:[0.2,0.9,1.0],scale:1.5} in loop command 13. The three numbers represent red, green, and blue from 0.0 to 1.0.
▶Runic Braille Monolith TranslationArcane RunesMedium22 cmds
▶Enchanted Floating LibraryArcane RunesMedium26 cmds
▶Overcharged Arcane AltarArcane RunesMedium26 cmds
▶Arcane Repulsion ForcefieldArcane RunesMedium24 cmds
▶Autonomous Arcane Defense TurretArcane RunesMedium19 cmds
▶Swarming Arcane Homing OrbsArcane RunesEasy21 cmds