-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open Book
Display the written book reading screen with whatever text is desired. Book contents from online book generators are supported and there is an in-game command to export a held book for ease of writing.
To use an online book generator, copy the part of the give command that begins with {pages:[
to the closing }
. For example, for the command /give @p written_book{pages:['{"text":"This is the first page"}'],title:Title,author:MoSadie}
, the part to copy is {pages:['{"text":"This is the first page"}'],title:Title,author:MoSadie}
To use the in-game command, simply hold a signed, written book in your hand and run the command /effectmc exportbook
. The Book JSON for that book can then be found in the log file.
This effect can be triggered from any screen, including the main menu.
- Title (optional): An optional title to display on the key. Customize location and font using the T icon to the right of the text box.
- Minecraft IP (required): The address that the EffectMC mod is running on. (Example:
http://localhost:3000
) - Book JSON: The JSON representation of the NBT tags of the book to display. See above for how to find/generate this information.
- Method: POST
- Endpoint:
/openbook
- Parameters:
-
device
: Device ID (String)
-
- Request Body: The Book JSON (as described above) (String)
- Join Server
- Show Title
- Show Action Message
- Set Skin Layer
- Sent Chat Message
- Receive Chat Message
- Trigger Disconnect
- Play Sound
- Stop Sound
- Show Toast
- Open Book
- Narrate
- Load World
- Set Skin
- Open Screen
- Set FOV
- Show Chat
- Set POV
- Set GUI Scale
- Set Brightness/Gamma
- Set Gamemode
- Set Render Distance
- Rejoin
- Show Item Toast
- Set Volume