I have this code:

/summon spider ~ ~1 ~ {Passengers:[{id:skeleton,HandItems:[{Count:1,id:bow},{Count:1,id:shield}],ArmorItems:[{Count:1,id:diamond_boots},{Count:1,id:diamond_leggings},{Count:1,id:diamond_chestplate},{Count:1,id:diamond_helmet}],CustomName:Killer,Visible:1,HandDropChances:[1.0f,1.0f],ArmorDropChances:[1.0f,1.0f,1.0f,1.0f],ActiveEffects:[{Id:1,Amplifier:1,Duration:999999},{Id:5,Amplifier:1,Duration:999999},{Id:8,Amplifier:1,Duration:999999},{Id:12,Amplifier:0,Duration:999999}]}]}

I want the spider riding skeleton to be summoned near a specific player or nearest player or the mobs to go to the player position. I try to use "execute" but it summon the spider only. I play MC version 1.11.2

Sorry if this question was already answered. I searched, but I didn't find anything.

  • It should be something like /execute @a[name=Willie] ~ ~1 ~ summon <your mob> – dly Apr 24 '17 at 6:46
  • I tried but it only summon a spider without a skeleton riding it – phucks0612 Apr 24 '17 at 15:13

The execute command should do the trick. Here is an example that spawns the mob you were trying to spawn at the location of every player.

/execute @a ~ ~ ~ summon spider ~ ~1 ~ {Passengers:[{id:skeleton,HandItems:[{Count:1,id:bow},{Count:1,id:shield}],ArmorItems:[{Count:1,id:diamond_boots},{Count:1,id:diamond_leggings},{Count:1,id:diamond_chestplate},{Count:1,id:diamond_helmet}],CustomName:Killer,Visible:1,HandDropChances:[1.0f,1.0f],ArmorDropChances:[1.0f,1.0f,1.0f,1.0f],ActiveEffects:[{Id:1,Amplifier:1,Duration:999999},{Id:5,Amplifier:1,Duration:999999},{Id:8,Amplifier:1,Duration:999999},{Id:12,Amplifier:0,Duration:999999}]}]}

Of course this can be changed to spawn any mob like this:

execute @a ~ ~ ~ summon <your mob> [x] [y] [z] [dataTag]

Also, if you wanted to summon it at the location of the nearest player you simply change the @a to @p

Or to do a specific player enter @a[name=<player name>]

  • It might also be good to use @e for this kind of thing, allowing you to also spawn mobs near other mobs – RS_Mind Jan 6 '18 at 22:39
  • 1.13 syntax: /execute at @a run summon <your mob> ... – pppery Jul 9 at 14:27

you could do /tp @e @p to tp all mobs to you not sure if that is what you are looking for

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.