Module: echo.send_custom
Overview
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
◉ 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.
◉ 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
◉ 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 Syntax:
/send-custom as-book <ServerPlayerEntity player> <CustomTextName customTextName> [Boolean openBook] [Boolean giveBook] [String title] [String author]
-
Document: Send the
custom text
as abook
. -
Can be executed by console:
true
-
Required Level Permission:
4
-
Required String Permission:
null
-
Command Syntax:
/send-custom as-message <ServerPlayerEntity player> <CustomTextName name>
-
Document: Send the
custom text
as amessage
. -
Can be executed by console:
true
-
Required Level Permission:
4
-
Required String Permission:
null
Argument Types
- Argument Type Name:
[custom-text-name]
- Argument Type Class:
[CustomTextName]