diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-02-15 23:04:33 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-02-15 23:04:33 +0000 |
| commit | 1195b085e31c44bc8fec6817d64063de9022eb66 (patch) | |
| tree | 6f30cbfbf30acc19347890080cbc907ad094106b /src/data | |
| parent | 1869b5c5f9565b5e9e20697c4401a2f9ba9f2c3a (diff) | |
Partially add itemstack support
Diffstat (limited to 'src/data')
| -rw-r--r-- | src/data/taskDefinitions.json | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/data/taskDefinitions.json b/src/data/taskDefinitions.json index 8aba912..443493c 100644 --- a/src/data/taskDefinitions.json +++ b/src/data/taskDefinitions.json @@ -89,6 +89,49 @@ "description": "The worlds in which the blocks should be broken." } } + }, + "inventory": { + "description": "Obtain a set amount of items.", + "configuration": { + "amount": { + "type": "number", + "description": "The amount of items to obtain.", + "default": 1, + "required": true + }, + "item": { + "type": "itemstack", + "description": "The specific item to obtain.", + "required": true + }, + "data": { + "type": "number", + "description": "The data value of the item to obtain.", + "default": 0, + "note": "Not required for Minecraft versions 1.13 and above." + }, + "remove-items-when-complete": { + "type": "boolean", + "description": "Whether the items should be removed from the player's inventory when the quest is complete.", + "default": false, + "note": "If allow-partial-completion is true, this will be set to true as well." + }, + "allow-partial-completion": { + "type": "boolean", + "description": "Whether the quest can be completed with less than the required amount of items.", + "default": false, + "note": "Setting to true will imply remove-items-when-complete is true as well. If a player obtains any matching item, it will be immediately taken away from them and added towards the quest progress." + }, + "exact-match": { + "type": "boolean", + "description": "Whether the item must match this item exactly, including lore and enchantments.", + "default": false + }, + "worlds": { + "type": "string-list", + "description": "The worlds in which the items should be obtained." + } + } } } }
\ No newline at end of file |
