Here's the error I receive when trying to use it on BlockLauncher:
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update (moreswordsmod.js#29)
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(moreswordsmod.js:29)
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:271)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:196)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setItem(ScriptManager.java:3525)
at java.lang.reflect.Method.invoke(Native Method)
... 11 more
Okay lol. I seem to be good at coding command (I have a command mod that adds 39 commands that I'm going to release soon) and specific function mods (my fly mod), but typically not mods that actually add items with textures to the game. Here's the code:
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update (moreswordsmod.js#29)
The above line mentions the item icon. I'm rather new to modding, but what file type is the item icon?
Here's the error I receive when trying to use it on BlockLauncher:
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update (moreswordsmod.js#29)
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(moreswordsmod.js:29)
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:271)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:196)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setItem(ScriptManager.java:3525)
at java.lang.reflect.Method.invoke(Native Method)
... 11 more
Oh yeah, sorry. I'll add it tomorrow when I can. Thanks!
I'm pretty sure it has something to do with the textures.
Here is line of code that is used for each texture, just with a different imgur link.
var items_opaque = "http://imgur.com/Ja0qk7a";
Is there anything wrong with that?
Okay lol. I seem to be good at coding command (I have a command mod that adds 39 commands that I'm going to release soon) and specific function mods (my fly mod), but typically not mods that actually add items with textures to the game. Here's the code:
ModPE.setItem(800, 0, "Emerald Sword");
ModPE.addCraftRecipe(800, 1, 0[388, 2, 0, 280, 1, 0]);
ModPE.setItemCategory(800, 2, 0);
var items_opaque = "http://imgur.com/wC8byZ5";
Player.addItemCreativeInv(800, 1, 0);
Item.setHandEquipped(800, 1);
What's wrong with it? Any help will be appreciated!
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon for undefined is not updated for 0.8.0. Please ask the script author to update (moreswordsmod.js#29)
The above line mentions the item icon. I'm rather new to modding, but what file type is the item icon?
Power, wisdom, courage.
The texture of the item.
Which is? You're not being very clear here.
Power, wisdom, courage.
Oh, sorry. It is a .png file.