Force Open 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 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.

feerko

Member
Feb 19, 2017
70
1
0
28
Hello, I am looking for a way to force open book. There is a possibility to do it?

Code:
command /openBook:
    trigger:
        set {_item} to slot player's current hotbar slot of player
        set slot player's current hotbar slot of player to a written book
        add page "&4&l&m-&a&l*&4&l&m__ &2&l&nSkellett&4&l&m __&a&l*&4&l&m-&r%nl%%nl%%nl%%nl%%nl%%nl%%nl%%nl%%nl%%nl%           &dHot" to player's tool
        open book player's tool to player
        set slot player's current hotbar slot of player to {_item}

zrzut-ekranu-2017-02-22-o-19-09-29-png.370
 
Last edited:
  • Like
Reactions: EMEKTAR
You can do this with Skellett

code_language.skript:
command /test:
    trigger:
        set {_item} to player's tool
        set player's tool to {book}
        open book player's tool to player
        set player's tool to {_item}
The code you provided does not work? Errors? Do you have the latest Skellett installed?
 
Status
Not open for further replies.