Skip to content

Objective Types

Kārlis Čerņavskis edited this page Jul 10, 2024 · 1 revision

questlog:stat

Uses the player's stats to track progress.

Additional definition fields:

  • stat: The stat to track. See below for a list of valid stats.
  • trackSinceStart (optional, default: true):
    If true, the stat's value will be tracked since the creation of the quest.
    If false, the stat's value will be the player's total stat value.
List of stats
  • minecraft:leave_game
  • minecraft:play_time
  • minecraft:total_world_time
  • minecraft:time_since_death
  • minecraft:time_since_rest
  • minecraft:sneak_time
  • minecraft:walk_one_cm
  • minecraft:crouch_one_cm
  • minecraft:sprint_one_cm
  • minecraft:walk_on_water_one_cm
  • minecraft:fall_one_cm
  • minecraft:climb_one_cm
  • minecraft:fly_one_cm
  • minecraft:walk_under_water_one_cm
  • minecraft:minecart_one_cm
  • minecraft:boat_one_cm
  • minecraft:pig_one_cm
  • minecraft:horse_one_cm
  • minecraft:aviate_one_cm
  • minecraft:swim_one_cm
  • minecraft:strider_one_cm
  • minecraft:jump
  • minecraft:drop
  • minecraft:damage_dealt
  • minecraft:damage_dealt_absorbed
  • minecraft:damage_dealt_resisted
  • minecraft:damage_taken
  • minecraft:damage_blocked_by_shield
  • minecraft:damage_absorbed
  • minecraft:damage_resisted
  • minecraft:deaths
  • minecraft:mob_kills
  • minecraft:animals_bred
  • minecraft:player_kills
  • minecraft:fish_caught
  • minecraft:talked_to_villager
  • minecraft:traded_with_villager
  • minecraft:eat_cake_slice
  • minecraft:fill_cauldron
  • minecraft:use_cauldron
  • minecraft:clean_armor
  • minecraft:clean_banner
  • minecraft:clean_shulker_box
  • minecraft:interact_with_brewingstand
  • minecraft:interact_with_beacon
  • minecraft:inspect_dropper
  • minecraft:inspect_hopper
  • minecraft:inspect_dispenser
  • minecraft:play_noteblock
  • minecraft:tune_noteblock
  • minecraft:pot_flower
  • minecraft:trigger_trapped_chest
  • minecraft:open_enderchest
  • minecraft:enchant_item
  • minecraft:play_record
  • minecraft:interact_with_furnace
  • minecraft:interact_with_crafting_table
  • minecraft:open_chest
  • minecraft:sleep_in_bed
  • minecraft:open_shulker_box
  • minecraft:open_barrel
  • minecraft:interact_with_blast_furnace
  • minecraft:interact_with_smoker
  • minecraft:interact_with_lectern
  • minecraft:interact_with_campfire
  • minecraft:interact_with_cartography_table
  • minecraft:interact_with_loom
  • minecraft:interact_with_stonecutter
  • minecraft:bell_ring
  • minecraft:raid_trigger
  • minecraft:raid_win
  • minecraft:interact_with_anvil
  • minecraft:interact_with_grindstone
  • minecraft:target_hit
  • minecraft:interact_with_smithing_table

questlog:block_mine

Tracks the number of blocks mined by the player.

Additional definition fields:

  • block: The block to track. May be the block itself or a tag prefixed with #.

questlog:block_place

Tracks the number of blocks placed by the player.

Additional definition fields:

  • block: The block to track. May be the block itself or a tag prefixed with #.

questlog:entity_breed

Tracks the number of times the player breeds entities.

Additional definition fields:

  • entity: The entity to track.

questlog:entity_death

Tracks the number of times the player dies to a specific entity.

Additional definition fields:

  • entity: The entity to track.

questlog:entity_kill

Tracks the number of a specific type of entity the player kills.

Additional definition fields:

  • entity: The entity to track.

questlog:item_craft

Tracks the number of a specific item the player crafts.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.

questlog:item_drop

Tracks the number of a specific item the player drops.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.

questlog:item_equip

Tracks the number of times the player equips a specific item.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.
  • slot: The equipment slot to track.

questlog:item_obtain

Tracks the number of a specific item the player obtains.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.

questlog:item_pickup

Tracks the number of a specific item the player picks up.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.

questlog:item_use

Tracks the number of times the player uses a specific item.

Additional definition fields:

  • item: The item to track. May be the item itself or a tag prefixed with #.

questlog:visit_biome

Tracks the number of times the player visits a specific biome.

Additional definition fields:

  • biome: The biome to track.

questlog:visit_dimension

Tracks the number of times the player visits a specific dimension.

Additional definition fields:

  • dimension: The dimension to track.

questlog:visit_position

Tracks the number of times the player visits a specific position.

Additional definition fields:

  • bounds: The bounding box of the position to track. Contains the following fields (all optional, default to extrema):
    • bounds.minX: The minimum X coordinate of the bounding box.

    • bounds.minY: The minimum Y coordinate of the bounding box.

    • bounds.minZ: The minimum Z coordinate of the bounding box.

    • bounds.maxX: The maximum X coordinate of the bounding box.

    • bounds.maxY: The maximum Y coordinate of the bounding box.

    • bounds.maxZ: The maximum Z coordinate of the bounding box.

questlog:trample

Tracks the number of times the player tramples farmland.

questlog:enchant

Tracks the number of times the player enchants an item with a specific enchantment.

Additional definition fields:

  • enchantment (optional): The enchantment to track.
  • level (optional, defaults to 1): The level of the enchantment to track.
  • item (optional): The item to track.

If enchantment is not specified, the stat will track any enchantment. If item is not specified, the stat will track any item. If level is not specified, the stat will track any level. If nothing is specified, the quest type will track any enchantment event.

questlog:effect_added

Tracks the number of times the player gains a specific effect.

Additional definition fields:

  • effect: The effect to track.