Posted December 3, 20204 yr Hello, I started modding a few days ago and now I'm trying to add a new Item just for testing but for some reason the name on en_us.json, and my texture are not showing up in game. It only shows the java name of the item like (item.keanumod.card). I have tried multiple things but none of them worked. Tried : 1- Changing text the text file enconding. (to UFT-8) 2- Changing workspace in Eclipse 3- Downloaded IntelliJ, and the same thing happened 4- I did re-write the whole again, and it still did not work. 5- And tried to change the text format in .jsons to old ones like ""="" instead of "":"" in en_us.json This is my en_us.json : { "item.keanumod.card":"Delayed Card" } ================================================================= card.json : { "parent": "item/generated", "textures": { "layer0": "keanumod:items/card" } } ========================================================================== A print of my structure : https://prnt.sc/vv7bmj ============================================================================ latest log: https://pastebin.pl/view/8b79ffa8 ============================================================================== Just to clarify, the item shows up on my world but withou any texture and named "item.keanumod.card". Thanks to anyone who did read, I would love some help. Edited December 3, 20204 yr by GiovanniStella forgot the latest log
December 3, 20204 yr Author 1 hour ago, diesieben07 said: Post the debug.log. It keeps saying that this log is too big to upload here, or even paste bin. Here can I post it? So i uploaded it to my dropbox : https://www.dropbox.com/s/exr4td5tkzoczsj/debug.log?dl=0 Tell me if there's a better way for this.
December 3, 20204 yr Author 51 minutes ago, diesieben07 said: Can' tell from the log, it just says it can't find the file. Post a Git repo of your mod. First time uploading to github, is it right? https://github.com/GigiTeddy/Keanumod
December 3, 20204 yr That's .class files. Maybe post it again with .java files so we can read it properly.
December 3, 20204 yr Author 6 minutes ago, zOnlyKroks said: That's .class files. Maybe post it again with .java files so we can read it properly. I posted it again as .jar, but its the same as before. Im uploading as a txt so you guys can see it.
December 3, 20204 yr Author 31 minutes ago, diesieben07 said: It should be neither .class, nor .jar nor .txt files. Please simply create a git repository in your project root (where your build.gradle is) and push. The MDK comes with a .gitignore file which will ignore any unneeded files. Its my first time doing this, and i cannot believe i actually did it. Here it is : https://github.com/GigiTeddy/Test1
December 3, 20204 yr 26 minutes ago, GiovanniStella said: Its my first time doing this, and i cannot believe i actually did it. Here it is : https://github.com/GigiTeddy/Test1 Code Style 5 Don't create an ItemBase class, when registering call new Item, and pass the properties to the constructor. If you want to save a few keystrokes you can write a utility method that simply return the default ItemProperties that you want. Additionally, you should be using Data Generators to generate the ItemModel files, if you want to know more about them, this comment has a few useful links that explain how to use them: https://forums.minecraftforge.net/topic/94402-generated/?tab=comments#comment-432933
December 3, 20204 yr Author 2 minutes ago, diesieben07 said: You set showAsResourcePack to true, which means your mod will be its own resource pack, which needs to be separately enabled. If you enable it, your model works. Dude, you are a LEGEND. Thank you so much, it worked. I don't actually remember writing it down but anyways. Thanks to everyone that posted here!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.