1. 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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Addon Skellett - The beast addon! 2.0.7

All your Skript needs in one addon!

  1. Interactive books and 1.12 actionbars!

    LimeGlass
    Added:
    - Json/Interactive clickable books
    - Expression to get a blank book
    - Added indexes of list variable

    Fixed:
    - Actionbars not working in 1.12
    - Fixed 3 Citizen 1.8 issues (Released in 1.9.3 on github)

    1.12 todo list:
    - Add 1.12 support for the titles
    - Add 1.12 support for tablist
    - Add 1.12 support for removing of arrows in player

    Todo with text components:
    - Add text component support for Bensku's json
    - Add text component support for SkellettProxy

    [​IMG]

    Syntax:
    Code (Skript):
    1. #Expressions:
    2.  
    3.     #Grab a new written book (Because Skript's is different)
    4.     [a] new [written] book
    5.  
    6. #TextComponent stuff
    7.  
    8.     #Create a new text component
    9.     [a] [new] text component [with [text]] %strings%
    10.  
    11.     #Add hover event stuff to the text component (When a player hovers their mouse over it)
    12.     add hover event with action %hovereventaction% (and|with) [(value|text)] %string% to [text component] %textcomponent%
    13.  
    14.     #Add clickable event stuff to the text component (When a player clicks the text)
    15.     add click event with action %clickeventaction% (and|with|to) [(execute|text|link)]  %string% to [text component] %textcomponent%
    16.  
    17.     #Add a page with the text component to a book
    18.     add text component %textcomponent% to [book] %itemstack%
    19.  
    20.     #Message the json text component (tellraw) to the player
    21.     message text component %textcomponent% to %players%
    22.  
    23.     #Works from 1.8-1.12 as tested
    Example script:
    Code (Skript):
    1. command /book <integer>:
    2.     trigger:
    3.         set {_book} to a new book
    4.         #SUGGEST_COMMAND and OPEN_FILE doesn't work in books. It is a chat only feature. Which is coming soon!
    5.         if arg 1 is 1:
    6.             set {_component} to a new text component with "Hello world!%nl%%nl%&5&lExample %arg 1%!"
    7.             add hover event with action SHOW_TEXT with text "&5This message is a hover!" to text component {_component}
    8.             add text component {_component} to book {_book}
    9.         else if arg 1 is 2:
    10.             set {_component} to a new text component with "&l&nExample 2!%nl%%nl%%nl%%nl%%nl%&4Working!"
    11.             #If the slash isn't inserted in the execute string. It will make them chat.
    12.             #WARNING: Entering color symbols in the execute string, causes the player to crash.
    13.             add click event with action RUN_COMMAND with execute "/example" to text component {_component}
    14.             add hover event with action SHOW_TEXT with text "&3&oClick me to execute chat or command" to text component {_component}
    15.             add text component {_component} to book {_book}
    16.         else if arg 1 is 3:
    17.             add page "Testing 1" to {_book}
    18.             add page "&1Testing 2" to {_book}
    19.             set {_component} to a new text component with "&3&l&n&nExample 3!%nl%%nl%&4Working! %all players%"
    20.             add click event with action CHANGE_PAGE to "2" to text component {_component}
    21.             add hover event with action SHOW_TEXT with text "&4&kgewhbewgjbjehbf%nl%&r&5Click me%nl%to go back a page" to text component {_component}
    22.             add text component {_component} to book {_book}
    23.             add page "&6Testing 3" to {_book}
    24.         else if arg 1 is 4:
    25.             set {_component} to a new text component with "%nl%%nl%%nl%%nl%%nl%     &5&l&nClick me link!%nl%&rLeave a 5 star review!"
    26.             add click event with action OPEN_URL with link "https://forums.skunity.com/threads/skellett.39/" to text component {_component}
    27.             add hover event with action SHOW_TEXT with text "&5&lClick me to open Skellett.%nl%&5The beast addon!" to text component {_component}
    28.             add text component {_component} to book {_book}
    29.             #message text component {_component} to player
    30.         open book {_book} to player
    Setting multiple text components
    Code (Skript):
    1. set {_book} to a new written book
    2. set {_this} to a text component with text "Click below to vanish"
    3. add hover event SHOW_TEXT with "Hover msg" to {_this}
    4. add {_this} to {_text::*}
    5. set {_this} to a text component with text "Click here"
    6. add click event RUN_COMMAND with execute "/command" to {_this}
    7. add hover event SHOW_TEXT with "Hover msg 2" to {_this}
    8. add {_this} to {_text::*}
    9. add text component {_text::*} to book {_book}
    10. open book {_book} to player

    As always enjoy :emoji_grinning:
Return to update list...