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 TuSKe - Custom Enchantments, GUI Manager and more! 1.8.2

A Skript addon which brings custom things to help you to improve your scripts.

  1. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Sadly, currently not possible. I'm planning to remake the custom enchantment thing, since it is a bit old and it needs more features, and it will be avaliable in this remake. But I may start on it in about 2 weeks only.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    OK. Thank you for your quick replying.
    I'll try it out to make alternative scripts before then.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Hi @Tuke_Nuke
    Thank you for your addon :emoji_slight_smile:

    I noticed an error with the latest version. Before, this syntax worked well.
    Code (Skript):
    1. make player drops player's tool from his inventory
    But now, I have these errors (I tried in some events):
    There's no slot in a function event
    There's no slot in a command event
    There's no slot in an on death event

    Why slot?! ^^'

    Thank you for help!
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Can you add an effect?
    When the player synthesizes the object
    To get the materials that he USES
    On craft:
    Send "%events-materials%" # has a maximum of 9 materials
    @Tuke_Nuke
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    New Beta release
    I posted a new beta release on my Github, you can check it here.

    @Goetheus your issue was fixed in that release.

    @xbxy It is already possible, since TuSKe provides support for recipes, you can use a event-value for it:
    Code (Skript):
    1. on craft:
    2.     #Syntax: [the] ingredients of %recipe%, %recipe%'[s] ingredients
    3.     send "%ingredients of event-recipe%"
    You need atleast TuSKe v1.7.7 since it there was a issue with shapped recipes less than 3x3 items, making it return less than 9 items unorganized.
     
    • Like Like x 1
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Is this
    I have a ball of mucus
    Item = slimeball named "& chappy"

    This is for entertainment

    And then I don't want the user to make the mucus (165:0).
    So I want to check if I have this {@item} when I'm synthesizing

    %ingredients of event-recipe%
    It only returns the recipe material, and I don't get the name and other attributes
    Is there any other solution ?


    According to the TuSke/documentation
    I tested the following event
    He was found to be invalid
    Code (Text):
    1.  
    2. On Item craft:
    3.     send "&c%event-slot%"
    4.     send "&c%event-player%"
    5.     send "&c%event-inventory%"
    6.     send "&c%event-itemstack%"
    7.     send "&c%event-recipe%"
    8.  
    And I keep using the latest edition
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Hi, how would I replace a gui slot (without closing and opening a new gui) with only another action / command (keeping the current slot item) ?

    For example:
    make a gui slot 12 of {_p} with {_box} to do nothing

    Change later into:
    make a gui slot 12 of {_p} with {_box} to run command blablabla

    This does not work.
    And I only found this:
    set slot 12 of {_p}'s current inventory to {_newItem}

    But I need to set the function not the item.
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I see now. You can try to loop slots from 1 to 9 and and check its item, and if it is your item, you can set the result item to air (the slot 0). Because the ingredients of %recipe% returns a list of items of a recipe, not actually the items the player used.

    How would you change later? about some timespan later? You can just format the slot again using same item (as you want) and using a new action. In case it still not working for you, you can unformat a slot
    Code (Skript):
    1. make a gui slot 12 of {_p} with {_box} to do nothing
    2. wait 10 seconds
    3. unformat a gui slot 12 of {_p}
    4. make a gui slot 12 of {_p} with {_box} to run player command "/example"
     
  9. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Thanks @ Tuke_Nuke but without unformating it does not work. And unformating is not an option because then I would have to store all items for the gui in variables for later use (because I am not using them in the same event).
     
  10. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    What's the version of TuSKe, Skript and server? I tested TuSKe v1.7.7, Skript dev29 and Spigot 1.12 the following:
    Code (Skript):
    1. command /gui:
    2.     trigger:
    3.         open virtual chest to player
    4.         make gui slot 13 of player with stone named "Example" #The 'to do nothing' is optional, does the same.
    5.         wait 2 seconds
    6.         example(player)
    7.        
    8. function example(p: Player):
    9.     make gui slot 13 of {_p} with (slot 13 of {_p}'s current inventory) to run {_p} command "/test"
    The function is just an example to format in a separated "event".
     
    • Like Like x 1
  11. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Tuke_Nuke updated TuSKe - Custom Enchantments, GUI Manager and more! with a new update entry:

    1.12 Recipes support, fixes and small additions.

    Read the rest of this update entry...
     
  12. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    This guy helped me yesterday about solve problem. Tuke_Nuke is best person, TuSKe is best addon !
     
    • Friendly Friendly x 1
  13. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    I'm glad for help and to know that you enjoy my addon. Thank you!
     
  14. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Tuke_Nuke updated TuSKe - Custom Enchantments, GUI Manager and more! with a new update entry:

    Important bug fixes.

    Read the rest of this update entry...
     
    • Useful Useful x 1
  15. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    i guess this fixes the double event firing on inventory close in advanced guis :emoji_grinning: nice timing
     
  16. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Yes it does, it was a code mistake basically, Only happen if you were in TuSKe 1.8.
     
  17. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    Hi!
    I have a problem with TuSKe :/ the functions (also the rest) doesn't works when i click on a item in my gui.

    My code:
    Code (Text):
    1.  
    2. function sendMessage(p: player):
    3.    message "&aMessage !" to {_p}
    4.                
    5. command /gui:
    6.    trigger:
    7.        open virtual chest inventory named "&ePage &61" to player
    8.        make a gui slot 0 of player with 1 grass to run function sendMessage(player)
    9.  
    I just have this error in the console : http://prntscr.com/fyc2cu

    Thanks :emoji_slight_smile:
     
  18. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    This error is related to the Skript updater (since you are using a older version of Skript). Check your Skript config and disable a option related to auto updater.

    Regardless TuSKe, everything works normal here, even in 1.8. Make sure you have latest TuSKe and you are properly checking your code (maybe not reloading the right script?).
     
    • Friendly Friendly x 1
  19. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    It's good ! I have disable the option in the skrip config and download the latest version of TuSKe, thanks for the help ! :emoji_slight_smile:
     
    • Friendly Friendly x 1
  20. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,106
    Likes Received:
    150
    The best addon for skript. And the best helpful addon developer.
     
    • Like Like x 1
Loading...