OK, so I am in the process of making a mod, with custom items. It will, of course, use a custom texture pack. (Whether or not it will be normal Minecraft textures, I'm not sure yet!
But on to the problem:
OK, so I have the texture pack set up like this,
TP.zip>assets>items-opaque>pictures for items
I originally had an images folder before items-opaque folder but I came up with the same error
Plz help
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon bacon:0 does not exist (Dave's Mo' Food Mod by TheCoder75 v1.js#1)
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(Dave's Mo' Food Mod by TheCoder75 v1.js:1)
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:253)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:179)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.IllegalArgumentException: The item icon bacon:0 does not exist
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setItem(ScriptManager.java:2785)
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setFoodItem(ScriptManager.java:2793)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
... 11 more
OK, so I am in the process of making a mod, with custom items. It will, of course, use a custom texture pack. (Whether or not it will be normal Minecraft textures, I'm not sure yet!
But on to the problem:
OK, so I have the texture pack set up like this,
TP.zip>assets>items-opaque>pictures for items
I originally had an images folder before items-opaque folder but I came up with the same error
Plz help
org.mozilla.javascript.WrappedException: Wrapped java.lang.IllegalArgumentException: The item icon bacon:0 does not exist (Dave's Mo' Food Mod by TheCoder75 v1.js#1)
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(Dave's Mo' Food Mod by TheCoder75 v1.js:1)
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:253)
at net.zhuoweizhang.mcpelauncher.ScriptManager$ParseThread.run(ScriptManager.java:179)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.IllegalArgumentException: The item icon bacon:0 does not exist
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setItem(ScriptManager.java:2785)
at net.zhuoweizhang.mcpelauncher.ScriptManager$NativeModPEApi.setFoodItem(ScriptManager.java:2793)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
... 11 more
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumThe folder items-opaque has to be in the images folder (https://github.com/zhuowei/MCPELauncher/wiki/Texture-packs).
Can you tell me the line which should define the item?
ModPE.setFoodItem(500,"bacon",0,4,"Raw Bacon");
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDid you named the image for the item bacon_0.png or bacon:0.png?
It should be bacon_0.png in the folder
TP.zip/assets/images/items-opaque
I. Got it straight, thanks, but now is got another problem, every time I put my custom item in the furnace my game crashes
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumDid you defined a furnace recipe for it?
Yes, I did... The coding line is:
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou forgot something.It should be:please refer: https://github.com/Connor4898/ModPE-Docs/wiki/Item
Still crashes
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumExcuse me, I made a mistake, your furnace recipe was correct.
I don´t know why it crashes.
Maybe you defined the furnace recipe before defining the items?
It's not correct, the data value has to be the last parameter not the second. Connor's wiki is so outdated.
The heck is this for