aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrakenied <krakenied1@gmail.com>2026-01-19 22:39:44 +0100
committerKrakenied <krakenied1@gmail.com>2026-01-19 22:39:44 +0100
commitab3c5093a4b880c31f5221109d4df746f5908328 (patch)
tree9905adff45c4aaf3e6b854523be24ea027fe1574
parent574ffa99bd822c983c2ae6e805197cae7c4bd601 (diff)
Add Camel Husk mode to walking task typeimprovement/version-detection
-rw-r--r--bukkit/src/main/java/com/leonardobishop/quests/bukkit/tasktype/type/WalkingTaskType.java2
-rw-r--r--docs/task-types/walking-(task-type).md10
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