Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 1.3 KB

minecraftTrigger_on_wake_with_owner.md

File metadata and controls

47 lines (35 loc) · 1.3 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:on_wake_with_owner
A reference document detailing the 'on_wake_with_owner' entity trigger
minecraft-bedrock-edition

Entity Documentation - minecraft:on_wake_with_owner

minecraft:on_wake_with_owner adds a trigger to call when this pet's owner awakes after sleeping with the pet.

Note

minecraft:on_wake_with_owner requires a player to be tagged as the entity's owner, via taming or console command.

Parameters

Name Default Value Type Description
event not set String The event to run when the conditions for this trigger are met.
filters not set Minecraft Filter The list of conditions for this trigger to execute.
target self String The target of the event.

Example

"minecraft:on_wake_with_owner":{
    "event": "minecraft:stretch",
    "filters": "is_daytime",
    "target": "self",
}

Vanilla entities examples

cat

"minecraft:on_wake_with_owner": {
    "event": "minecraft:pet_slept_with_owner",
    "target": "self"
}

Vanilla entities using minecraft:on_wake_with_owner