Skip to content

Conversation

@RuiXuqi
Copy link

@RuiXuqi RuiXuqi commented Aug 27, 2025

image

This PR replaces the old Forge mod list menu with a new design from MrCrayfish's Catalogue mod, which follows MIT llicense.

The menu supports:

  • Customized background (must be a 512x256 PNG file)
  • Customized icon (a square PNG file, an item, or a block with metadata)
  • Customized banner (the old logoFile key in mcmod.info; it will be automatically set as the icon if it is square)

Mod developers only need to add new keys in JSON format in the mcmod.info file. The new keys are as follows:

  • iconFile: a string, should point to a square PNG file.
  • iconItem: a string, should be in the format "minecraft:stone". Metadata is allowed. This will not be applied if iconFile is valid.
  • backgroundFile: a string, should point to a 512x256 PNG file. It will be the mod's background.
  • license: a string, will be displayed at the bottom of the mod info page.
  • issueTrackerUrl: a string, should be a link. The "Submit Bug" button will open it when clicked.

The menu can limit the size of logos(banners) and icons, which is configured disabled by default. Also it has the ability to perfrom filters and search for a mod's dependencies and dependants. The two lists of libraries(will be hidden by default and be displayed grey in mod list) and ignored dependencies are configurable too. There is also a favourite system, allowing you to pin mods and put them in the top of the list.

The empty keys in mcmod.info will not be displayed in the info side.

RuiXuqi added 25 commits August 19, 2025 19:56
Unnecessary at all. But it is cool!
So bad. But it will help back port works
MrCrayfish/Catalogue@4f71627
📦 Added missing background when no texture provided
📦 Icon will now be used if no banner texture is available
🎨 Changed missing banner
📦 Improved design
✨ Last search is now remembered when returning to menu
MrCrayfish/Catalogue@6260949
MrCrayfish/Catalogue@37db432
MrCrayfish/Catalogue@c22fd3d
MrCrayfish/Catalogue@6b11e0f
MrCrayfish/Catalogue@3fcc8ed

Also make the test mod a dummy. It is not loaded at all.
✨ Added tooltip to show numbers of mods/libraries
📦 Show "no mods" label when mod list is empty
@RuiXuqi
Copy link
Author

RuiXuqi commented Aug 27, 2025

The dummy catalogue mod should be removed since it is not a real mod. However, I haven't decided what to put in the upper-left corner yet. It is a button with link to the original Catalogue mod now.

@RuiXuqi
Copy link
Author

RuiXuqi commented Aug 27, 2025

Some features like sorting from A-Z or Z-A and favourite system are not backported yet. Just because they need to be configured through a button list, which depends on the new layout system in modern minecraft.

@kappa-maintainer
Copy link
Collaborator

I see some resources you added look like come from Mojang, are they?

@RuiXuqi
Copy link
Author

RuiXuqi commented Aug 27, 2025

I see some resources you added look like come from Mojang, are they?

Only the minecraft title does

Move all the resources and java files to a separate path
Load the dummy Catalogue mod, remove links
@kappa-maintainer
Copy link
Collaborator

为啥语言文件里模组设置一项删了,然后单独加了catalogue的语言文件
全部放forge不好吗

@RuiXuqi
Copy link
Author

RuiXuqi commented Dec 20, 2025

为啥语言文件里模组设置一项删了,然后单独加了catalogue的语言文件 全部放forge不好吗

语言文件是因为 Catalogue 有单独的版本,便于同步内容,不然每次还得一次次改资源路径,图片之类的也同理。(当然 PR 合并之后就不需要了)
模组设置项是顺手删的,因为它对应被移除的 GuiIngameModOptions,Forge 做一半跑路了,删了这个 Gui,并且把按钮打开项改成了 GuiModList,结果字还留着,所以我把这个 key 删了,对应的 GuiIngameMenu 里的按钮文字也改成了和主菜单一样的“模组”,并且给它加上了更新图标提示。

@Desoroxxx
Copy link
Contributor

image

Not my full review, but I just wanted to quickly note this:
I don't understand why the modid is so unreadable, I know that Catalogue does this, but I think it should be formatted just like the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants