90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

1.2.0 [1.20.5-1.20.6]

Changelog

This is the biggest release yet. The most prominent features are:

  • Displaying item stack data itself
  • Copying data of any item stack
  • JSON formatting

and more.

Note: Your current configs will be reset when upgrading to this release.

Additions

Formatting

  • Added JSON formatting

Copying

  • Added the ability to copy data of any item stack
  • This includes:
    • Component values
    • Item stack data
      • Which is exactly the same as using /data get on the item stack
    • Give command
      • Yielding the exact item represented by the item stack

Tooltips

  • The item stack data itself can now be displayed instead of individual components
  • Added more controls for navigating individual components:
    • UP, LEFT for the previous component
    • DOWN, RIGHT for the next component
    • HOME, END for either the first or last component
    • ALT, SHIFT + ALT is unchanged

Configs

  • Added a bunch of new configs
  • This includes:
    • Purpose: What will be displayed
      • Components (default)
      • Item Stack
    • Components: Which components will be displayed
      • All (default)
      • Default
      • Changes
    • Formatting: What formatting to use
      • SNBT (default)
      • JSON
      • Object
    • Colored Formatting: Whether formatted data will be colored
      • On (default)
      • Off
    • Copy: What will be copied when pressing CTRL + C
      • Component Value (default)
      • Item Stack
      • Give Command
      • Disabled
    • Prepend Slash: Whether to add a / in front of the copied give command
      • On (default)
      • Off
    • Include Count: Whether to include the item stack count in the copied give command
      • On
      • Off (default)
    • Success Notification: Whether to notify about successful copy actions
      • On (default)
      • Off

Keybindings

  • Added keybindings for cycling various enum configs
    • These are unbound by default

Notifications

  • Added toast notifications for several events
  • This includes:
    • Copying anything (can be disabled)
    • Cycling enum configs with keybindings

Changes

Formatting

  • Renamed "Class" formatter to "Object" formatter
  • Internal (non-encoded) components will now be formatted as {} when using SNBT formatting
  • Object formatting now also supports colored formatting

Tooltips

  • Removed components will now be listed at the bottom of the section instead of the top
  • Removed components can now also be selected, displaying the value that would've been there
  • When a formatting error occurs with Object formatting, it will no longer fallback to using zero indentation

Configs

  • Reworked the config screen
    • Configs that don't apply with other configs currently set will now be grayed out
  • Changed the way configs are de-/serialized
    • Configs within the config file will now follow a hierarchical order
    • Enum configs are now snake case
    • Integer config values that are, for some reason, out of range will now be reset to their default value instead of clamping it
  • Renamed some old configs
    • "Indent Size" becomes "Indentation"
    • "Mode" becomes "Formatting"
  • The "Changed Components" config was being removed in favor of the "Components" enum config

Bug fixes

  • Data was previously not being displayed when the item stack had the minecraft:hide_tooltip component
  • Object formatter didn't indent on () which was causing slight misalignments for certain components
  • Pressing J (or any other bound key) very rapidly didn't open the config screen

Dependencies

Files

componentviewer-fabric-1.2.0+1.20.6.jar(106.68 KiB) Primary Download

Project members

fixyldev

Owner

Details

Licensed MIT
Published 9 months ago
Updated 5 days ago