Jump to content

[1.14-1.15] [Solved]Problem in display name : yellow letter


Recommended Posts

Posted

Hello Everyone,

 

I have upload one of my mod to add a new block and I was wondering why this block and an other item of my inventory are displayed in yellow instead of normal white. It does work properly but I don't know if this mean of uncomplete block or something else.

2020-04-02_13.26.53.png

2020-04-02_13.27.11.png

Posted (edited)

Is your code available, preferably as a github repo? If not can you post your switch lever and one way powered rail classes in spoiler tags?

 

*edit: I ask because in looking at some code I was tinkering with, setting an Items Rarity to Rarity.UNCOMMON will give it a yellow name like that.

Edited by Ugdhar
  • matt1999rd changed the title to [1.14-1.15] [Solved]Problem in display name : yellow letter
Posted (edited)
22 minutes ago, matt1999rd said:

For switchLever it is using Rarity.UNCOMMON

That's why the switch lever name is yellow like that. Names change color based on rarity. net.minecraft.item.Rarity has the names and colors of the forge default ones, and you can add more if you'd like.

 

I can't tell why your one way powered rail is yellow, you got me there! But I wouldn't think it's a problem if everything else works, it is just somehow defaulting to uncommon.

Edited by Ugdhar

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.