This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
//cannon//
//bow id 261//
ModPE.langEdit("item.bow.name", "cannon");
ModPE.langEdit("item.arrow.name", "cannon ball");
Item.addCraftRecipe (
261, 1, 0[265, 5, 0, 318, 4, 0]);
I think it has something to do with the addrecipe function because i worked well before i added that in please help
Error meassage
org.mozilla.javascript.WrappedException: Wrapped java.lang.NullPointerException (cannon.js#6)
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(cannon.js:6)
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.exec(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.initJustLoadedScript(ScriptManager.java:237)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:163)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.lang.NullPointerException
at org.mozilla.javascript.ScriptableObject.getProperty(Unknown Source)
at net.zhuoweizhang.mcpelauncher.ScriptManager.expandShapelessRecipe(ScriptManager.java:1008)
at net.zhuoweizhang.mcpelauncher.ScriptManager.access$1500(ScriptManager.java:47)
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeItemApi.addCraftRecipe(ScriptManager.java:2451)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
... 11 more
Item.addCraftRecipe(261, 1, 0, [265, 5, 0, 318, 4, 0]);