From 1195b085e31c44bc8fec6817d64063de9022eb66 Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Thu, 15 Feb 2024 23:04:33 +0000 Subject: Partially add itemstack support --- src/data/taskDefinitions.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'src/data') 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 -- cgit v1.2.3-70-g09d2