Skip to content
This repository has been archived by the owner on May 13, 2021. It is now read-only.

Lore Triggers

Nick Ignoffo edited this page Sep 29, 2016 · 2 revisions

Lore Triggers

Lore Triggers are a way to trigger the obtaining of Lore for a player by meeting specific requirements.

In your Lore JSON, these are inserted in place of the { ... } listed here.


Achievement Trigger

This trigger is fired when a Player has obtained the listed achievement.

ID: loreexpansion:achievement

Format: Achievement Serializer

Example:

"trigger": {
    "triggerId": {
        "domain": "loreexpansion",
        "path": "achievement"
    },
    "target": { 
        "id": "achievement.openInventory" 
    }
}

Location Trigger

This trigger is fired when a Player has reached the listed coordinates.

ID: loreexpansion:location

Format: BlockPos Serializer

Example:

"trigger": {
    "triggerId": {
        "domain": "loreexpansion",
        "path": "location"
    },
    "target": { 
        "xPos": 100,
        "yPos": 5,
        "zPos": 100
    }
}
Clone this wiki locally