This repository has been archived by the owner on May 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Lore Actions
Nick Ignoffo edited this page Oct 5, 2016
·
3 revisions
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.
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.
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
}
]
}
}