Open Book - MoSadie/EffectMC GitHub Wiki
Description
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.
Configuration Options
- 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.
Example Configuration
In-Game Experience
Advanced: HTTP Request Information
- Method: POST
- Endpoint:
/openbook
- Parameters:
device
: Device ID (String)
- Request Body: The Book JSON (as described above) (String)