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.
Best Answer
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.
Of course this can be changed to spawn any mob like this:
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>]