Skip to content

FakePlayer-CE.Build4

Choose a tag to compare

@EndlessPixel EndlessPixel released this 11 Sep 09:25
· 175 commits to master since this release

FakePlayer-CE.Build4

Interaction & Stability: Replenish, Live Config & Loader Compatibility
This release fixes long-standing Fakeplayer quirks: tools now auto-repair under replenish, config changes apply immediately to online Fakeplayers, and Mohist loading no longer crashes. We also hardened the look/movement logic against remapped server implementations.

Highlights

  • Live Config Applied Instantly: Changing /fp config (e.g. invulnerable, collidable, pickup_items) now takes effect on already-online Fakeplayers without respawn.
  • Tool Auto-Repair: Replenish now periodically repairs worn tools whose durability drops (previously only event-triggered consumables were refilled).
  • Mohist Compatibility: Removed direct dependency on io.papermc.paper.entity.LookAnchor, eliminating NoClassDefFoundError on remapped (Mohist) servers.

Critical Fixes

  • Fixed Invincible Fakeplayers (#178, #181, #199): setFeature previously only persisted to DB and never re-applied modifiers to live Fakeplayers, so invulnerable false had no effect. Now saved changes are pushed to the creator's online Fakeplayers immediately.
  • Fixed Tools Not Replenished (#195): Tools wear via durability loss, which fires no refill event. Added a periodic check (replenish.tools.durability-threshold in config.yml, 0–100% wear, default off) that repairs held items once worn past the threshold.
  • Fixed Mohist Load Crash (#200): LookAtEntityAction and RotationCommand referenced io.papermc.paper.entity.LookAnchor, which Mohist remaps and fails to find. Replaced with pure NMS angle calculation (LookUtils), no io.papermc dependency at load time.

Usage

  • Java: 21+ (Java 25 recommended for 26.x support)
  • Server: Paper 1.20.1+ (Purpur compatible)
  • API: CommandAPI 11.1.0+

Credits


FakePlayer-CE.Build4 —— 交互与稳定性:自动补货、实时配置与加载兼容

本次更新修复了多个长期存在的假人问题:自动补货现在会修复磨损的工具,配置修改会立即作用于在线假人,并且 Mohist 端加载不再崩溃。同时强化了朝向/移动逻辑以兼容被重映射的服务端实现。

核心特性

  • 配置实时生效:修改 /fp config(如无敌、可碰撞、拾取物品)现在会立即作用于已经在线(spawned)的假人,无需重新生成。
  • 工具自动修复:开启自动补货后,会周期性修复耐久下降的工具(此前仅补充由事件触发的消耗品)。
  • Mohist 兼容:移除了对 io.papermc.paper.entity.LookAnchor 的直接依赖,消除在 Mohist 等重映射服务端上的 NoClassDefFoundError。

关键修复

  • 修复假人无法取消无敌(#178, #181, #199):setFeature 此前只写入数据库、不会把 modifier 重新应用到在线假人,导致 invulnerable false 不生效。现在保存后会立即将变更推送给该创造者的在线假人。
  • 修复工具不被补货(#195):工具靠耐久磨损消耗,而磨损不触发任何补货事件。新增周期性检查(在 config.yml 配置 replenish.tools.durability-threshold,0–100% 磨损阈值,默认关闭),磨损超过阈值时自动修复手中物品。
  • 修复 Mohist 加载崩溃(#200):LookAtEntityAction 与 RotationCommand 引用了 io.papermc.paper.entity.LookAnchor,Mohist 会重映射该类导致其找不到。改用纯 NMS 角度计算(LookUtils),加载时不依赖 io.papermc。

使用要求

  • Java: 21+ (推荐 Java 25 以支持 26.x)
  • 服务端: Paper 1.20.1+ (兼容 Purpur)
  • API: CommandAPI 11.1.0+

鸣谢