Jump to content

Block Ore Drops


2To16Hobos

Recommended Posts

I've been trying to figure out what's been going on with my textures and I haven't had much luck. When I break the ore block to drop a specific item I created all it returns is a blank texture item (water, ice, earth, nature, and metal). The only one this doesn't occure with is my fire ore, it gives the correct item and texture. The other ores give the correct item but wrong texture. When they are added to a stack of the item added in via creative they return to normal. Can someone please help?

 

BlockOres class

https://pastebin.com/2FvfX2mt

2018-05-09_14.31.42.png

Link to comment
Share on other sites

Metadata is being removed in 1.13, If you are planing on continuing to support your mod into 1.13 and beyond I would highly recommend not using metadata.

 

My WIFI is dying on me and keeps posting comments twice. Read the comment below

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

5 minutes ago, diesieben07 said:

You are not setting the metadata of your drops. I highly recommend just overriding getDrops instead of using the combination of singular methods.

This is one way to do it - and probably the way you want to do it right now, but it will no longer work in future versions because metadata is being removed in 1.13. If you are planing on continuing to support your mod into 1.13 and beyond I would highly recommend not using metadata.

 

Many people use metadata to avoid creating multiple classes, forgetting that you can instantiate the same class multiple times to create many items. Here is a good topic on this subject:

 

Edited by Cadiboo

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

1 minute ago, diesieben07 said:

BS. There are migration paths from "metadata" to "not metadata". Not using it now will not buy you much.

Its my personal opinion, get it done now - while you are still making your mod - and have less work in the future

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

4 minutes ago, diesieben07 said:

Except you will still have to migrate in the future...

... migrate what? your mod? yes you will, but you will have to do less work when migrating it.

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

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

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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