I am fairly new to coding in Forge but I understand the basics. I have set up a DeferredRegistry item and set up the texture with a .json and have use a .lang file to rename it. When I load the game, all I see is a purple and black cube that says "Ruby". I don't understand why the texture won't load for it. Here is the code -
Here is the ruby.json
{
"parent": "item/generated",
"textures": {
"layer0": "tutorialmod:items/ruby"
}
}
Here is the en_us
{
"item.tutorialmod.ruby": "Ruby"
}
Here is the RegistryHandler
package net.InTheRiches.tutorial.Utilities;
import net.InTheRiches.tutorial.tutorialmod;
import net.InTheRiches.tutorial.items.ItemBase;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
public class RegistryHandler {
public static final DeferredRegister<Item> ITEMS = new DeferredRegister<>(ForgeRegistries.ITEMS, tutorialmod.MOD_ID);
public static void init() {
ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
}
//Items
public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", ItemBase::new);
}