Skip to content

feat: Better debug information (AAInfo) pt.2#525

Merged
kappa-maintainer merged 4 commits intoCleanroomMC:mainfrom
Gebardensprache:aainfo
Mar 8, 2026
Merged

feat: Better debug information (AAInfo) pt.2#525
kappa-maintainer merged 4 commits intoCleanroomMC:mainfrom
Gebardensprache:aainfo

Conversation

@Gebardensprache
Copy link
Contributor

In Roadmap

  • furnace fuel burn time display
  • hold SHIFT to display advanced info (ore dicts, unlocalized name)
  • hold CTRL to display NBT list
image

I'm sorry I dont know how to use git.

- furnace fuel burn time display
- hold SHIFT to display advanced info (ore dicts, unlocalized name)
- hold CTRL to display NBT list
- multilingual support (only enus, jajp, zhcn, zhtw)
Copilot AI review requested due to automatic review settings March 7, 2026 07:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds additional item tooltip debug information to support the AAInfo roadmap items (burn time display + modifier-key-gated advanced details), plus localization keys and a config knob to cap NBT tooltip length.

Changes:

  • Add localized tooltip strings for burn time, advanced info (SHIFT), and NBT listing (CTRL) across multiple locales.
  • Add a new early config value to cap the displayed NBT string length in tooltips.
  • Extend ItemStack tooltip generation to show burn time, ore dictionary IDs, translation key, and (optionally) truncated NBT.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/resources/assets/forge/lang/zh_tw.lang Adds Traditional Chinese translations for the new tooltip keys.
src/main/resources/assets/forge/lang/zh_cn.lang Adds Simplified Chinese translations for the new tooltip keys.
src/main/resources/assets/forge/lang/ru_ru.lang Adds new tooltip keys (currently English text).
src/main/resources/assets/forge/lang/ko_kr.lang Adds new tooltip keys (currently English text).
src/main/resources/assets/forge/lang/ja_jp.lang Adds Japanese translations for the new tooltip keys.
src/main/resources/assets/forge/lang/fr_fr.lang Adds new tooltip keys (currently English text).
src/main/resources/assets/forge/lang/es_es.lang Adds new tooltip keys (currently English text).
src/main/resources/assets/forge/lang/en_us.lang Adds the canonical English strings for the new tooltip keys.
src/main/resources/assets/forge/lang/en_pt.lang Adds new tooltip keys (but not in pirate style used by this locale).
src/main/java/net/minecraftforge/common/ForgeEarlyConfig.java Introduces MAX_TOOLTIP_NBT_LIST_LENGTH to cap tooltip NBT output.
patches/minecraft/net/minecraft/item/ItemStack.java.patch Implements burn time + SHIFT/CTRL-gated advanced tooltip information and NBT display.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@kappa-maintainer
Copy link
Collaborator

Looks good to me

@kappa-maintainer
Copy link
Collaborator

Wait
The new config option is better placed in normal forge.cfg (not early at all)
Check ForgeModContainer class

@kappa-maintainer kappa-maintainer merged commit 9bff9c7 into CleanroomMC:main Mar 8, 2026
1 check passed
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.

3 participants