# CLOUD Linux box test (NOT Jin's PC) — 2026-10-27 11:51:12 CST $ cd /tmp && um kb search mindustry games/mindustry/mindustry-160-7-a-reproducible-json-and-javascript-homing-la.md Mindustry 160.7: a reproducible JSON and JavaScript homing lab on macOS [Mindustry | java | loader-api | released] | # Mindustry 160.7: a reproducible JSON and JavaScript homing lab on macOS | - Mindustry **160.7**, downloaded from the author's [official itch.io page](https://anuke.itch.io/mindustry). | **Loader API:** Mindustry's built-in mod system loads `mod.json`, JSON content definitions and JavaScript [exit code: 0] # CLOUD Linux box test (NOT Jin's PC) — 2026-10-27 11:51:12 CST $ cd /tmp && um kb search --engine java --limit 5 games/hytale/deadlock-movement-suite-server-plugin.md Deadlock's movement suite in Hytale: server plugin + client-predicted interactions [Hytale | java | loader-api | working] games/mindustry/mindustry-160-7-a-reproducible-json-and-javascript-homing-la.md Mindustry 160.7: a reproducible JSON and JavaScript homing lab on macOS [Mindustry | java | loader-api | released] games/minecraft/bloons-td-6-in-minecraft.md Bloons TD 6 inside Minecraft: the guest's rules as a headless 2D sim, Minecraft as the view [Minecraft | java | reimplementation | working] games/minecraft/half-life-2-guns-in-minecraft-passthrough-hl2-demo-under-win.md Half-Life 2 guns in Minecraft (passthrough, HL2 Demo under Wine on macOS) [Minecraft | java | passthrough | working] games/minecraft/kindred-local-llm-ai-companion-fabric.md Kindred: Local LLM AI companion with Ollama, bounded inference, autonomy, and memory [Minecraft | java | loader-api | working] [exit code: 0] # CLOUD Linux box test (NOT Jin's PC) — 2026-10-27 11:51:13 CST $ cd /tmp && um --help | grep -iE "ask|chat|llm|agent" ; um ask "What engine is /home/box/um-test/games/Mindustry, and has anyone modded it before?" universal-modder: tools any AI agent (Claude Code, Codex, Cursor, Gemini CLI, ...) uses to mod games. usage: um [-h] [--version] ... um: error: argument : invalid choice: 'ask' (choose from scan, fal, comfy, sprixen, voidless, sprite, render3d, video, win, backup, publish, kb) [exit code: 2] # CLOUD Linux box test (NOT Jin's PC) — 2026-10-27 11:51:19 CST $ cd /tmp && um kb show games/mindustry/mindustry-160-7-a-reproducible-json-and-javascript-homing-la.md | head -70 --- kind: game title: "Mindustry 160.7: a reproducible JSON and JavaScript homing lab on macOS" game: Mindustry games_also: [] game_version: "160.7, official itch.io macOS desktop distribution" platform: macos engine: java route: loader-api tools: ["Universal Modder 0.2.0", "Mindustry built-in JSON and JavaScript mod API"] anti_cheat: "Single-player local test only; no anti-cheat modifications or multiplayer testing" status: released agents: ["Codex (GPT-6)"] humans: ["B.Liu (liubrain39)"] date: 2026-10-09 links: - https://mindustrygame.github.io/wiki/modding/1-modding/ - https://github.com/Anuken/Mindustry/tree/v160.7 - https://github.com/liubrain39/modlab-homing-lab - https://github.com/rehan-remade/universal-modder/tree/main/examples/mindustry-homing - https://modlabguides.online/workshop/mindustry-homing tags: [mindustry, java, json, javascript, homing, macos, verification, backups] --- # Mindustry 160.7: a reproducible JSON and JavaScript homing lab on macOS A small released mod compares straight and guided projectiles in the real desktop engine. The useful lesson is to use the game's supported JSON/JavaScript API even when a generic Java scan suggests bytecode patching, and to make both installation and the comparison reproducible. ## Setup - Mindustry **160.7**, downloaded from the author's [official itch.io page](https://anuke.itch.io/mindustry). The author provides a free download; Steam is not required for this case. - macOS **15.7**, Apple M1 Max. The official x86_64 app runs under Rosetta and bundles Java **25.0.1**. This describes the tested machine, not a requirement that every reader install that Java version. - Universal Modder **0.2.0**, revision `8370faa8e114baf33acdb23079aff552a7728c4b`. - ModLab Homing Lab **0.1.0**, original MIT-licensed code and simple geometric turret sprites. No game binaries or extracted game assets are distributed. - A separate clean game-data profile was restored from a backup before the ZIP installation test. ## Route and why **Loader API:** Mindustry's built-in mod system loads `mod.json`, JSON content definitions and JavaScript from the mod ZIP. No external loader, bytecode patch, native injection, paid asset or API key is needed to run this example. Universal Modder knowledge search returned no Mindustry note before this contribution. The generic scan classified the bundle as Java, found no installed loader and suggested Java patching; that output did not recognise Mindustry's supported mod interface. Reviewing the official game documentation and source supplied the route. Scan output is a hypothesis to check, not proof that no API exists. ## How the game works - The loader reads `mod.json` or `mod.hjson` at the mod root (it steps into a single top-level folder), content from `content//*.json` or `.hjson`, sprites from `sprites/`, and scripts from `scripts/`: a lone `.js` file there runs as the main script, otherwise `scripts/main.js`. - `content/blocks/baseline.json` and `homing.json` define two `ItemTurret` blocks with a copper-ammo `MissileBulletType`. That type's constructor sets `homingPower = 0.08`, so the straight lane has to set `homingPower: 0` explicitly. The mod name prefixes content identifiers: `modlab-homing-baseline` and `modlab-homing-homing`. - Keep bullet speed **2.7**, damage **12**, lifetime **105 ticks**, reload **70 ticks** and no splash identical. `homingPower` changes from **0** to **0.08**; colours are labels. - `homingRange: 200` is in world units (8 per tile, so 25 tiles). It is measured from the bullet's aim point, not from the bullet: a turret passes its target position as the bullet's `aimX`/`aimY`, and `BulletType.updateHoming` steers toward the closest target within `homingRange` of that point. Here the fixed aim point is the centre of the target's path, so the target is always in range. `homingDelay: 8` is simulation ticks. Do not label either value as seconds or tiles without conversion. - The original helper script makes a temporary local world, supplies ammunition and gives both lanes identical scripted moving targets and a fixed aim point. It reads actual turret `totalShots` and counts `UnitDamageEvent` events for the corresponding target and bullet owner. It does not invent successful hits. - The simulation uses `Time.delta`; **1800 simulation ticks** target 30 simulation seconds. Wall time and [exit code: 0]