Skip to main content

Module: chat.display

Overview​

Module

This module allows a player to show things to others.

The thing can be:

  1. Their main-hand item.

  2. Their inventory.

  3. Their ender chest.

Color Boxes​

Note

◉ Advanced server-side show-case mod.

A new mod is released in https://modrinth.com/mod/showcase

You may want to check it!

Tip

◉ Integrate this module with other chat-related mods.

➜ Integrate via the placeholder way.

You can use chat.replace module.

That module can be used to define a chat text replacement.

To replace the chat text from item to the %fuji:item% placeholder.

To replace the chat text from inv to the %fuji:inv% placeholder.

To replace the chat text from ender to the %fuji:ender% placeholder.

➜ Integrate via the command way.

You can use chat.trigger module.

That module can be used to define a chat string trigger.

To execute the /run as fake-op %player:name% chat display item command, when the trigger is fired.

To execute the /run as fake-op %player:name% chat display inv command, when the trigger is fired.

To execute the /run as fake-op %player:name% chat display ender command, when the trigger is fired.

Configurations​

The following JSON content is provided for reference only. It must NOT be copied directly into the configuration directory, as it does not represent valid JSON syntax.

Config
  • File Name: config.json
  • File Content:
Click to see the default content...
config/fuji/modules/chat/display/config.json
{
/* The expiration duration for a created `display`. */
"expiration_duration_seconds": 3600
}

Commands​

Command
  • Command Syntax: /chat display ender

  • Document: Show your enderchest to others.

  • Can be executed by console: false

  • Required Level Permission: 0

Command
  • Command Syntax: /chat display inv

  • Document: Show your inventory to others.

  • Can be executed by console: false

  • Required Level Permission: 0

Command
  • Command Syntax: /chat display item

  • Document: Show your item in main hand to others.

  • Can be executed by console: false

  • Required Level Permission: 0

Placeholders​

Placeholder
  • Placeholder Name: fuji:item
  • Document: Create a item display and return the clickable text to open that display.
Placeholder
  • Placeholder Name: fuji:inv
  • Document: Create a inventory display and return the clickable text to open that display.
Placeholder
  • Placeholder Name: fuji:ender
  • Document: Create a enderchest display and return the clickable text to open that display.