Web-Shooting Arachnids

Two giant glowing spiders perch on obsidian pillars, tracking targets below and launching homing cobweb projectiles that burst into sticky web traps.

Java EditionMobs & PetsMedium23 commandsTested on a real 26.2 & 26.3 server
Two glowing spiders on obsidian pillars shoot cobweb projectiles at wandering villagers below. Download the GIF Video & GIF © www.9minecraft.net

Custom MobsHorrorDarkWhiteBlackCyanBoss FightAdventure MapMap MakingBlock displaysSummoned mobsBlock building (fill/setblock/clone)SoundsRotation math21+ commands

Two oversized glowing spiders sit atop obsidian pillars in the middle of the arena, rotating to track wandering villagers below. Every couple of seconds, they fire glowing cobweb projectiles that streak through the air with white silk trails and burst into sticky cobweb traps on impact.

Everything runs in vanilla Minecraft using scaled spider attributes, block displays for projectiles, and directional vector movement.

1. Setup - type these once 9 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-5 ~ ~-1 ~-3 ~2 ~1 obsidian
  3. /fill ~3 ~ ~-1 ~5 ~2 ~1 obsidian
  4. /summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}
  5. /summon spider ~-4 ~3 ~ {Tags:["c9_all","c9_sp"],NoAI:1b,Glowing:1b,Silent:1b,PersistenceRequired:1b,CustomName:'{"text":"Brood Sniper","color":"dark_red"}',attributes:[{id:"minecraft:scale",base:1.8d}]}
  6. /summon spider ~4 ~3 ~ {Tags:["c9_all","c9_sp"],NoAI:1b,Glowing:1b,Silent:1b,PersistenceRequired:1b,CustomName:'{"text":"Silk Weaver","color":"red"}',attributes:[{id:"minecraft:scale",base:1.8d}]}
  7. /summon villager ~-3 ~ ~4 {Tags:["c9_all","c9_prey"],Glowing:1b,Invulnerable:1b,PersistenceRequired:1b}
  8. /summon villager ~3 ~ ~-4 {Tags:["c9_all","c9_prey"],Glowing:1b,Invulnerable:1b,PersistenceRequired:1b}
  9. /scoreboard players set @e[tag=c9_sp,limit=1] c9_t 18

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

  1. /scoreboard players add @e[tag=c9_all] c9_t 1
  2. /execute as @e[tag=c9_prey,distance=10..] at @s facing ~ ~ ~ run tp @s ^ ^ ^0.35 ~ ~
  3. /execute as @e[tag=c9_sp] at @s facing entity @e[tag=c9_prey,sort=nearest,limit=1] eyes run tp @s ~ ~ ~ ~ ~
  4. /execute as @e[tag=c9_sp,scores={c9_t=35..}] at @s anchored eyes run summon block_display ^ ^ ^1 {Tags:["c9_all","c9_web"],Glowing:1b,block_state:{Name:"minecraft:cobweb"},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. /execute as @e[tag=c9_sp,scores={c9_t=35..}] at @s run playsound minecraft:entity.spider.ambient master @a ~ ~ ~ 1 0.6
  6. /scoreboard players set @e[tag=c9_sp,scores={c9_t=35..}] c9_t 0
  7. /execute as @e[tag=c9_web] at @s facing entity @e[tag=c9_prey,sort=nearest,limit=1] eyes run tp @s ^ ^ ^0.65 ~ ~
  8. /execute at @e[tag=c9_web] run particle dust{color:[0.95,0.95,1.0],scale:1.4} ~ ~ ~ 0.12 0.12 0.12 0 5 force
  9. /execute as @e[tag=c9_web] at @s if entity @e[tag=c9_prey,distance=..1.5] run setblock ~ ~ ~ cobweb keep
  10. /execute as @e[tag=c9_web] at @s if entity @e[tag=c9_prey,distance=..1.5] run particle poof ~ ~0.5 ~ 0.4 0.4 0.4 0.05 20 force
  11. /execute as @e[tag=c9_web] at @s if entity @e[tag=c9_prey,distance=..1.5] run kill @s
  12. /kill @e[tag=c9_web,scores={c9_t=60..}]
  13. /execute as @e[tag=c9_ctrl,scores={c9_t=100..}] run fill ~-12 ~ ~-12 ~12 ~5 ~12 air replace cobweb
  14. /scoreboard players set @e[tag=c9_ctrl,scores={c9_t=100..}] c9_t 0

How it works

Frames from the test run

Web-Shooting Arachnids - frame 1Web-Shooting Arachnids - frame 2Web-Shooting Arachnids - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: Two glowing spiders sit on obsidian blocks and shoot cobweb projectiles with white particle trails at glowing villagers below, while a giant glowing cyan book floats above.

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 in the center of a flat open area and run the setup commands once in chat.
  2. Two obsidian pillars will appear with giant spiders on top and two villagers below.
  3. Place 14 repeating command blocks (or 1 repeating and 13 chain command blocks) set to Always Active.
  4. Paste the loop commands in order into the command blocks.
  5. Watch the spiders track the villagers and fire homing silk projectiles that trap them in cobwebs.

Use it with real players

To make the spiders attack real players instead of villagers, replace every instance of @e[tag=c9_prey...] in the loop commands with @a[gamemode=!spectator,...]. You can also remove NoAI:1b from the spider summon commands if you want the spiders to chase players around while shooting webs.

Remove it again 4 commands

  1. /fill ~-5 ~ ~-1 ~5 ~2 ~1 air replace obsidian
  2. /fill ~-12 ~ ~-12 ~12 ~5 ~12 air replace cobweb
  3. /kill @e[tag=c9_all]
  4. /scoreboard objectives remove c9_t

FAQ

Why don't the cobwebs build up forever and fill the arena?

The last two loop commands use a timer on the controller marker to clear placed cobwebs every 100 ticks (5 seconds), keeping the arena clean.

Can I change how fast the spiders shoot webs?

Yes. Change the <code>c9_t=35..</code> score check in loop commands 3, 4, and 5 to a lower number like <code>20..</code> for once per second, or a higher number for slower shots.

Commands used

/execute/fill/kill/particle/playsound/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides