Inventory Module
Overview
The inventory module allows you to create customizable and professional user interfaces for Lunar Client users.
- Add custom NBT tags to items to control how users interact with them on click.
- Ability to make items unclickable. (Cancels the event client-side)
- Ability to open URLs. (Respects chat privacy settings)
- Ability to suggest & run commands. (Handled client-side)
- Ability to copy to clipboard.
- Ability to hide item tooltips.
- Ability to hide slot highlighting.
This module is disabled by default, if you wish to use this module you will need to enable it in config.yml
.
Integration
Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.
Unclickable Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:stone",Count:1b,components:{"minecraft:custom_name":"UNCLICKABLE","minecraft:custom_data":{lunar:{unclickable:true}}}}}
Copy To Clipboard Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:paper",Count:1b,components:{"minecraft:custom_name":"COPY TO CLIPBOARD","minecraft:custom_data":{lunar:{unclickable:true,copyToClipboard:"lunarclient.com"}}}}}
Open URL Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:torch",Count:1b,components:{"minecraft:custom_name":"OPEN URL","minecraft:custom_data":{lunar:{unclickable:true,openUrl:"https://lunarclient.com"}}}}}
Suggest Command Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:book",Count:1b,components:{"minecraft:custom_name":"SUGGEST COMMAND","minecraft:custom_data":{lunar:{unclickable:true,suggestCommand:"/apollo"}}}}}
Run Command Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:writable_book",Count:1b,components:{"minecraft:custom_name":"RUN COMMAND","minecraft:custom_data":{lunar:{unclickable:true,runCommand:"/apollo"}}}}}
Hide Item Tooltip Item
/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 Item
/summon item ~ ~1 ~ {Item:{id:"minecraft:dirt",Count:1b,components:{"minecraft:custom_name":"HIDE SLOT HIGHTLIGHT","minecraft:custom_data":{lunar:{unclickable:true,hideSlotHighlight:true}}}}}