Skip to main content

Module: echo.send_custom

Overview

Module

This module provides /send-custom command.

It allows defining a custom text with automatic pagination.

Then it can be sent as message or as book to a player.

Color Boxes

Tip

◉ Ensure the players are allowed to use /command-callback command.

The /command-callback command is a fuji command, used for click event.

In vanilla Minecraft, if a player has no permission to use that command, the client will says Unknown Command error.

Example

◉ Download the example custom text.

You can download the example-custom-text.txt file.

It is in https://github.com/fuji-fabric/fuji/blob/dev/.github/files/example-custom-text.txt

Example

◉ Send a custom text as a book.

Issue: /send-custom as-book Alice guide --author "alice" --title "<rb>The Guide" --giveBook true --openBook true

◉ Send a custom text as a message.

Issue: /send-custom as-message Alice guide

Commands

Command
  • Command Syntax: /send-custom as-book <ServerPlayerEntity player> <CustomTextName customTextName> [Boolean openBook] [Boolean giveBook] [String title] [String author]

  • Document: Send the custom text as a book.

  • Can be executed by console: true

  • Required Level Permission: 4

  • Required String Permission: null

Command
  • Command Syntax: /send-custom as-message <ServerPlayerEntity player> <CustomTextName name>

  • Document: Send the custom text as a message.

  • Can be executed by console: true

  • Required Level Permission: 4

  • Required String Permission: null

Argument Types

Argument Type
  • Argument Type Name: [custom-text-name]
  • Argument Type Class: [CustomTextName]