Dungeon Give Key
Added in v2.0.1.
Description
Gives the targeted player a copy of one of the dungeon's configured access keys, chosen by its position in the dungeon's AccessKeys.KeyItems list. The keys come from the dungeon the target is in, not the caster's. Needs an entity target, so give the line a targeter such as @trigger.
Anything that does not fit in the player's inventory is discarded rather than dropped, so keys are silently lost when the inventory is full.
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
index |
i |
Zero based position of the key in the dungeon's access key list. | 0 |
amount |
a |
Stack size to give. Clamped to a minimum of 1. | 1 |
Examples
Skills:
- dungeongivekey{index=0;amount=1} @trigger ~onDungeonComplete
Gives the finishing player one copy of the dungeon's first configured access key.
Aliases
-
dgivekey