Entity - on Jump Section (Section) — Lusk

Addon: Lusk · Category: Section · Since: 1.2

Syntax

[execute|run] on %~entity% jump[ing]

Description

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

Only works for horses on Spigot, Paper is required for players and entities.

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 villager at {_loc}:
    on jump of entity:
        broadcast "%entity% has jumped!"

View source