Beta
Private
constructorOptional
Readonly
authorThis property can't be read in early-execution mode.
Readonly
contentsThe contents of pages in the book that are in string format. Entries not in string format will be undefined.
This property can't be read in early-execution mode.
Readonly
isThis property can't be read in early-execution mode.
Readonly
isReturns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
This property can't be read in early-execution mode.
Readonly
pageThis property can't be read in early-execution mode.
Readonly
rawThe contents of pages in the book that are in RawMessage format. Entries not in RawMessage format will be undefined.
This property can't be read in early-execution mode.
Optional
Readonly
titleThis property can't be read in early-execution mode.
Readonly
typeThis property can't be read in early-execution mode.
Static
Readonly
componentThe index of the page.
The content of the page if a valid index is provided and it is in string format, otherwise returns undefined.
This function can't be called in early-execution mode.
The index of the page.
The content of the page if a valid index is provided and it is in RawMessage format, otherwise returns undefined.
Gets the RawMessage format content of a page for a given index.
This function can't be called in early-execution mode.
The index of the page.
The content to set for the page. Can be a single string or RawMessage or an array of strings and/or RawMessages
Inserts a page at a given index. Empty pages will be created if the index is greater than the current book size. Pages have a maximum limit of 256 characters for strings as well as the JSON representation of a RawMessage. Books have a maximum limit of 50 pages.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
The index of the page.
Removes a page at a given index. Existing pages following this page will be moved backward to fill the empty space.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
An array of each page's contents. Each page can be a single string or RawMessage or an array of strings and/or RawMessages.
Sets the contents of the book's pages. Pre-existing pages will be cleared. Pages have a maximum limit of 256 characters for strings as well as the JSON representation of a RawMessage. Books have a maximum limit of 50 pages.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
The index of the page.
The content to set for the page. Can be a single string or RawMessage or an array of strings and/or RawMessages
Sets or creates the content of a specific page. Empty pages will be created if the index is greater than the current book size. Pages have a maximum limit of 256 characters for strings as well as the JSON representation of a RawMessage. Books have a maximum limit of 50 pages.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
The title to give the book.
The name of the book's author.
Signs a book giving it a title and author name. Once signed players can no longer directly edit the book. Titles have a maximum character limit of 16.
This function can't be called in read-only mode.
This function can't be called in early-execution mode.
When present on an item, this item is a book item. Can access and modify the contents of the book and sign it.