Spawn Events for Stray in Minecraft

This Minecraft tutorial explains the spawn events that you can use for a stray in Minecraft Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch) and Education Edition.

Background

In the latest version of Minecraft Bedrock Edition and Education Edition, the entity value for a stray is stray. The stray entity has a unique set of spawn events that can be used in Minecraft commands such as: /summon and /event. (The spawn event parameter is called spawnEvent in the Minecraft help for the /summon command and eventName in the Minecraft help for the /event command.)

stray

What is a Spawn Event?

Spawn events allow you to trigger certain in-game events for an entity in Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch) and Education Edition. Currently, you can only trigger one spawn event at a time when you use the /summon or /event commands.

List of Spawn Events

Here is a list of the spawn events that you can use for a stray in Minecraft Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch) and Minecraft Education Edition:

Minecraft ID Description Bedrock Edition
(Added in)
minecraft:melee_mode Stray is in melee mode 1.12.0
minecraft:ranged_mode Stray is in ranged mode 1.12.0
change_to_skeleton Stray is changing to a skeleton 1.12.0
minecraft:entity_spawned Stray has spawned 1.12.0

Spawn Event Example

To summon a stray that is in melee mode in Bedrock Edition (PE, Win10, Xbox One, PS4, Nintendo Switch) or Education Edition:

/summon stray ~ ~ ~ minecraft:melee_mode

Next, learn how to use the game commands in Minecraft.

Command Examples

Here are some game command examples for a stray in Minecraft:

Command Generators

If you need help, you can use these tools to automatically generate commands for you: