Posted April 9, 20205 yr I am attempting to add a few items to the game as a learning exercise to get myself accustomed to modding. The issue I am running into appears to be that my textures are not properly linked to my items, I know that the models are linking properly, as they are the flat missing texture model vs the missing texture cube. What confuses me is that this issue only seems to show up with the tool Item classes. (AxeItem, SwordItem, ShovelItem, etc.) My understanding was that the the registry name informed the game where to look for the necessary resources. Am I misunderstanding how this works? I've included a snippet here, as well as a link to the project on GitHub. event.getRegistry().registerAll( /*Items*/ ItemList.prismarine_quartz_shard = new Item(new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_quartz_shard")), /*Tools*/ ItemList.prismarine_and_steel = new PrismarineAndSteel(new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_and_steel")), ItemList.prismarine_axe = new AxeItem(ToolMaterialList.prismarine, -1.0f, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_axe")), ItemList.prismarine_pickaxe = new PickaxeItem(ToolMaterialList.prismarine, -2, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_pickaxe")), ItemList.prismarine_shovel = new ShovelItem(ToolMaterialList.prismarine, -1.0f, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_shovel")), ItemList.prismarine_sword = new SwordItem(ToolMaterialList.prismarine, 1, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_sword")), ItemList.prismarine_hoe = new HoeItem(ToolMaterialList.prismarine, 6.0f, new Item.Properties().group(abyssal)).setRegistryName(location("prismarine_hoe")), /*Block Items*/ ItemList.prismarine_quartz_block = new BlockItem(BlockList.prismarine_quartz_block, new Item.Properties().group(abyssal)).setRegistryName(BlockList.prismarine_quartz_block.getRegistryName()) ); https://github.com/DJKnarnia/Abyssal-Minecraft-Mod
April 9, 20205 yr Quote "layer0": "item/prismarine_pickaxe" You're not prefixing your item textures with your modid is a likely cause.
April 9, 20205 yr Author 6 minutes ago, Ugdhar said: You're not prefixing your item textures with your modid is a likely cause. Thank you, that was it. I don't know how I overlooked that... Anyway, thanks for the fast reply, have a good one.
April 9, 20205 yr Author 13 minutes ago, diesieben07 said: You should use DeferredRegister to register your registry entries. I will look into this, thanks.
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.