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

Lore Actions

Nick Ignoffo edited this page Oct 5, 2016 · 3 revisions

Lore Actions

Lore Actions are things that happen when a player has obtained lore. Their format is very similar to Lore Triggers.

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


Command Action

This action is used to run a set of commands.

ID: loreexpansion:command

Format: An array of Strings.

Example:

"action": {
    "actionId": {
        "domain": "loreexpansion",
        "path": "command"
    },
    "data": { 
        "commands": [ 
            "/time set night" 
        ]
    }
}
  • You can use %player% wherever a command takes a username and it will be replaced with the player's username.

Reward Item Action

This action is used to provide a set of items to the player.

ID: loreexpansion:reward_item

Format: ItemStack Serializer in an array.

Example:

"action": {
    "actionId": {
        "domain": "loreexpansion",
        "path": "reward_item"
    },
    "data": {
        "rewards": [
            {
                "id": {
                    "domain": "minecraft",
                    "path": "diamond"
                },
                "amount": 4
            }
        ]
    }
}
Clone this wiki locally