Denizen Script Language Explanations


Language Explanations explain components of Denizen in a more direct and technical way than The Beginner's Guide.


Showing 1 out of 76 language explanations...
NameClick Triggers
DescriptionClick Triggers are triggered when a player right clicks the NPC.

These are very basic with no extraneous complexity.


click trigger:
    script:
    - narrate "hi <player.name>"


They can optionally have an item matcher with multiple triggers, for the item in the player's hand. For example:

click trigger:
    1:
        trigger: my_item_script
        script:
        - narrate "Nice item script"
    2:
        trigger: stone
        script:
        - narrate "Nice vanilla item"
    3:
        script:
        - narrate "I don't recognize your held item"
GroupNPC Interact Scripts
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/scripts/triggers/core/ClickTrigger.java#L23