|
2 | 2 |
|
3 | 3 | Backpacked comes with many built-in challenge types |
4 | 4 |
|
5 | | -## Breed Animals |
| 5 | +## List of Challenges |
| 6 | + |
| 7 | +### Breed Animals |
6 | 8 |
|
7 | 9 | **ID:** `backpacked:breed_animal` |
8 | 10 |
|
@@ -59,7 +61,7 @@ Backpacked comes with many built-in challenge types |
59 | 61 |
|
60 | 62 |
|
61 | 63 |
|
62 | | -## Craft Item |
| 64 | +### Craft Item |
63 | 65 |
|
64 | 66 | **ID:** `backpacked:craft_item` |
65 | 67 |
|
@@ -93,7 +95,7 @@ Backpacked comes with many built-in challenge types |
93 | 95 | </div> |
94 | 96 |
|
95 | 97 |
|
96 | | -## Explore Biome |
| 98 | +### Explore Biome |
97 | 99 |
|
98 | 100 | **ID:** `backpacked:explore_biome` |
99 | 101 |
|
@@ -147,7 +149,7 @@ Backpacked comes with many built-in challenge types |
147 | 149 | ``` |
148 | 150 | </div> |
149 | 151 |
|
150 | | -## Feed Animal |
| 152 | +### Feed Animal |
151 | 153 |
|
152 | 154 | **ID:** `backpacked:feed_animal` |
153 | 155 |
|
@@ -183,7 +185,7 @@ Backpacked comes with many built-in challenge types |
183 | 185 | ``` |
184 | 186 | </div> |
185 | 187 |
|
186 | | -## Interact with Block |
| 188 | +### Interact with Block |
187 | 189 |
|
188 | 190 | **ID:** `backpacked:interact_with_block` |
189 | 191 |
|
@@ -242,7 +244,7 @@ Backpacked comes with many built-in challenge types |
242 | 244 | } |
243 | 245 | } |
244 | 246 | ``` |
245 | | -**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. |
| 247 | +**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. |
246 | 248 |
|
247 | 249 | </div> |
248 | 250 |
|
@@ -293,4 +295,177 @@ Backpacked comes with many built-in challenge types |
293 | 295 | } |
294 | 296 | } |
295 | 297 | ``` |
296 | | -</div> |
| 298 | +</div> |
| 299 | + |
| 300 | +### Interact with Entity |
| 301 | + |
| 302 | +**ID:** `backpacked:interact_with_entity` |
| 303 | + |
| 304 | +**Description:** A challenge that requires the player to interact with an entity |
| 305 | + |
| 306 | +| Key | Type | Required | Default | Description | |
| 307 | +| -------- | ------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 308 | +| `entity` | Object | No | — | An optional entity predicate to test the interacted entity. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 309 | +| `item` | Object | No | — | An optional item predicate to test the held item of the player interacting with the entity. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/item) for more details. | |
| 310 | +| `player` | Object | No | — | An optional entity predicate for the player. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 311 | +| `count` | Integer | No | 1 | The amount of times to perform the action | |
| 312 | + |
| 313 | +#### Examples |
| 314 | +<div class="code-block"> |
| 315 | +**Start a trade with a Wandering Trader to unlock this backpack** |
| 316 | + |
| 317 | +```json title="data/<namespace>/backpacked/<your_backpack>.json" |
| 318 | +{ |
| 319 | + "unlock_challenge": { |
| 320 | + "formatter": "backpacked:completed_x_of_x", |
| 321 | + "challenge": { |
| 322 | + "type": "backpacked:interact_with_entity", |
| 323 | + "entity": { |
| 324 | + "type": "minecraft:wandering_trader" |
| 325 | + } |
| 326 | + } |
| 327 | + } |
| 328 | +} |
| 329 | +``` |
| 330 | +</div> |
| 331 | + |
| 332 | +### Kill Mob |
| 333 | + |
| 334 | +**ID:** `backpacked:kill_mob` |
| 335 | + |
| 336 | +**Description:** A challenge that requires the player to kill one or more mobs |
| 337 | + |
| 338 | +| Key | Type | Required | Default | Description | |
| 339 | +| -------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 340 | +| `mob` | Object | No | — | An optional entity predicate to test against the killed mob. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 341 | +| `item` | Object | No | — | An optional item predicate to test the item used when the player killed the `mob`. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/item) for more details. | |
| 342 | +| `player` | Object | No | — | An optional entity predicate for the player. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 343 | +| `count` | Integer | No | 1 | The amount of times the player has to kill the `mob` | |
| 344 | + |
| 345 | +#### Examples |
| 346 | +<div class="code-block"> |
| 347 | +**Battle and kill ten zombies, skeletons, creepers, or spiders using a diamond sword while underground in the overworld to unlock this backpack** |
| 348 | + |
| 349 | +```json title="data/<namespace>/backpacked/<your_backpack>.json" |
| 350 | +{ |
| 351 | + "unlock_challenge": { |
| 352 | + "formatter": "backpacked:completed_x_of_x", |
| 353 | + "challenge": { |
| 354 | + "type": "backpacked:kill_mob", |
| 355 | + "mob": { |
| 356 | + "type": [ |
| 357 | + "minecraft:zombie", |
| 358 | + "minecraft:skeleton", |
| 359 | + "minecraft:creeper", |
| 360 | + "minecraft:spider" |
| 361 | + ] |
| 362 | + }, |
| 363 | + "item": { |
| 364 | + "items": [ |
| 365 | + "minecraft:diamond_sword" |
| 366 | + ] |
| 367 | + }, |
| 368 | + "player": { |
| 369 | + "location": { |
| 370 | + "dimension": "minecraft:overworld", |
| 371 | + "position": { |
| 372 | + "y": { |
| 373 | + "max": 63, |
| 374 | + "min": -64 |
| 375 | + } |
| 376 | + } |
| 377 | + } |
| 378 | + }, |
| 379 | + "count": 10 |
| 380 | + } |
| 381 | + } |
| 382 | +} |
| 383 | +``` |
| 384 | +</div> |
| 385 | + |
| 386 | +### Merchant Trade |
| 387 | + |
| 388 | +**ID:** `backpacked:merchant_trade` |
| 389 | + |
| 390 | +**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. |
| 391 | + |
| 392 | +| Key | Type | Required | Default | Description | |
| 393 | +| ---------- | ------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 394 | +| `merchant` | Object | No | — | An optional entity predicate to test against the merchant. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 395 | +| `item` | Object | No | — | An optional item predicate to test the item that was received by the player in the trade. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/item) for more details. | |
| 396 | +| `count` | Integer | No | 1 | The amount of trades. Each transaction is consider one trade. | |
| 397 | + |
| 398 | +#### Examples |
| 399 | +<div class="code-block"> |
| 400 | +**Get scammed by Wandering Trader (aka make any trade with them) to unlock this backpack** |
| 401 | + |
| 402 | +```json title="data/<namespace>/backpacked/<your_backpack>.json" |
| 403 | +{ |
| 404 | + "unlock_challenge": { |
| 405 | + "formatter": "backpacked:incomplete_complete", |
| 406 | + "challenge": { |
| 407 | + "type": "backpacked:merchant_trade", |
| 408 | + "merchant": { |
| 409 | + "type": "minecraft:wandering_trader" |
| 410 | + } |
| 411 | + } |
| 412 | + } |
| 413 | +} |
| 414 | +``` |
| 415 | +</div> |
| 416 | + |
| 417 | +<div class="code-block"> |
| 418 | +**Recieve iron ingots from a Goblin Trader five times to unlock this backpack** |
| 419 | + |
| 420 | +```json title="data/<namespace>/backpacked/<your_backpack>.json" |
| 421 | +{ |
| 422 | + "unlock_challenge": { |
| 423 | + "formatter": "backpacked:completed_x_of_x", |
| 424 | + "challenge": { |
| 425 | + "type": "backpacked:merchant_trade", |
| 426 | + "merchant": { |
| 427 | + "type": "goblintraders:goblin_trader" |
| 428 | + }, |
| 429 | + "item": { |
| 430 | + "items": [ |
| 431 | + "minecraft:iron_ingot" |
| 432 | + ] |
| 433 | + }, |
| 434 | + "count": 5 |
| 435 | + } |
| 436 | + } |
| 437 | +} |
| 438 | +``` |
| 439 | +</div> |
| 440 | + |
| 441 | +### Mine Block |
| 442 | + |
| 443 | +**ID:** `backpacked:mine_block` |
| 444 | + |
| 445 | +**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. |
| 446 | + |
| 447 | +| Key | Type | Required | Default | Description | |
| 448 | +| -------- | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 449 | +| `block` | Object | No | — | An optional block snapshot predicate to test to against the block that was just mined. See Block Snapshot Predicate for more details. | |
| 450 | +| `item` | Object | No | — | An optional item predicate to test the item that was used by the player to mine the block. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/item) for more details. | |
| 451 | +| `player` | Object | No | — | An optional entity predicate for the player. See [Minecraft Wiki](https://minecraft.wiki/w/Advancement/Conditions/entity) for more details. | |
| 452 | +| `count` | Number | No | 1 | The amount of times the `player` has to mine the `block` | |
| 453 | + |
| 454 | +#### Examples |
| 455 | + |
| 456 | +TODO |
| 457 | + |
| 458 | +### Travel Distance |
| 459 | + |
| 460 | +**ID:** `backpacked:travel_distance` |
| 461 | + |
| 462 | +**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. |
| 463 | + |
| 464 | +| Key | Type | Required | Default | Description | |
| 465 | +| ---------------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | |
| 466 | +| `movement` | String | No | — | The type of movement. See list below of valid movement types. If left undefined, any type of movement will count towards the `total distance`. | |
| 467 | +| `total_distance` | Number | Yes | — | The total distance the player must move while in the correct `movement` type. The number must be positive. | |
| 468 | + |
| 469 | +#### Examples |
| 470 | + |
| 471 | +TODO |
0 commit comments