This is a minor patch that adds 1.21 support.
Additions
- Components that have been removed using the new
!
prefix will now be displayed as such whenComponent Changes
is enabled.- They will be listed at the top of the section, indicated by a strikethrough formatting.
Changes
- The config
Colored SNBT
is now enabled by default.
This is a major release introducing configs and a new SNBT representation for component values, which is the same as used for /data get
.
Additions
- Added SNBT mode:
- Component values can now be displayed using an SNBT representation.
- This behavior is the same as
/data get
.
- New configs:
- Mode:
- Can be
SNBT
orClass
. - Defaults to
SNBT
. - Specifies the representation of component values.
- Can be
- Display:
- Can be
Never
,Hold
orAlways
. - Defaults to
Hold
. - Specifies when components will be displayed.
- Can be
- Indent Size:
- Defaults to
4
. - The amount of spaces used for indentation when formatting.
- A value of zero means no formatting will occur.
- Defaults to
- Colored SNBT:
- Defaults to
false
. - Determines whether component values in SNBT mode should be colored.
- Defaults to
- Component Changes:
- Defaults to
false
. - Only non-default (changed) components will be displayed.
- Defaults to
- Component Values:
- Defaults to
true
. - Determines if component values should be displayed alongside component types.
- Defaults to
- Advanced Tooltips:
- Defaults to
false
. - Determines whether the debug option
Advanced tooltips
must be enabled to display components.
- Defaults to
- Mode:
- Configs can be accessed by pressing
J
on the keyboard or navigating through ModMenu.- This keybind can be changed in the regular keybind settings of Minecraft.
- Configs are stored in a
componentviewer-config.json
file inside the config directory.
Changes
- SNBT mode is now the default mode instead of Class mode.
Bug fixes
- Fixed an issue where the keyword
pattern
in Class mode is not treated as a beginning string. - Fixed an issue where component type indentation was one space too large if only one component exists.
- NBTComponents like
minecraft:custom_data
,minecraft:entity_data
, etc. are now correctly formatted in Class mode.
This is a minor patch that made some changes to the component value formatter under the hood.
Additions
- Added indent caching.
- Added a fallback to non-formatted component values if formatting goes wrong.
Bug fixes
- Fixed most issues related to formatting of
minecraft:item_name
,minecraft:custom_name
andminecraft:lore
components.- Characters like
[
,]
,"
,'
,,
and;
will no longer break the formatting.
- Characters like
Known issues
- Certain character combinations with
{
or}
as item names or item lores might still cause formatting issues.- This issue is not resolvable with the current implementation of how "Component Viewer" gathers component value information.