Book - Pages (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 1.8.0

Syntax

page %number% of [book] %itemtype%

Description

Allows you to set pages in a book to text components. You can also retrieve the pages. Based on testing, a book's author/title needs to be set AFTER setting the pages, why? I have no idea!

Examples

set {_i} to a written book
set {_a} to text component of "RULES"
set hover event of {_a} to hover event showing "make sure to read our rules"
set click event of {_a} to click event to run command "/rules"
set page 1 of book {_i} to {_a}
set book author of {_i} to "Bob"
set book title of {_i} to "MyBook"
give player 1 of {_i}

View source