Jump to content

Colored Items


Tesch

Recommended Posts

Hello, I want to create an item that has a color depending on the color of the dye you use in it's recipe(For example, like the colored cables in Applied Energistics 2, but it's only an item, not a block). Do I have to make a separate item for each color, or there is a better way of doing it?

Link to comment
Share on other sites

Different items is generally preferred for this case. Vanilla does this (separate blocks and items for each thing that uses dye colors), and I believe it's better for general usability of the mod as well as performance.

If you're dead-set on using a single item, you would have to use NBT data. That can be a bit messy and is really overkill if you're just using those 16 colors, so using separate items is advisable. If you were mixing colors then I'd recommend taking a look at how leather armor does that using NBT data.

I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.

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.