Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • 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.

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.