promotional bannermobile promotional banner
premium banner
KTD (Kweebec Tower Defense) is a Hytale server plugin that implements a tower defense game mode inspired by Bloons TD.

Description


What Works So Far

  • Trork Spawning — NPCs spawn via NPCPlugin.spawnNPC() using custom NPC role JSONs (appearance, health, speed)
  • Trork Movement — Trorks follow a predefined waypoint path, moved each tick via transform.teleportPosition()
  • Wave System — Waves of Trorks spawn on intervals using HytaleServer.SCHEDULED_EXECUTOR, configurable count/delay
  • Lives & Damage — Trorks reaching the end of the path subtract lives from the player
  • Game Start/Stop — /ktd start and /ktd stop commands control game state
  • Player Cleanup — Entities are cleaned up when a player leaves mid-game
  • Commands — /ktd start, /ktd stop, /ktd wave, /ktd status, /ktd tower
  • Entity Tracking — Java-side EntityTracker manages all spawned Trorks/Kweebecs via UUID maps (not ECS)
  • Entity Removal — Reflection-based EntityHelper accesses internal command buffers to despawn entities
  • Kweebecs that kill the trorks on the path