
my-bot-mod
Carpet-style fake players (bots) for Fabric 1.20-1.21.4 - spawn & control bots, non-blocking A* pathfinding, a Command Baton to send them anywhere, skins, inventory & ender chest access, and bots that persist across restarts.
Список изменений
v1.3.3 — Minecraft 1.20.5–1.21.4 support · In-game behavior editor · Smart path smoothing
New build targets 1.20.6, 1.21.1, 1.21.3, 1.21.4 — 7 version-specific JARs in total, pick the one matching your Minecraft version. Java 21+ is required for Minecraft 1.20.5 and later (Java 17+ for 1.20–1.20.4).
Behavior editor (editor.zip) — the optional offline Blockly editor: direct download here, or open any 1.3.3 version page and grab it under Files → Additional files. Unzip it, open editor/behavior-editor.html in your browser, build behaviors with 100+ Scratch-like blocks, save the .json into .minecraft/config/my-bot-mod/behaviors/, then assign it to a bot in game. (v1.3.3 also adds an in-game editor, so the HTML editor is entirely optional.)
Highlights
- In-game behavior editor — write behaviors without leaving the game: category panel, statement list, parameter forms, breadcrumb navigation for nested control flow; output fully compatible with the HTML editor. "Save" writes to the behaviors folder and hot-reloads.
- New export blocks —
outputRaw(raw line),outputTemplate({time}{bot}{var:name}placeholders),outputTable(custom header + CSV rows); existing output blocks gain append/overwrite write modes. - Behavior execution UI rework — live status line with queue progress (x/y), separate start/stop, playlist reorder/remove/clear-all, search box, per-row "run only this" and edit shortcuts.
- Creative flight inheritance — bots summoned while you're flying enter flight too (jump/sneak to rise/descend, auto-landing like vanilla).
- Ender chest —
/bot <name> enderchestbinds the bot's real ender chest for live editing, auto-saved on close. - Smart path smoothing (
pathfindingSmooth, default on) — width-aware line-of-sight merging of waypoints; only merges same-height segments with standable center line and ±0.3 side clearance.
Pathfinding rework
- Pathfinder rewritten as a one-shot synchronous A* (fastutil unboxed structures, lazy deletion, block-state cache, admissible heuristic, hard caps: 15000 iterations / 25000 nodes); old string-pulling smoothing removed.
- Fixed: water nodes leaking into paths when swimming is disabled; flying/high bots unable to start pathfinding; free-fall misdetected as stuck; stuck-recalc loops returning to the same route; bots stopping mid-swim and sinking.
Removals
- Group & cooperative building system fully removed (commands, UIs, baton build mode, behavior blocks, config options).
- Carpet compatibility mode removed — the mod can be installed alongside Carpet; each manages its own bots.
- Baton teleport no longer Creative-only; dead
onMessageevent and ineffectiveconfigMenuKeyoption removed.
Bug fixes
- Right-click panel "Delete bot" button now works (via
/bot <name> kill confirm). - Implemented previously stub-only blocks:
followEntity/stopFollowand 9 sensors. - Behavior script exceptions no longer crash the server tick;
broadcastno longer double-fires; failedcreateBotrolls back (no more ghost players); auto-respawned bots no longer appear dead on other clients; interaction rays occluded by blocks; skin filename traversal validation;/botmod config set/getcovers 7 missing options.
Full notes: GitHub release v1.3.3
简体中文
v1.3.3——支持 Minecraft 1.20.5–1.21.4 · 游戏内行为编辑器 · 智能路径平滑
新增构建目标 1.20.6、1.21.1、1.21.3、1.21.4,共 7 个版本 JAR,按游戏版本选择对应的即可。1.20.5 及以上需要 Java 21+(1.20–1.20.4 为 Java 17+)。
行为编辑器(editor.zip)——可选的离线 Blockly 编辑器:点此直接下载,或打开任意 1.3.3 版本页,在 Files → Additional files 区获取。解压后用浏览器打开 editor/behavior-editor.html,用 100+ 类 Scratch 积木编排行为,把保存的 .json 放进 .minecraft/config/my-bot-mod/behaviors/,再到游戏内分配给假人。(v1.3.3 也新增了游戏内编辑器,HTML 编辑器完全可选。)
- 游戏内行为编辑器——不切出游戏即可编写行为:分类面板、语句列表、参数表单、嵌套控制流的面包屑导航;产物与 HTML 编辑器完全兼容,保存即热重载。
- 新输出积木——
outputRaw原始行、outputTemplate自定义模板({time}{bot}{var:名}占位符)、outputTable自定义表格(表头 + CSV 逐行追加);原有输出积木支持追加/覆盖写入。 - 行为执行界面重做——实时状态行与队列进度(x/y)、启动/停止分离、播放列表排序/移除/清空、搜索框、每行可单独执行或编辑。
- 创造飞行继承——飞行中召唤的假人同样进入飞行(跳跃/潜行升降,落地自动结束,与原版一致)。
- 末影箱——
/bot <名字> enderchest直接绑定假人末影箱实时编辑,关闭自动保存。 - 智能路径平滑(
pathfindingSmooth,默认开)——宽度感知视线法合并可直行路点;仅合并同高度、中心线与 ±0.3 侧向净空均可站立的线段。 - 寻路重写为一次性同步 A*(fastutil 免装箱、懒删除、方块状态缓存、硬上限 15000 次迭代/25000 节点),移除旧 string-pulling 平滑。修复:禁用游泳时路径混入水面节点、高处无法寻路、自由落体误判卡住、卡住重算循环、游泳中途下沉。
- 移除编组与合作建造系统、Carpet 兼容模式、指挥棒传送创造限制、死功能
onMessage与无效配置项configMenuKey。 - 修复右键面板"删除假人"按钮无效;补全
followEntity/stopFollow与 9 个传感器;行为异常不再崩服;broadcast不再重复触发;createBot失败回滚(不再有幽灵玩家);重生假人不再躺尸;交互射线被方块遮挡;皮肤文件名防穿越;/botmod config set/get补齐 7 个配置项。
完整说明见 GitHub Release v1.3.3。
