Skip to content

Conversation

@ItsNature
Copy link
Collaborator

@ItsNature ItsNature commented Jul 8, 2025

Overview

Description:
Improve the Inventory Module by adding support for two new NBT tags.

Documentation Preview

Changes:
Introduced two additional NBT tags under the lunar compound:

  • hideItemTooltip: Prevents the item tooltip from displaying when hovering over the item.
  • hideSlotHighlight: Disables the slot highlight when the item is when hovering over the item.

Command Example

Hide Item Tooltip

/summon item ~ ~1 ~ {Item:{id:"minecraft:sponge",Count:1b,components:{\"minecraft:custom_name\":\"HIDE ITEM TOOLTIP\",\"minecraft:custom_data\":{lunar:{unclickable:true,hideItemTooltip:true}}}}}

Hide Slot Highlight

/summon item ~ ~1 ~ {Item:{id:"minecraft:dirt",Count:1b,components:{\"minecraft:custom_name\":\"HIDE SLOT HIGHTLIGHT\",\"minecraft:custom_data\":{lunar:{unclickable:true,hideSlotHighlight:true}}}}}

Code Example

Item Creation (Using ItemUtil)

ItemStack hideTooltipItem = ItemUtil.itemWithName(
    Material.SPONGE,
    ChatColor.GRAY.toString() + ChatColor.BOLD + "HIDE ITEM TOOLTIP"
);
hideTooltipItem = ItemUtil.addTag(hideTooltipItem, "unclickable", true);
inventory.setItem(31, ItemUtil.addTag(hideTooltipItem, "hideItemTooltip", true));

ItemStack hideHighlightItem = ItemUtil.itemWithName(
    Material.DIRT,
    ChatColor.DARK_GRAY.toString() + ChatColor.BOLD + "HIDE SLOT HIGHTLIGHT"
);
hideHighlightItem = ItemUtil.addTag(hideHighlightItem, "unclickable", true);
inventory.setItem(33, ItemUtil.addTag(hideHighlightItem, "hideSlotHighlight", true));

Review Request Checklist

  • Your code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have tested this change myself. (If applicable)
  • I have made corresponding changes to the documentation. (If applicable)
  • The branch name follows the projects naming conventions. (e.g. feature/add-module & bugfix/fix-issue)

@ItsNature ItsNature requested a review from TrentinTheKid July 8, 2025 14:21
@ItsNature ItsNature added type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition labels Jul 8, 2025
@ItsNature ItsNature mentioned this pull request Jul 23, 2025
@ItsNature ItsNature merged commit d6cc813 into version/1.1.9 Aug 16, 2025
2 of 3 checks passed
@ItsNature ItsNature deleted the feature/inventory-module-improvements branch August 16, 2025 08:24
ItsNature added a commit that referenced this pull request Sep 3, 2025
* Deploy as 1.1.9-SNAPSHOT

* Glow Module - Add Scoreborard Team Color Fallback (#209)

* Add documentation & API method for scoreboard color fallback

* Add info callout for scoreboard team color

* chore: update to new Maven repo (#212)

* chore: update to new Maven repo

* fix: use specific proto version

* docs: update apollo-protos versions

---------

Co-authored-by: ItsNature <[email protected]>

* Update summon command examples (#211)

* Improvement - Include the packet sender in Packet Enrichment Events (#220)

* Add sender to Packet Enrichment events

* Add the sender field to the event documentation

* Title Module - Add a option to clear the title on server switch (#223)

* Add `CLEAR_TITLE_ON_SERVER_SWITCH` option to the Title Module

* Add example docs

* Add `clearOnServerSwitch` parameter to the Title example command

* Update format

* Add documentation & code example for new inventory module tags (#217)

* Sync LunarClient Mods & Options (#226)

* Sync LunarClient Mods & Options

* Update version tags to 1.1.9

---------

Co-authored-by: LunarClient Bot <[email protected]>

* Delete deploy script (#224)

* example: restructure gradle modules (#228)

* Feature - User Metadata (#225)

* Bukkit and bungee impl

* finish bungee impl

* Velocity & Folia impl

* Remove debug

* fix brand collecting on bukkit & bungee

* Bump to 1.1.9 (#227)

---------

Co-authored-by: Colin McDonald <[email protected]>
Co-authored-by: LunarClient Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Documentation Documentation improvement or issue type: Enhancement Feature improvement or addition

Development

Successfully merging this pull request may close these issues.

4 participants