Skip to content

Document changes to dimension.spawnEntity() in 2.0.0 #952

Description

@Xterionix

Article: https://github.com/MicrosoftDocs/minecraft-creator/blob/main/creator/Documents/ScriptingV2.0.0Overview.md

Describe the missing content
Prior to scripting 2.0.0, you were able to specify events in the identifier when using .spawnEntity() however that is no longer allowed. For the sake of anyone trying to update, it would be nice if this change was documented. This type of change can't be inferred just by looking at a diff of 1.19.0 and 2.0.0.

Invalid (Valid in 1.19.0)

dimension.spawnEntity('name:bob<event>', location)

Valid

dimension.spawnEntity('name:bob', location, {spawnEvent: 'event'})

Vanilla usage example
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions