mojira.dev
MCPE-232202

spawnPos in "/summon ... facing ..." is optional but actually not

/summon’s syntax:

/summon <entityType: EntityType> <nameTag: string> [spawnPos: x y z]
/summon <entityType: EntityType> [spawnPos: x y z] [yRot: float] [xRot: float] [spawnEvent: string] [nametag: string]
/summon <entityType: EntityType> [spawnPos: x y z] facing <lookAtEntity: target> [spawnEvent: string] [nametag: string]
/summon <entityType: EntityType> [spawnPos: x y z] facing <position: x y z> [spawnEvent: string] [nametag: string]

Step to Reproduce

Enter “/summon allay facing ~10 ~ ~“ etc.

Observed Results

It can’t summon an entity with a facing, that’s illogical by Syntax 3 and 4.

Although [spawnPos: x y z] is an optional argument, the game always takes “facing” for entity’s name tag, just summon an entity called “facing“.

Expected Results

“spawnPos: x y z” argument is not optional here. if optional, it makes confused.

Attachments

Comments 7

Your report is not clear. It looks like your expected result should be that the position is optional. However, to avoid confusion, please re-write your expected result to describe the actual event or action that you expect to occur in-game when using the example command, rather than the generics "is optional"/"is not optional".

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

This is a misunderstanding about the meaning of “optional argument”

It does not mean “you can skip this argument and write the next one instead”

It means “if you stop writing the command before this argument, the command is valid”

Therefore spawnPos is correctly marked as optional, because /summon allay is a complete command.

I reported this because its behavior doesn’t match Java Edition.

In Java Edition, that’s different meanings.

Java does not have facing in summon, and also does not have skippable command arguments, so I don’t know what you mean.

In JE’s /spreadplayers command, under <maxHeight> is optional but in middle

However, middle-optional argument makes confused.

teaSummer

(Unassigned)

Unconfirmed

Multiple

1.21.130.28 Preview, 1.21.124 Hotfix

Retrieved