minecraftpe吧 关注:638,816贴子:15,083,959
  • 13回复贴,共1

【0.14.2】盔甲架插件出错。

只看楼主收藏回复

帮忙解决问题。 Error occurred in script: 盔甲架插件.js
org.mozilla.javascript.WrappedException: Wrapped java.lang.RuntimeException: addEffect only works for mobs (盔甲架插件.js#61)
at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(Unknown Source)
at org.mozilla.javascript.FunctionObject.call(Unknown Source)
at org.mozilla.javascript.Interpreter.interpretLoop(Unknown Source)
at script.useItem(盔甲架插件.js:61)
at org.mozilla.javascript.Interpreter.interpret(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(Unknown Source)
at org.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
at org.mozilla.javascript.InterpretedFunction.call(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.callScriptMethod(ScriptManager.java:284)
at net.zhuoweizhang.mcpelauncher.ScriptManager.useItemOnCallback(ScriptManager.java:296)
Caused by: java.lang.RuntimeException: addEffect only works for mobs
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeEntityApi.addEffect(ScriptManager.java:3061)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
... 10 more
不知道那个出错了。


IP属地:江西来自Android客户端1楼2016-05-02 22:23回复


    来自Android客户端2楼2016-05-02 22:32
    收起回复
      Entity.addEffect只适用于实体


      IP属地:广东来自Android客户端3楼2016-05-02 22:34
      收起回复
        围观


        IP属地:广西来自Android客户端5楼2016-05-02 22:51
        回复
          又Q


          IP属地:湖南来自Android客户端6楼2016-05-03 02:22
          回复




            来自Android客户端10楼2016-05-03 08:49
            收起回复