HyperScript
Docs

← All of the Docs HyperMobs

Events HyperMobs

eventon mythic mob death "<name>":HyperMobs

Runs when a mob of that kind dies. player is who killed it, if a player did

on mythic mob death "SkeletonKing":
    drop mythic item "KingsCrown" at {_location}

What this event gives a script

In the blockWhat it is
{_mob}The creature
{_type}Its internal name
{_level}Its level
{_location}Where it is
eventon mythic mob spawn "<name>":HyperMobs

Runs when one spawns, however it was spawned. There is no player

on mythic mob spawn "SkeletonKing":
    broadcast "&cThe Skeleton King has risen!"
    set {boss} to {_mob}

What this event gives a script

In the blockWhat it is
{_mob}The creature
{_type}Its internal name
{_level}Its level
{_location}Where it is
Guide and examples
on mythic mob death "SkeletonKing":
    broadcast "&6%player.name% &ehas slain the Skeleton King!"
    add 500 to {%player%.coins}

on mythic mob death:
    log "A level %{_level}% %{_type}% died at %{_location}%"

on mythic mob spawn "SkeletonKing":
    broadcast "&cThe Skeleton King has risen!"
    set {boss} to {_mob}
SyntaxEffect
on mythic mob death "<name>":Runs when a mob of that kind dies. player is who killed it, if a player did
on mythic mob spawn "<name>":Runs when one spawns, however it was spawned. There is no player
  • Without a name, a block runs for every mythic mob.
  • Inside the blocks {_mob} is the creature, {_type} its internal name, {_level} its level and {_location} where it is.
  • A mob that dies of something other than a player has no player; test if player is set: before giving a reward.