Maze Runner Minigame banner
Maze Runner Minigame icon

Maze Runner Minigame

Create a Hytale server-side mod that adds a Maze Runner minigame. Generate a shifting maze map, timed rounds, player spawn/reset, safe zone, maze hazards,...

00
hytaleServer2026.1mod

Maze Runner Minigame (server-side)

What it does

  • Adds a round-based Maze Runner experience for the Hytale server: players wait in a safe zone, then race through a shifting maze to reach a glowing exit before the timer expires.
  • Builds and refreshes a maze (default origin x=16, z=16, floor y=80) with a marked exit, regenerating each round and occasionally shifting random walls to keep paths fresh.
  • Spawns periodic hazards that briefly replace floor tiles; touching one sends the player back to the safe zone.
  • Runs automatic countdown, active timer, and cooldown cycles with chat-based scoreboard updates showing state, time left, exit coordinates, last winner, best escape time, and active hazards.
  • Handles player join/leave by placing them in the safe lobby, teleporting them into the maze at round start, tracking wins, and resetting them safely at round end or on hazard hits.

How to use

  • Drop the built jar into your server’s mods/plugins folder and start the server.
  • Join the server: you will be placed in the safe zone platform just north of the maze and added to the next countdown.
  • When the round begins you are teleported to the maze entrance; reach the exit block before the timer hits zero while avoiding hazards and reacting to shifting walls.
  • Stats and round status are broadcast via chat so everyone sees timers, exits, and recent winners.

Important details

  • Block palette is configurable via constants in MazeGame (wall/path/safe/hazard/exit blocks). Adjust names if your asset IDs differ.
  • Safe zone uses a small platform near the maze; maze footprint defaults to 21x21 cells and can be resized by changing the constants.
  • Hazard and maze shift cadence is controlled by HAZARD_INTERVAL_SECONDS and HAZARD_DURATION_SECONDS; round, countdown, and cooldown lengths are also configurable constants.

Known limitations / ideas

  • Scoreboard is chat-based only; integrate with HUD/UI if you want a permanent overlay.
  • Hazards currently teleport players to safety instead of applying damage; swap to a damage effect if desired.
  • Block IDs are assumptions; if you use a custom pack or different palette, update the block constants for your server.