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.

[1.14.4] Need Help with Enchantment Name

Featured Replies

Posted

Hello, I am new to modding on Minecraft and I'm having an issue with my localization. I have a pack.mcmeta file that is using v4, I have an en_us.json that is properly formatted, and I have a registered enchantment. I have no idea why the name is still showing up the way it is. Any help with this would be greatly appreciated. Will also take tips on code style and anything else you see. Thanks in advance.

 

Here's a link to the github: https://github.com/TheMysticalBard/LaunchMod

33 minutes ago, TheMysticalBard said:

I have no idea why the name is still showing up the way it is.

How is that?

 

Also, there is no resources/assets/launch/lang/en_us.json in that repository

 

*edit: another tip, include the gradle stuff in your repo so someone could build your mod by downloading the zip/cloning it. You can see what's included in mine if you're not sure what to include: https://github.com/Ugdhar/structest

Edited by Ugdhar

  • Author
10 minutes ago, Ugdhar said:

How is that?

 

Also, there is no resources/assets/launch/lang/en_us.json in that repository

 

*edit: another tip, include the gradle stuff in your repo so someone could build your mod by downloading the zip/cloning it. You can see what's included in mine if you're not sure what to include: https://github.com/Ugdhar/structest

Thanks for the version control tip!

 

It's currently showing up as "enchantment.launch.launch III" on items and books enchanted with it. I do have the json it just wasn't pushed to the repo, let me do that real quick as well.

  • Author
15 minutes ago, Ugdhar said:

How is that?

 

Also, there is no resources/assets/launch/lang/en_us.json in that repository

 

*edit: another tip, include the gradle stuff in your repo so someone could build your mod by downloading the zip/cloning it. You can see what's included in mine if you're not sure what to include: https://github.com/Ugdhar/structest

For some reason the en_us.json is included in the .gitignore Forge supplied.

 

Edit: It's because it's ignoring all things that have "launch" in them, which is the namespace I chose. Rip.

Edited by TheMysticalBard
Additional info

10 minutes ago, TheMysticalBard said:

For some reason the en_us.json is included in the .gitignore Forge supplied.

 

Edit: It's because it's ignoring all things that have "launch" in them, which is the namespace I chose. Rip.

Good catch figuring that out :) Yeah, I was thinking that, just hadn't mentioned it, that launch is probably not a great modid, it's somewhat generic. Not sure if that's causing the entire issue or not, but might be a place to start!

16 minutes ago, TheMysticalBard said:

It's currently showing up as "enchantment.launch.launch III"

in your en_us.lang:

Quote

"enchantment.enchantment.launch.launch" : "Launch"

They don't match up, change the json to match what is displayed (ignore the III I think) and see if that makes a difference.

  • Author
39 minutes ago, Ugdhar said:

in your en_us.lang:

They don't match up, change the json to match what is displayed (ignore the III I think) and see if that makes a difference.

Oh shoot I changed that back when my file structure was wrong and never changed that back. That will probably fix it.

 

Edit: That was it! Originally my assets/launch was instead assets.launch which looks exactly the same in IntelliJ. Once I fixed that it was correct and I just forgot to change the enchantment.enchantment back. Thanks for the help!

Edited by TheMysticalBard

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.