v0.1.2 — npc.* API + ai_server_sim
·
7 commits
to main
since this release
Lua Map Maker v0.1.2 — AI server simulator + npc.* API.
Highlights
npc.*Lua API — spawn simulated players as real fake-player entities (visible in the tab list).npc.spawn/exists/remove/removeAll/list/count/pos/moveto/look/say.ai_server_sim.luabundled example — 8 NPCs with roles (wanderer, miner, builder, farmer, greeter, guard, trader) that wander, run world-editing tasks, chat publicly, converse with each other, and greet real players. Deterministic, step-based: each/luamap run ai_server_simadvances the sim 40 steps; NPCs and step count persist across runs.
Quick start
java -jar luamap-launcher.jar # client
java -jar luamap-launcher.jar --server # headless dedicated server
In game or at the server console: /luamap run ai_server_sim (re-run to advance). Reset: /luamap eval npc.removeAll().
Also included from v0.1.1: launcher manages its own javahome/ (auto-provisions Temurin Java 17 for the game, never system Java) — run the jar with any Java 17+ to bootstrap.
Assets
luamap-launcher.jar— one-file launcher; bundles the mod, provisions Java 17 + Minecraft 1.20.4 + Fabric automatically.luamap-0.1.2.jar— the mod jar alone (drop into a Fabric 1.20.4 mods/ folder with Fabric API 0.97.2+).
Requirements: Java 17+ to run the launcher. Minecraft 1.20.4, Fabric Loader 0.16.9, Fabric API 0.97.2+1.20.4.