Can't add page to the book

  • 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 community!

    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.

Ten_Byte

Member
Jun 22, 2021
1
0
1
I just want to open a book with multiple pages
but I can't.

Code:
Command /Testbook:
    Trigger:
        set {_BOOK} to a new book
        add page "Test" to {_BOOK}
        set {_COMP} to a new text component with "Test"
        add text component {_COMP} to book {_BOOK}
        open book {_BOOK} to player
Error: 'page "Test" can't be added to {_BOOK} because the former is not an object'

I have no idea what I did wrong.
 
Status
Not open for further replies.