Entity - on Death Section (Section) — Lusk

Addon: Lusk · Category: Section · Since: 1.2

Syntax

[execute|run] on death of %~entity%

Description

Runs the code inside of it when the provided entity dies.

Local Variables that are: - defined BEFORE this section CAN be used inside of it. - defined AFTER this section CANNOT be used inside of it. - defined INSIDE this section CANNOT be used outside of it.

Examples

spawn skeleton at {_loc}:
    on death of entity:
        broadcast "%entity% has died!"

View source