Repository navigation
Objectives
An objective is one goal of a quest. A quest lists them under objectives.
| Type | Fields | Counts when the player... |
|---|---|---|
justquests:collect_item |
item, count
|
picks the item up (mining, harvest, mob drops) |
justquests:have_item |
item, count
|
has that many in the inventory at once, wherever they came from |
justquests:craft_item |
item, count
|
crafts it (crafting table, inventory, stonecutter, smithing table, loom or cartography table) |
justquests:smelt_item |
item, count
|
takes it out of a furnace |
justquests:consume_item |
item, count
|
eats or drinks it |
justquests:enchant_item |
item (optional), count, via (optional) |
enchants an item at an enchanting table; with via also at an anvil, see below
|
justquests:anvil_item |
item (optional), with (optional), count
|
takes a result out of an anvil: enchanting with a book, combining, repairing or renaming |
justquests:grindstone_item |
item (optional), disenchant (optional), count
|
takes a result out of a grindstone |
justquests:use_item |
item, count
|
uses it and it does something (throw, place, apply, mine...) |
justquests:mine_block |
block, count
|
breaks the block |
justquests:place_block |
block, count
|
places the block |
justquests:kill_mob |
entity, count
|
kills the mob |
justquests:tame_animal |
entity, count
|
tames the animal |
justquests:breed_animal |
entity, count
|
breeds the animal |
justquests:reach_level |
level |
reaches the XP level |
justquests:reach_location |
x, y, z, radius (default 4), dimension (optional) |
stands at the spot |
justquests:visit_dimension |
dimension |
enters the dimension (vanilla or modded). A modded dimension shows a name made from its id, "stellaris:moon" becomes "Moon"; a resource pack can set justquests.dimension.stellaris.moon
|
justquests:gain_advancement |
advancement |
earns the advancement |
justquests:submit_item |
item, count
|
hands the items in: they are taken from the inventory, see below (0.6.0) |
justquests:fish_item |
item (optional), count
|
reels the item in with a fishing rod (0.6.0) |
justquests:trade_villager |
item (optional), profession (optional), count
|
trades with a villager or a wandering trader, see below (0.6.0) |
justquests:brew_potion |
potion (optional), item (optional), count
|
takes a brewed potion out of a brewing stand (0.6.0) |
justquests:stat |
stat, count
|
raises a statistic of the game's statistics screen, see below (0.6.0) |
justquests:interact_entity |
entity, item (optional), count
|
right-clicks the mob, with item in the hand: milking, shearing, name tags... (0.6.0) |
justquests:use_block |
block, item (optional), count
|
right-clicks the block: a crafting table, a bell, a button... (0.6.0) |
justquests:find_structure |
structure, count (default 1) |
stands in the structure, see below (0.6.0) |
justquests:find_biome |
biome, count (default 1) |
stands in the biome (0.6.0) |
justquests:cut_item |
item (optional), tool (optional), count
|
cuts the item on a Farmer's Delight cutting board, see below (0.6.0) |
justquests:cook_item |
item (optional), via (optional), count
|
cooks a Farmer's Delight meal (0.6.0) |
justquests:rich_soil |
count (default 1) |
lets organic compost they placed turn into rich soil (Farmer's Delight, 0.6.0) |
The Create Addon adds 14 more types for Create's machines.
item can be an id or a tag:
{ "type": "justquests:collect_item", "item": "minecraft:oak_log", "count": 16 }
{ "type": "justquests:collect_item", "item": "#minecraft:logs", "count": 16 }block and entity take an id or a tag as well, such as #minecraft:logs or #minecraft:skeletons.
item can also be an object with filters. The same JSON works on every version.
"item": { "id": "minecraft:potion", "potion": "minecraft:swiftness" }
"item": { "id": "#minecraft:swords", "enchantments": { "minecraft:sharpness": 2 }, "name": "Excalibur" }-
enchantmentsare minimum levels. -
nameis a name given in an anvil. - Filters are most useful for
consume_item,enchant_itemandcraft_item, because they are checked on the item the event is about. -
use_itemcounts per item type and ignores filters.
Since 0.5.2, in the mod and the plugin.
anvil_item counts every result a player takes out of an anvil. Two optional fields narrow it down:
-
itemchecks what comes out. With filters it can ask for enchantments. -
withchecks what lay in the right slot, such asminecraft:enchanted_book.
This quest needs a book of Sharpness III on a diamond axe:
{ "type": "justquests:anvil_item", "count": 1, "with": "minecraft:enchanted_book",
"item": { "id": "minecraft:diamond_axe", "enchantments": { "minecraft:sharpness": 3 } } }The quest book reads "Combine Diamond Axe with Enchanted Book (Sharpness III)": the enchantments go behind the item that brings them.
enchant_item can set via:
via |
Counts |
|---|---|
table (default) |
enchanting at an enchanting table, as before 0.5.2 |
anvil |
an anvil result that has a new enchantment, or a higher level of one, than the item put in |
any |
both |
grindstone_item counts every result taken out of a grindstone. item checks what comes out, and "disenchant": true counts only when enchantments came off:
{ "type": "justquests:grindstone_item", "item": "minecraft:diamond_sword", "disenchant": true, "count": 1 }Since 0.6.0, in the mod and the plugin.
The items are only taken when the player hands them in:
- with the Hand in link in the quest book,
- with the [Hand in] link in
/quest progress, - or with
/quest submit [id](without an id: every quest that can take some).
Only as many as the goal still needs are taken, and partial deliveries add up. Filters work, so a quest can ask for a named or enchanted item.
{ "type": "justquests:submit_item", "item": "minecraft:wheat", "count": 16 }Since 0.6.0, in the mod and the plugin.
-
trade_villagertakes aprofessionsuch asminecraft:farmerorminecraft:librarian, orminecraft:wandering_traderfor the wandering trader. Withitem, the items bought count ("buy 12 bread"); without it, the trades ("trade 3 times with a farmer"). -
brew_potioncounts potions taken out of a brewing stand.potionis a potion id:minecraft:swiftnessalso counts the long and the strong swiftness.itemcan ask for splash or lingering potions. -
fish_itemcounts what the fishing rod reels in: fish, treasure and junk.
{ "type": "justquests:trade_villager", "profession": "minecraft:farmer", "item": "minecraft:bread", "count": 12 }
{ "type": "justquests:brew_potion", "potion": "minecraft:swiftness", "count": 3 }
{ "type": "justquests:fish_item", "item": "minecraft:cod", "count": 5 }Since 0.6.0, in the mod and the plugin.
Any id from the "General" list of the statistics screen works: minecraft:jump, minecraft:walk_one_cm, minecraft:play_time, minecraft:sleep_in_bed, minecraft:animals_bred and so on.
- Distances (
..._one_cm) count in blocks, and times in minutes. - Only what happens after the quest was taken counts.
{ "type": "justquests:stat", "stat": "minecraft:walk_one_cm", "count": 500 }
{ "type": "justquests:stat", "stat": "minecraft:play_time", "count": 60 }Since 0.6.0, in the mod and the plugin.
Both take an id or a tag and count the moment the player is there. With a count above 1, every structure or biome counts once:
{ "type": "justquests:find_structure", "structure": "#minecraft:village" }
{ "type": "justquests:find_biome", "biome": "#minecraft:is_overworld", "count": 5 }The second one needs five different overworld biomes.
Since 0.6.0, in the mod (not in the plugin).
These goals switch on by themselves when Farmer's Delight is installed (Farmer's Delight Refabricated on Fabric). Without it, quests that use them still load but never count.
{ "type": "justquests:cut_item", "item": "farmersdelight:cabbage", "tool": "farmersdelight:iron_knife", "count": 10 }
{ "type": "justquests:cook_item", "item": "farmersdelight:beef_stew", "via": "cooking_pot", "count": 4 }
{ "type": "justquests:rich_soil", "count": 3 }| Goal | What counts |
|---|---|
cut_item |
Items cut on a cutting board. item (what is cut) and tool (knife, axe, shears...) are optional. |
cook_item |
Meals. via can limit it to cooking_pot (taken out of the pot's window or served into a bowl), skillet (placed or in the hand), stove or feast (a serving taken from a feast). Whoever put the food on a stove or skillet gets the credit when it's done. |
rich_soil |
Organic compost the player placed turning into rich soil. |
What the cutting board and the cooking pot make also counts for craft_item.
collect_item only counts items picked up from the ground. Machines of other mods work without a player, so their items never count for it.
have_item looks into the inventory instead, so it doesn't matter whether the items came from a machine, a chest or a trade.
- The most the player has held at once counts, so moving items in and out doesn't add up.
- The progress doesn't go back when the items are used.
- Items already in the inventory count too.
If a quest should check that a Create machine really made the item, use the Create Addon.
Any objective can set label, as text or a per-language map. The quest book, the tracker and the chat show it instead of the generated goal line:
{ "type": "justquests:have_item", "item": "create:iron_sheet", "count": 16,
"label": { "en_us": "Press Iron Sheets", "de_de": "Eisenbleche pressen" } }Objectives with the same group are alternatives, and one of them is enough. Objectives without a group are all still needed, so you can mix them. This quest needs a backpack, crafted or found, and 10 leather:
"objectives": [
{ "type": "justquests:craft_item", "item": "travelersbackpack:standard", "count": 1, "group": "backpack" },
{ "type": "justquests:collect_item", "item": "#travelersbackpack:backpacks", "count": 1, "group": "backpack" },
{ "type": "justquests:collect_item", "item": "minecraft:leather", "count": 10 }
]The quest book, the tracker and /quest progress show "- or -" between the alternatives.
"mode": "any" on the quest is different: there, any one objective finishes the whole quest.
With "distinct": true, an objective with item, block or entity counts each kind only once. Since 0.6.0 this works for fish_item, trade_villager, brew_potion, interact_entity, use_block and the Farmer's Delight goals too. This one needs 10 different foods, and the goal reads "(all different)":
{ "type": "justquests:consume_item", "item": "#c:foods", "count": 10, "distinct": true }Modrinth · CurseForge · Discord · Issues
Getting started
Writing quests
Running a server
Addons
Help