Mindustry

AnukenGPL-3.0活跃维护

一款用 Java 写的自动化塔防 RTS 游戏,玩家要搭建传送带和工厂产线来供弹防御,支持安卓和桌面多平台。

The automation tower defense RTS

v160.7发布于 2026-10-08 00:20 UTC29,749star +46 / 7 天3,879fork同步于 2026-11-10 17:21 UTC

怎么上手

由 README 提炼,执行前请确认
gradlew desktop:run(Windows)或 ./gradlew desktop:run(Linux/Mac)
硬件要求按 README 说明

README 未说明硬件要求,仅要求 JDK 17;Android 构建需安装 Android SDK 并设置 ANDROID_HOME。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

用 Java 写的自动化塔防 RTS 游戏,可自行编译桌面、服务端和安卓版本

一款用 Java 写的自动化塔防 RTS 游戏,玩家要搭建传送带和工厂产线来供弹防御,支持安卓和桌面多平台。

核心能力

  • 用 Java 编写,支持桌面、服务端、Android 多平台构建
  • Gradle 一键运行与打包,产出 Mindustry.jar 或服务端 jar
  • 每次提交自动生成前沿构建,也可本地自行编译
  • mindustry.gen 包在构建时由注解与组件代码自动生成
  • 提供 Discord、Wiki、Javadoc 与 Trello 规划等资源

容易踩的坑

必须使用 JDK 17,其他 JDK 版本无法工作;Mac/Linux 首次运行若报 Permission denied 需先执行 chmod +x ./gradlew;mindustry.gen 包为构建时生成,仓库中不存在且不应手改;Gradle 首次下载依赖可能耗时数分钟。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v160.7
  1. v160.7v8 Build 160.7最新正式版2026-10-08 · 2026-10-08 00:20 UTC
    • Fixed command/stance changes not working on servers
    • Fixed shield break effect spam appearing when a shielded unit is hit by Parallax turrets
  2. v160.6v8 Build 160.62026-10-06 · 2026-10-06 21:07 UTC
    查看更新说明
    • Updated app icon
    • Fixed units stuttering when pathfinding towards a moving target
    • Fixed client disconnect when commanding large numbers of units
    • Fixed naval units getting stuck on doors in water
    • Fixed a rare server physics crash
    • Fixed empty fields in logic shifting parameters
    • Fixed directional unloader deserialization issues with mods
    • Fixed console remaining open if disabled while open
    • Fixed status effects in logic not being transferred to new status system
    • Fixed sandbox team core switch softlock
    • Fixed healing projectiles not always targeting the unit's main target
    • Fixed mod classloader deadlock
    • Added support for loading data patches in mods for the sake of future compatibility (loaded from patches/ folder)
  3. v160.5v8 Build 160.52026-09-20 · 2026-09-20 13:56 UTC
    查看更新说明
    • Fixed certain popups still displaying on servers when UI is hidden
    • Fixed some bugs relating to chain lightning snapping
    • Fixed hex/binary values of numbers in logic processors not parsing when above Long.MAX_VALUE
    • Fixed shape text marker not being selectable in logic UI
    • Fixed target dummy not being able to land when other dummies with large hitboxes are nearby
    • Fixed entities with extremely large hitbox sizes causing a thread to freeze
    • Fixed processor graphics/text buffer not clearing on restart
    • Fixed crafters not being able to output fast enough when output is boosted
    • Fixed map descriptions not wrapping
    • Potentially fixed iPhones not supporting FPS above 60
    • Made player list UI wider on desktop
    • Liquid bars are no longer displayed in data patched blocks with 0 liquid capacity
    • Images in data patches now have alpha bleeding and antialiasing applied, matching how vanilla sprites are processed
    • The mod browser will now prioritize mod releases with a title that matches the current Mindustry version (e.g. a release with [v160] as a suffix will be prioritized on Mindustry build 160.x)
  4. v160.4v8 Build 160.42026-09-14 · 2026-09-14 02:44 UTC
    查看更新说明

    It's still not over yet.

    • Fixed yet another target dummy bug relating to parameter validation on servers
    • Fixed high memory usage in pathfinder when large amounts of units target a dummy
    • Fixed a very specific data patch crash
  5. v160.3v8 Build 160.32026-09-13 · 2026-09-13 03:55 UTC
    查看更新说明

    The target dummy bugs continue.

    • Fixed dummy block crashing or disconnecting clients when configured in multiplayer
    • Fixed dummy block being overdriveable
    • Fixed requiredPlanets not working in data patches
    • Fixed data patch maps sometimes crashing after adding items

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Logo

    Build Status Discord

    The automation tower defense RTS, written in Java.

    Trello Board
    Wiki
    Javadoc

    Contributing

    See CONTRIBUTING for general code style and PR guidelines.

    If you are a first-time contributor looking for features to implement or bugs to fix, see the issues tagged with 'candidate' in the Mindustry-Suggestions repostiory.

    Building

    Bleeding-edge builds are generated automatically for every commit. You can see them here.

    If you'd rather compile on your own, follow these instructions. First, make sure you have JDK 17 installed. Other JDK versions will not work. Open a terminal in the Mindustry directory and run the following commands:

    Windows

    Running: gradlew desktop:run
    Building: gradlew desktop:dist
    Sprite Packing: gradlew tools:pack

    Linux/Mac OS

    Running: ./gradlew desktop:run
    Building: ./gradlew desktop:dist
    Sprite Packing: ./gradlew tools:pack

    Server

    Server builds are bundled with each released build (in Releases). If you'd rather compile on your own, replace 'desktop' with 'server', e.g. gradlew server:dist.

    Android

    1. Install the Android SDK here. Make sure you're downloading the "Command line tools only", as Android Studio is not required.
    2. In the unzipped Android SDK folder, find the cmdline-tools directory. Then create a folder inside of it called latest and put all of its contents into the newly created folder.
    3. In the same directory run the command sdkmanager --licenses (or ./sdkmanager --licenses if on linux/mac)
    4. Set the ANDROID_HOME environment variable to point to your unzipped Android SDK directory.
    5. Enable developer mode on your device/emulator. If you are on testing on a phone you can follow these instructions, otherwise you need to google how to enable your emulator's developer mode specifically.
    6. Run gradlew android:assembleDebug (or ./gradlew if on linux/mac). This will create an unsigned APK in android/build/outputs/apk.

    To debug the application on a connected device/emulator, run gradlew android:installDebug android:run.

    Troubleshooting

    Permission Denied

    If the terminal returns Permission denied or Command not found on Mac/Linux, run chmod +x ./gradlew before running ./gradlew. This is a one-time procedure.

    Where is the mindustry.gen package?

    As the name implies, mindustry.gen is generated at build time based on other code. You will not find source code for this package in the repository, and it should not be edited by hand.

    The following is a non-exhaustive list of the "source" of generated code in mindustry.gen:

    • Call, *Packet classes: Generated from methods marked with @Remote.
    • All entity classes (Unit, EffectState, Posc, etc): Generated from component classes in the mindustry.entities.comp package, and combined using definitions in mindustry.content.UnitTypes.
    • Sounds, Musics, Tex, Icon, etc: Generated based on files in the respective asset folders.

    Gradle may take up to several minutes to download files. Be patient. After building, the output .JAR file should be in /desktop/build/libs/Mindustry.jar for desktop builds, and in /server/build/libs/server-release.jar for server builds.

    Feature Requests

    Post feature requests and feedback here.

    Downloads