Apollo
Developers
Modules
Inventory

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.

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,tag:{display:{Name:"§c§lUNCLICKABLE"},lunar:{unclickable:true}}}}

Copy To Clipboard Item

/summon item ~ ~1 ~ {Item:{id:"minecraft:paper",Count:1b,tag:{display:{Name:"§9§lCOPY TO CLIPBOARD"},lunar:{unclickable:true,copyToClipboard:"lunarclient.com"}}}}

Open URL Item

/summon item ~ ~1 ~ {Item:{id:"minecraft:torch",Count:1b,tag:{display:{Name:"§6§lOPEN URL"},lunar:{unclickable:true,openUrl:"https://lunarclient.com"}}}}

Suggest Command Item

/summon item ~ ~1 ~ {Item:{id:"minecraft:book",Count:1b,tag:{display:{Name:"§2§lSUGGEST COMMAND"},lunar:{unclickable:true,suggestCommand:"/apollo"}}}}

Run Command Item

/summon item ~ ~1 ~ {Item:{id:"minecraft:writable_book",Count:1b,tag:{display:{Name:"§d§lRUN COMMAND"},lunar:{unclickable:true,runCommand:"/apollo"}}}}