minecraft:on_wake_with_owner for you with a switch.Get GodCraftOverview
minecraft:on_wake_with_owner is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Runs an event when the owner of this pet wakes up after sleeping with it nearby, like a cat bringing a morning gift.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
event | string | "" | Name of the event to run. |
target | FilterSubject | "self" | Who the event runs on, for example self or other. |
filters | Filter Group | {"AND":null,"NOT":null,"OR":null,"all":null,"all_of":null,"any":null,"any_of":null,"none_of":null} | Conditions that must be true for the event to run. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:on_wake_with_owner": {
"event": "",
"target": "self",
"filters": {
"AND": null,
"NOT": null,
"OR": null,
"all": null,
"all_of": null,
"any": null,
"any_of": null,
"none_of": null
}
}
}