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.

Matrix

Members
  • Joined

  • Last visited

  1. Hey, I have created a Forge Mod, that uses a config file and the Configuration method from minecraftforge. The mod is client-side only, it has some visual features. The .cfg file exists and has every variable in it, almost correct. Now to the problem: Some of the variables are Lists of Integers and Booleans. But I can't save the variables in the file a proper way. A normal method call would be: this.config.get("category", "key", new Boolean[7]).set(this.key); The output in the config file would be something like: category { B:key< True True False > } The syntax of the IDE (IntelliJ) seams to be correct, it suggests to use (String, String, boolean[], optional others) but it only let me do: this.config.get("category", "key", new String[7]).set(this.key); A list of Strings works without a problem and but thats not what I want. I can only use Integers, Doubles and Booleans if they are not lists. Does someone has a solution or a guess? And before you say that I should use a toml, json, yaml... file: I've already integrated everything and it would be a lot of work. Besides that its the way you should do it according to Forge: Thanks, Matrix
  2. Matrix changed their profile photo
  3. Hey, i'm currently developing a Minecraft PvP Mod with a bunch of features. Included are features like Hitbox colors. You should be able to modify the hitbox for each entity group individually. Now to the problem: I want to create a dropdown menu where you can select the group. There are 4 Sliders and 2 Buttons for each group so it would be too much for one site. I want to avoid a scrollable GUI because a dropdown menu would look cleaner. I've seen a option to create a "GuiListButton" and a "GuiPageButtonList" but idk what they are doing and how to use them. I already thought of a selection without scrolling (multiple-choice, implemented myself) or a slider to select the group but i'd prefer a dropdown menu. I've already seen some in a few mods but I don't remember where, else I could take a look at the code. It also helps to provide the name of a mod that includes such a feature. (Btw it should be a mod that uses Forge "Buttons", not self implemented ones, so don't include Badlion, Lunar or Labymod pls) Thanks for any help Matrix

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.