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.

Featured Replies

Posted

Hey, I've made my first mod, and I'd like to ask a question.

 

I've read in a page, that loading from en_US.lang which is in the assets/modname/lang folder, is done by using I18N.getString("name.of.text"), which should produce "test", if the lang file contains "name.of.text=test". However, it's not working for me. I'm trying to display this text in a GUI, by adding a centered string to it, but nothing appears. Do I have to register my lang files anywhere in an initialization event? I'm already loading a block's name from it and it's working like a charm, but not with GUI elements.

 

Here's how I try it in the initGui method:

this.buttonList.add(this.done = new GuiButton(0,this.width/2 - 110, this.height/4+30,90,20,I18N.getString("testgui.okbutton")));

 

And I have 2 lang files, an english and a hungarian. Both of them contains "testgui.okbutton=OK", but neither of them loads - yes, I tried to change language ingame to see if that's the problem, but still no luck.

  • Author

The server is running on 1.6.4, because some mods we are using are not being updated to 1.7 or above, so I have to stick at 1.6.4.

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.