From ab3c5093a4b880c31f5221109d4df746f5908328 Mon Sep 17 00:00:00 2001 From: Krakenied Date: Mon, 19 Jan 2026 22:39:44 +0100 Subject: Add Camel Husk mode to walking task type --- .../quests/bukkit/tasktype/type/WalkingTaskType.java | 2 ++ docs/task-types/walking-(task-type).md | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/WalkingTaskType.java b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/WalkingTaskType.java index e101783a..15b640bf 100644 --- a/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/WalkingTaskType.java +++ b/bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/WalkingTaskType.java @@ -121,6 +121,7 @@ public final class WalkingTaskType extends BukkitTaskType { // Vehicles case BOAT -> player.getVehicle() instanceof Boat; case CAMEL -> this.plugin.getVersionSpecificHandler().isPlayerOnCamel(player); + case CAMEL_HUSK -> this.plugin.getVersionSpecificHandler().isPlayerOnCamelHusk(player); case DONKEY -> this.plugin.getVersionSpecificHandler().isPlayerOnDonkey(player); case HAPPY_GHAST -> this.plugin.getVersionSpecificHandler().isPlayerOnHappyGhast(player); case HORSE -> this.plugin.getVersionSpecificHandler().isPlayerOnHorse(player); @@ -194,6 +195,7 @@ public final class WalkingTaskType extends BukkitTaskType { // Vehicles BOAT, CAMEL, + CAMEL_HUSK, DONKEY, HAPPY_GHAST, HORSE, diff --git a/docs/task-types/walking-(task-type).md b/docs/task-types/walking-(task-type).md index c5119066..069993fa 100644 --- a/docs/task-types/walking-(task-type).md +++ b/docs/task-types/walking-(task-type).md @@ -13,11 +13,11 @@ Walk a set distance. ## Options -| Key | Description | Type | Required | Default | Notes | -|------------|-------------------------------------------------|---------------------|----------|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `distance` | The distance in metres to walk. | Integer | Yes | \- | 1 metre is equivalent to 1 block. | -| `mode` | The specific mode to travel | String | No | \- | One of: `boat`, `camel`, `donkey`, `happy_ghast`, `horse`, `llama`, `minecart`, `mule`, `nautilus` `pig`, `skeleton_horse`, `strider`, `zombie_horse`, `sneaking`, `walking`, `running`, `swimming`, `flying`, `elytra`. Alternatively one of groups: `ground`, `manual_no_flight`, `manual_no_swim`, `manual` or `vehicle`. Not specifying a mode will allow any of these modes to count. | -| `worlds` | Worlds which should count towards the progress. | List of world names | No | \- | \- | +| Key | Description | Type | Required | Default | Notes | +|------------|-------------------------------------------------|---------------------|----------|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `distance` | The distance in metres to walk. | Integer | Yes | \- | 1 metre is equivalent to 1 block. | +| `mode` | The specific mode to travel | String | No | \- | One of: `boat`, `camel`, `camel_husk`, `donkey`, `happy_ghast`, `horse`, `llama`, `minecart`, `mule`, `nautilus` `pig`, `skeleton_horse`, `strider`, `zombie_horse`, `sneaking`, `walking`, `running`, `swimming`, `flying`, `elytra`. Alternatively one of groups: `ground`, `manual_no_flight`, `manual_no_swim`, `manual` or `vehicle`. Not specifying a mode will allow any of these modes to count. | +| `worlds` | Worlds which should count towards the progress. | List of world names | No | \- | \- | ## Examples -- cgit v1.2.3-70-g09d2