How to summon mobs on players Bedrock

Show

Summons an entity.

Syntax[]

summon <entity> [<pos>] [<nbt>] summon <entityType: EntityType> [spawnPos: x y z] [spawnEvent: string] [nameTag: string] summon <entityType: EntityType> <nameTag: string> [spawnPos: x y z]

Arguments[]

JE: <entity>: entity_summon
BE: entityType: EntityType: enum

Specifies the entity to be summoned. Must be an ID of a summonable entity type.

JE: <pos>: vec3
BE: spawnPos: x y z: CommandPositionFloat

Specifies the position to summon the entity. If not specified, defaults to the position of the command's execution. Must be a three-dimensional coordinates with floating-point number elements. Accepts tilde and caret notations.

JE: <nbt>: nbt_compound_tag

Specifies the data tag for the entity. Must be a compound NBT in SNBT format.

BE: spawnEvent: string: basic_string

Specifies the in-game event for the entity. Should be a spawn event (event name for entities in behavior pack). Must be either a single word (no spaces) or a quoted string.

BE: nameTag: string: basic_string

Specifies the name of the entity. Must be either a single word (no spaces) or a quoted string.

Result[]

CommandTriggerJava EditionBedrock Edition
anythe arguments are not specified correctly Unparseable Unparseable
specified position is unloaded Failed Failed
trying to summon hostiles in peaceful difficulty. Successful
attempting to summon an entity with a duplicate UUID. Failed N/A
designated position's <x> or <z> exceeds the range of [-30000000, 30000000), or <y> exceeds the range of [-20000000, 20000000) Successful
On successCreates the specified entity at the specified position.

Output[]

CommandEditionSituationSuccess Count/execute store success .../execute store result ...
anyJava EditionOn fail000
On success111
Bedrock EditionOn fail0N/AN/A
On success1N/AN/A

Examples[]

  • To summon lightning 10 blocks west of the current position of the executing player:
    • summon lightning_bolt ~-10 ~ ~
  • Java Edition:
    • To summon a charged creeper at the current position named "Powered Creeper":
      • summon creeper ~ ~ ~ {powered:1b,CustomName:'{"text":"Powered Creeper"}'}
      • NOTE: CustomName is a raw JSON text.
    • To summon a spider jockey:
      • summon spider ~ ~ ~ {Passengers:[{id:"minecraft:skeleton",HandItems:[{id:"minecraft:bow",Count:1b}]}]}
    • To summon a villager that trades 1 dirt block in exchange for 1 diamond:
      • summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:dirt,Count:1},sell:{id:diamond,Count:1},rewardExp:false}]}}
  • Bedrock Edition:
    • To summon a patrol captain pillager at the current position:
      • summon pillager ~ ~ ~ minecraft:promote_to_patrol_captain
    • To summon a dolphin with the name "Dolphin" in a golden color:
      • summon dolphin §6Dolphin ~ ~ ~
    • To summon a red dyable wolf:
      • summon wolf ~ ~ ~ minecraft:on_tame

History[]

How to summon mobs on players Bedrock

This section needs expansion. 

You can help by expanding it.

Commands 

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>]

Here are some of our other tools to automatically generate commands in Minecraft Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch):

For a fun little prank, I wanted to have a command block summon mobs directly (or closely) to a specific player. The only issue is, I’ve never used a command block before. I know that it needs the summon command, but other than that I know nearly nothing. Any and all help is appreciated!