Skip to main content

Challenge Types

Backpacked comes with many built-in challenge types

List of Challenges

Breed Animals

ID: backpacked:breed_animal

Description: A challenge that requires the player to breed animals of a specified type together

KeyTypeRequiredDefaultDescription
animalObjectYesAn entity predicate object. See Minecraft Wiki for details
countIntegerNo1The amount of times to breed the animals together

Examples

Breed cows together five times to unlock the backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:bred_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:breed_animal",
"animal": {
"type": "minecraft:cow"
},
"count": 5
}
}
}

Breed two tabby variant cats together while they are affected with the jump_boost status effect to unlock the backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:bred_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:breed_animal",
"animal": {
"type": "minecraft:cat",
"components": { // 1.21.5+
"minecraft:cat/variant": "tabby"
},
"effects": {
"minecraft:jump_boost": {}
}
}
}
}
}

Craft Item

ID: backpacked:craft_item

Description: A challenge that requires the player to breed animals of a specified type together

KeyTypeRequiredDefaultDescription
crafted_itemObjectNoA crafted item predicate object. If not defined or an empty object, any item will count towards the crafting goal. See Crafted Item Predicate for documentation and more examples.
countIntegerNo1The amount of items to craft in total

Examples

Craft twenty pieces of bread to unlock the backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:crafted_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:craft_item",
"crafted_item": {
"items": [
"minecraft:bread"
]
},
"count": 20
}
}
}

Explore Biome

ID: backpacked:explore_biome

Description: A challenge that requires the player to travel to one or more specified biomes

KeyTypeRequiredDefaultDescription
biomeString/ArrayYesA biome id or a list of biome ids. See the Minecraft Wiki for available biomes. Also supports biomes from mods too!

Examples

Travel to every snowy biome to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:explored_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:explore_biome",
"biome": [
"minecraft:snowy_plains",
"minecraft:snowy_taiga",
"minecraft:ice_spikes",
"minecraft:snowy_slopes",
"minecraft:frozen_peaks",
"minecraft:jagged_peaks",
"minecraft:snowy_beach",
"minecraft:frozen_ocean",
"minecraft:deep_frozen_ocean",
"minecraft:frozen_river",
]
}
}
}

Travel to the Deep Dark to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:explored_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:explore_biome",
"biome": "minecraft:deep_dark" // String instead of array is allowed if only one biome
}
}
}

Feed Animal

ID: backpacked:feed_animal

Description: A challenge that requires the player to feed animals (with a matching predicate) an amount of times

KeyTypeRequiredDefaultDescription
animalObjectYesAn entity predicate object. See Minecraft Wiki for details. Entity must be an animal regardless of the predicate conditions, other mobs will not work.
countIntegerNo1The amount of times to feed the animals

Examples

Feed any farm animals twenty times to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:fed_x_of_x", // Ideal formatter for this type
"challenge": {
"type": "backpacked:feed_animal",
"animal": {
"type": [
"minecraft:cow",
"minecraft:chicken",
"minecraft:pig",
"minecraft:sheep"
]
},
"count": 20
}
}
}

Interact with Block

ID: backpacked:interact_with_block

Description: A challenge that requires the player to interact with a block

KeyTypeRequiredDefaultDescription
blockObjectNoAn optinal blockstate predicate to test the interacting block. See Minecraft Wiki for more details.
itemObjectNoAn optional item predicate to test the held item of the interacting player. See Minecraft Wiki for more details.
playerObjectNoAn optional entity predicate for the player. See Minecraft Wiki for more details.
countIntegerNo1The amount of times to perform the action

Examples

Fertilize crops one-hundred times using bonemeal to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:interact_with_block",
"block": {
"blocks": "#minecraft:crops"
},
"item": {
"items": [
"minecraft:bonemeal"
]
},
"count": 100
}
}
}

Cook a piece of food on a campfire to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:interact_with_block",
"block": {
"blocks": [
"minecraft:campfire"
],
"state": {
"lit": true
}
}
}
}
}

Notes: No item is checked as the interaction only triggers when a valid item can be placed on the campfire, however you could check for a specific item using the item predicate. Also check the lit state to ensure there is a fire, and it has not been put out with water.

Process bonemeal from a Composter five times to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:interact_with_block",
"block": {
"blocks": {
"minecraft:composter"
},
"state": {
"level": "8"
}
},
"count": 5
}
}
}

Notes: Level 8 is the final stage of the composter before it drops bonemeal. The next interaction will match the above predicate, drop bonemeal, and will count towards the challenge progress.

Press a stone button one-million times to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:interact_with_block",
"block": {
"blocks": [
"minecraft:stone_button"
],
"state": {
"powered": "false"
}
},
"count": 1000000
}
}
}

Interact with Entity

ID: backpacked:interact_with_entity

Description: A challenge that requires the player to interact with an entity

KeyTypeRequiredDefaultDescription
entityObjectNoAn optional entity predicate to test the interacted entity. See Minecraft Wiki for more details.
itemObjectNoAn optional item predicate to test the held item of the player interacting with the entity. See Minecraft Wiki for more details.
playerObjectNoAn optional entity predicate for the player. See Minecraft Wiki for more details.
countIntegerNo1The amount of times to perform the action

Examples

Start a trade with a Wandering Trader to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:interact_with_entity",
"entity": {
"type": "minecraft:wandering_trader"
}
}
}
}

Kill Mob

ID: backpacked:kill_mob

Description: A challenge that requires the player to kill one or more mobs

KeyTypeRequiredDefaultDescription
mobObjectNoAn optional entity predicate to test against the killed mob. See Minecraft Wiki for more details.
itemObjectNoAn optional item predicate to test the item used when the player killed the mob. See Minecraft Wiki for more details.
playerObjectNoAn optional entity predicate for the player. See Minecraft Wiki for more details.
countIntegerNo1The amount of times the player has to kill the mob

Examples

Battle and kill ten zombies, skeletons, creepers, or spiders using a diamond sword while underground in the overworld to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:kill_mob",
"mob": {
"type": [
"minecraft:zombie",
"minecraft:skeleton",
"minecraft:creeper",
"minecraft:spider"
]
},
"item": {
"items": [
"minecraft:diamond_sword"
]
},
"player": {
"location": {
"dimension": "minecraft:overworld",
"position": {
"y": {
"max": 63,
"min": -64
}
}
}
},
"count": 10
}
}
}

Merchant Trade

ID: backpacked:merchant_trade

Description: A challenge that requires the player to trade with a merchant type entity. Supports Villagers, Wandering Traders, and even modded NPCs like Goblin Traders.

KeyTypeRequiredDefaultDescription
merchantObjectNoAn optional entity predicate to test against the merchant. See Minecraft Wiki for more details.
itemObjectNoAn optional item predicate to test the item that was received by the player in the trade. See Minecraft Wiki for more details.
countIntegerNo1The amount of trades. Each transaction is consider one trade.

Examples

Get scammed by Wandering Trader (aka make any trade with them) to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:incomplete_complete",
"challenge": {
"type": "backpacked:merchant_trade",
"merchant": {
"type": "minecraft:wandering_trader"
}
}
}
}

Recieve iron ingots from a Goblin Trader five times to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:completed_x_of_x",
"challenge": {
"type": "backpacked:merchant_trade",
"merchant": {
"type": "goblintraders:goblin_trader"
},
"item": {
"items": [
"minecraft:iron_ingot"
]
},
"count": 5
}
}
}

Mine Block

ID: backpacked:mine_block

Description: A challenge that requires the player to trade with a merchant type entity. Supports Villagers, Wandering Traders, and even modded NPCs like Goblin Traders.

KeyTypeRequiredDefaultDescription
blockObjectNoAn optional block snapshot predicate to test to against the block that was just mined. See Block Snapshot Predicate for more details.
itemObjectNoAn optional item predicate to test the item that was used by the player to mine the block. See Minecraft Wiki for more details.
playerObjectNoAn optional entity predicate for the player. See Minecraft Wiki for more details.
countNumberNo1The amount of times the player has to mine the block

Examples

TODO

Travel Distance

ID: backpacked:travel_distance

Description: A challenge that requires the player to travel a specific

KeyTypeRequiredDefaultDescription
movementStringNoThe type of movement. If left undefined, any type of movement will count towards the total distance. Available list of movements are: walk, sprint, sneak, swim, walk_underwater, walk_on_water, climb, elytra_flying, fly, and fall.
total_distanceNumberYesThe total distance (in centimetres) the player must move while in the correct movement type. The number must be positive.
playerObjectNoAn optional entity predicate for the player. See Minecraft Wiki for more details. Important: Keep it simple since this check is run often.
note

The total_distance is calculated in centimetres. To travel one block is the equivalent of 100 centimetres.

Examples

Sprint a total of 100km (62.1 miles) to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:travelled_blocks",
"challenge": {
"type": "backpacked:travel_distance",
"movement": "sprint",
"total_distance": 10000000
}
}
}

Travel 100 blocks while riding on a Boat on land to unlock this backpack

data/<namespace>/backpacked/<your_backpack>.json
{
"unlock_challenge": {
"formatter": "backpacked:travelled_blocks",
"challenge": {
"type": "backpacked:travel_distance",
"movement": "vehicle",
"total_distance": 10000,
"player": {
"vehicle": {
"type": [
"minecraft:boat"
],
"flags": {
"is_on_ground": true
}
}
}
}
}
}