Fluid name in machines and JEI

Started by Tomtaru on

Topic category: Help with modding (Java Edition)

Last seen on 13:48, 10. Jul 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Fluid name in machines and JEI

How do I make the display name of my fluid in JEI not be all code like?

Right now it is displayed as "fluid_type.tmted.tomato_sauce" instead of "Tomato Sauce"

Last seen on 01:09, 20. Jun 2024
Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
HelloI just had the similar…
Mon, 06/17/2024 - 00:47

Hello
I just had the similar problem and I find a solution !
You create a texture pack with a "en_us.json" file in the "lang" directory
an in int you paste this in your case : 
{
   "fluid_type.tmted.tomato_sauce" : "Tomato Sauce"
   "over_fluid.name_in_jei" : "Name you want"
}
Then simply add the resource pack (you can force load it if your creating a mod-pack).
Also make a file for all languages you want to.

Last seen on 13:48, 10. Jul 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I'll try it out…
Tue, 07/09/2024 - 16:36

Thanks! I'll try it out. maybe the lang file can be included in the mod?

(found your reply after searching for the issue again, having completely forgotten I had posted the question XD)

Last seen on 13:48, 10. Jul 2024
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
There is a lang file…
Tue, 07/09/2024 - 16:53

There is a lang file included but it is missing the entry for "fluid_type.MOD_ID.FLUID", adding those manually by editing the textfile and repacking it with 7zip/winrar slves the issue!