Minecraft "Ant Farm" - Battle Royale Mod

kotlin game development minecraft

A custom Minecraft Fabric mod written in Kotlin that procedurally generates massive ant farm structures for battle royale PvP gameplay. Players spawn randomly throughout the maze-like tunnel network and hunt for loot chests while navigating hamster-like puzzles and chambers.

The source code can be found on GitHub.

Download: The AntFarm mod is available for download from the GitHub Actions build workflow.

This was my first ever Minecraft mod. I finally decided to give modding a try after playing Minecraft extensively with my children recently. More to come! :)

Note: This project showcases Kotlin's support in Minecraft modding through Fabric Language Kotlin.

Procedural Generation

  • Maze-like Tunnel Networks: Winding passages with hidden alcoves and dead ends
  • Multi-Level Chambers: Various room sizes and configurations for different gameplay scenarios
  • Vertical Shafts: Light tunnels and connecting passages between levels
  • Queen's Chamber: A hellish boss arena at the bottom with spikes, platforms, and treasure

Inside the Tunnels

Kotlin + Fabric

This mod is built using Kotlin with the Fabric modding framework, showcasing modern language features and clean code architecture. Kotlin's concise syntax and powerful features make it an excellent choice for Minecraft mod development.

Commands

/antfarm demo              # Creates a 30x20x5 demo ant farm
/antfarm create <W> <H> <D> # Custom size (e.g., /antfarm create 100 60 8)

Requirements

  • Minecraft 1.21.x
  • Fabric Loader 0.16+
  • Fabric API
  • Fabric Language Kotlin (enables Kotlin mod support)

Installation

  1. Install Fabric Loader for Minecraft 1.21.x
  2. Copy antfarm-mod-1.0.0.jar and fabric-language-kotlin.jar to your mods folder
  3. Launch Minecraft with the Fabric profile
  4. Use /antfarm demo or /antfarm create 150 80 10 to generate your first battle arena


Projects

Site

Games

Tags