LiteLDev / LegacyScriptEngine

A plugin engine for running LLSE plugins on LeviLamina
GNU General Public License v3.0
48 stars 8 forks source link

[Bug]: API-entity.setMovementSpeed无法为矿车(minecart)设置实体速度 #65

Closed superwfox closed 8 months ago

superwfox commented 8 months ago

Describe the bug

IMG_2360 IMG_2359

To Reproduce

使用onRide事件获取 rider和saddle 对rider可以正常使用sendText 但对saddle.setMovementSpeed时会出错 提示空指针

Expected behavior

API可以正确将实体的速度component设置为参数应有的值

Screenshots

No response

Platform

No response

BDS Version

No response

LeviLamina Version

No response

LegacyScriptEngine Version

No response

Additional context

No response

ShrBox commented 8 months ago

因为矿车没有速度属性,我也找不到任何给矿车添加该属性的方法