LegacyScriptEngine
LegacyScriptEngine copied to clipboard
A plugin engine for running LLSE plugins on LeviLamina
### Describe the bug 1. onPistonTryPush 活塞推不动的方块数量越多时导致服务器tps越低 2. onPistonPush 在未推动任何方块时无法触发(这个修不修都行,主要时第一条) ### To Reproduce ```JavaScript // 墓碑防推 mc.listen("onPistonTryPush", (pistonPos, block) => { let obj = JSON.parse(playerTombstoneData.read()); if (block != null &&...
### Describe the bug  1. onBlockExplode 爆炸来源的方块对象 source.type 每次打印都是"minecraft:air" 空气 2. 补充:isDestroy一直是true 就算tnt在水里爆炸也是true ### To Reproduce 在 onBlockExplode 监听事件中打印 source.type 每次都是空气 ### Expected behavior 正常工作 ### Screenshots _No response_...
### Describe the bug onRedStoneUpdate 参数 isActive 异常,有时 isActive 始终为 false 有时 isActive 第一次是 true 之后始终都是false ### To Reproduce ```JavaScript mc.listen("onRedStoneUpdate", (block, level, isActive) => { // 调试日志:显示所有红石更新 const pos...
### Describe the bug data.name2uuid(name) data.name2xuid(name) player.xuid player.uuid 疑似有时获取不到 最近我的绝大部分使用到获取玩家xuid、uuid 的插件出现频繁报错,大概就是xuid或uuid为null或undefined,但在更新1.21.93之前一切正常,更新之后开始疯狂报错刷屏,希望开发组能排查一下是哪里的问题 ### To Reproduce 1 ### Expected behavior 1 ### Screenshots 1 ### Platform win10 ### BDS Version 1.21.93 ###...
### Is your feature request related to a problem? Please describe. entity.isLightingCreeper 获取实体是否是苦力怕并且是闪电苦力怕 entity.attackDamage 或 entity.power 获取实体的攻击力 ### Describe the solution you'd like 1 ### Describe alternatives you've considered 1...
### Describe the bug 注册真指令后,使用时抛出错误,时而报错,时而不报错,但是在这个插件刚写出来时使用时没有报错,在服务器运行一段时间后再次使用指令控制台出现错误,目前不清楚是跨插件调用时内存管理问题还是什么问题 这是被调用到的其他插件API的另一个插件: [B-FakePlayer.zip](https://github.com/user-attachments/files/21215188/B-FakePlayer.zip) ### To Reproduce ```JavaScript const { PAPI } = require('./GMLIB-LegacyRemoteCallApi/lib/BEPlaceholderAPI-JS'); // 导入PAPI mc.listen("onServerStarted", () => { const listEx_command = mc.newCommand(`listex`, `列出在线玩家和假人`, PermType.Any); listEx_command.overload([]);...
### Describe the bug quickjs插件拦截onChat事件后 nodejs插件onChat无法触发 ### To Reproduce quickjs插件拦截onChat事件后 nodejs插件onChat无法触发 ### Expected behavior quickjs插件拦截onChat事件后 nodejs插件onChat正常触发 ### Screenshots _No response_ ### Platform win10 ### BDS Version 1.21.80 ### LeviLamina Version...
### Is your feature request related to a problem? Please describe. 希望增加 玩家使用打火石激活下界传送门 监听事件 ### Describe the solution you'd like 希望增加 玩家使用打火石激活下界传送门 监听事件 ### Describe alternatives you've considered 希望增加 玩家使用打火石激活下界传送门...
### Describe the bug bug 1:onBlockInteracted 监听事件触发条件异常,按照文档中说法:只有可以被互动的方块才会触发此事件,如木桶、信标、制图台、磨石等 拦截事件对箱子、潜影盒、工作台无效,但是实际情况是右键草方块、草等方块均可触发 bug 2:return false 拦截后 无法打开工作台等方块 bug 3:return false 拦截后 无法放置任何方块 ```JavaScript mc.listen("onBlockInteracted", (player, block) => { logger.warn(player.realName); logger.warn(block.type); logger.warn(block.pos); }); ``` ###...
### Describe the bug 导入GMLIB或Pland api后,如果onLeft事件中有外部api的调用,那么stop关服会报错。 显示插件正在禁用 test v1.0.0,但日志末尾还会有插件onLeft事件中的输出。 ll.onUnload()没有在关服时触发,所以无法规避此报错。 倒是不影响正常功能,但有的插件会有大量报错信息。 23:44:31.240 INFO [test] setInterval: true 23:44:31.752 INFO [test] setInterval: true 23:44:32.252 INFO [test] setInterval: true 23:44:32.750 INFO [test] setInterval:...