Solved Open book w/ text

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Vexio

Active Member
Jan 26, 2017
92
10
8
23
California
I'm trying to figure out if there is a syntax for Opening a book with specified text.
Example:
t6ovp.png


Help would be appreciated! Thanks
 
It's actually very simple. You can't do the click gui in books (Json) yet. I'm working on it using the Bungeecord API implanted in Spigot for it. I can say it's different.

Anyways here is the open book effect.


code_language.skript:
#Setting a variable to a written book or book and quill
set {book} to player's tool

#Then later use
open book {book} to player

You can also use a book in the syntax, but it's easier explaining it with variables.

Here are all the book syntax to edit and manipulate books

code_language.skript:
  Books:
  - book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [an] [book [meta]] author
  - '[the] [book[''s]] author of %itemstack%'
  - '%itemstack%''s [book] author'
  - '[the] [book[''s]] generation %itemstack%'
  - '%itemstack%''s [book] generation'
  - '[the] [book[''s]] page %number% (of|in) [book] %itemstack%'
  - '%itemstack%''s [book] page %number%'
  - '[the] [book[''s]] title of %itemstack%'
  - '%itemstack%''s [book] title'
  - book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [a] [book [meta]] title
  - add [a] page [with] [(text|data)] [%-string%] to [book] %itemstack%
  - '[(the|all)] [of] [the] [book] pages [(from|of)] [book] %itemstack%'
  - book %itemstack% (1¦(ha(s[n[']t]|ve)|contain[s])|2¦(do[es](n't| not) have| do[es](n't| not) contain)) [had] [a] [book [meta]] generation
  - open book %itemstack% to %player%
 
  • Like
Reactions: Vexio
Status
Not open for further replies.