Перейти к основному содержимому

Miscellaneous Objectives

A collection of specific interaction objectives.

Objective Library

  • Station Work — Anvil, grindstone, brewing, campfire, stonecutter, smithing, loom, cartography.
  • Container Use — Barrels, cauldrons, composters.
  • Lectern — Place, take, and turn pages.
  • Item Frame — Place, remove, and rotate.
  • Jukebox — Play and stop music discs.
  • Trade — Villager and piglin trading.
  • Combat — Block, shoot, reload, recall.
  • System — Advancements, experience, recipes, facts.

Standard Fields

Objective entries share the fields below, inherited from the objective system.

FieldTypeDescription
amountVar<Int>Number of times the action must be performed.
displayVar<String>Text shown to the player while the objective is active.
factRef<CachableFactEntry>Fact used to store progress.
onCompleteRef<TriggerableEntry>Entry triggered once the objective completes.
priorityOverrideOptional<Int>Overrides the display priority among active objectives.

Station Work

Entry IDDescription
anvil_repair_objectiveRepair items using an anvil.
grindstone_repair_objectiveRepair items using a grindstone.
brewing_stand_brew_objectiveBrew potions using a brewing stand.
campfire_cook_objectiveCook food on campfires.
campfire_extinguish_objectiveExtinguish campfires.
on_stonecutter_cut_objectiveCut items using a stonecutter.
smithing_table_upgrade_objectiveUpgrade items using a smithing table.
loom_banner_pattern_apply_objectiveApply banner patterns using a loom.
cartography_map_copy_objectiveCopy maps using a cartography table.
on_enchant_objectiveEnchant items at an enchanting table.

Container Use

Entry IDDescription
barrel_objectiveInteract with barrels.
barrel_open_objectiveOpen barrels.
barrel_close_objectiveClose barrels.
cauldron_objectiveInteract with cauldrons.
cauldron_fill_objectiveFill cauldrons.
cauldron_empty_objectiveEmpty cauldrons.
compost_objectiveAdd items to a composter.

Lectern

Entry IDDescription
lectern_objectiveInteract with lecterns.
lectern_place_book_objectivePlace books on lecterns.
lectern_take_book_objectiveTake books from lecterns.
lectern_page_turn_objectiveTurn pages on lecterns.

Item Frame

Entry IDDescription
item_frame_objectiveInteract with item frames.
item_frame_place_objectivePlace item frames.
item_frame_remove_objectiveRemove item frames.
item_frame_rotate_objectiveRotate items in item frames.

Jukebox

Entry IDDescription
jukebox_play_objectivePlay music discs in jukeboxes.
jukebox_stop_objectiveStop music in jukeboxes.

Trading

Entry IDDescription
villager_trade_objectiveTrade with villagers.
piglin_barter_objectiveBarter with piglins.

Combat

Entry IDDescription
shield_block_objectiveBlock damage with a shield.
crossbow_reload_objectiveReload crossbows.
projectile_hit_objectiveHit targets with projectiles.
target_hit_objectiveHit target blocks.
trident_throw_objectiveThrow tridents.
trident_recall_objectiveRecall tridents with loyalty.
arrow_recover_objectiveRecover fired arrows.
on_totem_used_objectiveUse a totem of undying.

System & Progression

Entry IDDescription
advancement_grant_objectiveComplete advancements.
experience_orb_pickup_objectivePick up experience orbs.
xp_gain_objectiveGain experience points.
level_reach_objectiveReach an experience level.
statistic_reach_objectiveReach a statistic threshold.
recipe_objectiveDiscover recipes.
recipe_unlock_objectiveUnlock recipes.
recipe_revoke_objectiveRevoke recipes.
player_input_objectivePerform specific player inputs.
cachable_fact_check_objectiveValidate against a numeric fact value.
readable_fact_check_objectiveValidate against a readable fact value.

Example

brewing_stand_brew_objective:
amount: 50
display: "Brew <amount> potions"
onComplete: "reward_master_brewer"