Hi, recently I wanted to make a new mod. And after I finished the code for the item itself, I came across a issue, that is after I done the item registry and the json file, the item itself was only the missing texture placeholder, and not showing up the actully texture I made. So is there any ways to solve this issue? I would be very appreciated.
Item Code:
package net.jellofish83.fariouscraft.core.init;
import net.jellofish83.fariouscraft.FariousCraft;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraftforge.fmllegacy.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
public final class ItemInit{
private ItemInit() {}
public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, FariousCraft.MODID);
public static final RegistryObject<Item> SILVER_INGOT = ITEMS.register("silver_ingot", () -> new Item(new Item.Properties().tab(CreativeModeTab.TAB_MISC)));
}
1) I see you are using Forge, use their forum/discord for support... this minecraft subforum is nearly dead and you very rarely get any answers, certainly zero answers from Mojang or Microsoft. It is very obvious that they have nobody monitoring for the purpose of helping modders.
2) If you are only now getting started with Minecraft modding, drop Forge like a stone... their community is not very helpful and even seems to be very territorial. When I asked for help there instead of getting advice I got trolled/attacked. Fabric is a much easier framework to get started on and their community is MUCH more friendly and helpful. A little help at the right time can be the difference between success and failure. And... a lot is common when you work with either framework, so you can always add support for Forge later, once you are comfortable at moddiing.
3) Verify all of your paths/code. Minecraft is extremely picky and one little thing being off will cause this kind of issue.
4) Did you remember to make an en_us.json file and put the item name for your item there?
5) Based on the error in the console it seems that you have a typo in the assets item directory name and your references to it. The directory is "item" not items. The full path under resources is: assets/fariouscraft/models/item/silver_ingot.json . When in doubt always inspect the original game's asset path for the type of asset you are looking for, in this case assets/minecraft/models/item/*.json
6) No matter the framework, Minecraft modding youtube videos are OK for the very basic stuff, but they are usually not complete or flexible enough to match your actual mod's needs - they are more like examples for special cases than a well thought-out tutorial that would teach you how to do things yourself. Always review the original documentation (i.e.: their modding Wiki) for things the video missed, and when you can't find what you need... inspect the original code for clues on how to do stuff.
Hi, recently I wanted to make a new mod. And after I finished the code for the item itself, I came across a issue, that is after I done the item registry and the json file, the item itself was only the missing texture placeholder, and not showing up the actully texture I made. So is there any ways to solve this issue? I would be very appreciated.
Item Code:
JSON file:
And also, in the console I saw this:
Any help would be very appreciated.
Thanks
I can think of a couple suggestions:
1) I see you are using Forge, use their forum/discord for support... this minecraft subforum is nearly dead and you very rarely get any answers, certainly zero answers from Mojang or Microsoft. It is very obvious that they have nobody monitoring for the purpose of helping modders.
2) If you are only now getting started with Minecraft modding, drop Forge like a stone... their community is not very helpful and even seems to be very territorial. When I asked for help there instead of getting advice I got trolled/attacked. Fabric is a much easier framework to get started on and their community is MUCH more friendly and helpful. A little help at the right time can be the difference between success and failure. And... a lot is common when you work with either framework, so you can always add support for Forge later, once you are comfortable at moddiing.
3) Verify all of your paths/code. Minecraft is extremely picky and one little thing being off will cause this kind of issue.
4) Did you remember to make an en_us.json file and put the item name for your item there?
5) Based on the error in the console it seems that you have a typo in the assets item directory name and your references to it. The directory is "item" not items. The full path under resources is: assets/fariouscraft/models/item/silver_ingot.json . When in doubt always inspect the original game's asset path for the type of asset you are looking for, in this case assets/minecraft/models/item/*.json
6) No matter the framework, Minecraft modding youtube videos are OK for the very basic stuff, but they are usually not complete or flexible enough to match your actual mod's needs - they are more like examples for special cases than a well thought-out tutorial that would teach you how to do things yourself. Always review the original documentation (i.e.: their modding Wiki) for things the video missed, and when you can't find what you need... inspect the original code for clues on how to do stuff.
Thanks for your answer, I found the problem. I mistyped item/generated to Item/generated.
And currently, the code editor got a bug, which is Eclipse, I have to drag the image file into the package for it to work.
Still thank you for answering though.