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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

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

wheat item named "[Wheat]" is not a types.recipe

Discussion in 'Skript' started by Mathijs, Dec 28, 2019.

Thread Status:
Not open for further replies.
  1. Mathijs

    Mathijs New Member

    Joined:
    May 9, 2019
    Messages:
    7
    Likes Received:
    0
    Code (Text):
    1. if {rank.%uuid of arg-1%} == 0:
    2.             format slot 10 of arg-1 with wheat named "&8[&eWheat&8]" with lore "&fUnlocked: &cNo", "&f• Makes you able to talk in color!", "&f• use /colorchat", "&2Cost: %{ranks.price.wheat}%" to do nothing
    3.         else if {rank.%uuid of arg-1%} >= 1:
    4.             format slot 10 of arg-1 with wheat named "&8[&eWheat&8]" with lore "&fUnlocked: &aYes", "&f• Makes you able to talk in color!", "&f• use /colorchat", "&2Cost: %{ranks.price.wheat}%" to do nothing
    [​IMG]

    Does anyone know how to fix this? it errors at
    Code (Text):
    1. format slot 10 of arg-1 with wheat named "&8[&eWheat&8]" with lore "&fUnlocked: &cNo", "&f• Makes you able to talk in color!", "&f• use /colorchat", "&2Cost: %{ranks.price.wheat}%" to do nothing
    and I have no idea why. I use skQuery for UIs.
    --- Double Post Merged, Dec 28, 2019, Original Post Date: Dec 28, 2019 ---
    i figured it out i forgot it was to be unstealable instead of to do nothing. The error reporting for skQuery sucks though.
     
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    oh, glad you figured it out.
    --- Double Post Merged, Dec 28, 2019, Original Post Date: Dec 28, 2019 ---
    Also I recommend using TuSKe instead of SkQuery for GUIs, the error reporting system is easy to read and is very helpful, and it is similar to SkQuery so you wouldn't have to spend too much time re-learning GUIs.
     
  3. Mathijs

    Mathijs New Member

    Joined:
    May 9, 2019
    Messages:
    7
    Likes Received:
    0
    yes I know but i've written all my GUIs in skQuery now and I don't want to make it all again because the error reporting system of skQuery is bad.
     
  4. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    That's understandable if you don't wanna switch, but TuSKe is always gonna be more efficient imo. You can make page systems so easily with it, you don't have to copy and paste the whole gui every time you change the page. Anyways, I'm not forcing you to switch. I ain't gonna be like the person that kept trying to get me into anime.
     
    #4 Goose, Dec 28, 2019
    Last edited: Dec 28, 2019
  5. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    I think that this will work:

    Code (Skript):
    1.  
    2. command /thecommand [<offline player>]:
    3.     trigger:
    4.         arg 1 is set
    5.         open chest inventory with 5 rows named "ColorChat" to player
    6.         set {_wheat} to wheat named "&8[&eWheat&8]"
    7.         if {rank.%uuid of arg 1%} == 0:
    8.             set line 1 of lore of {_wheat} to "&fUnlocked:&c No"
    9.         else if {rank.%uuid of arg 1%} >= 1:
    10.             set line 1 of lore of {_wheat} to "&fUnlocked: &aYes"
    11.         set line 2 of lore of {_wheat} to "&f• Makes you able to talk in color!"
    12.         set line 3 of lore of {_wheat} to "&f• use /colorchat"
    13.         set line 4 of lore of {_wheat} to "&2Cost: %{ranks.price.wheat}%"
    14.         set slot 10 of player's current inventory to {_wheat}
    15.         stop
    16.  
    17. on inventory click:
    18.     clicked inventory isn't player's inventory
    19.     if inventory name player's current inventory is "ColorChat":
    20.         clicked slot = 10:
    21.             player command "/colorchat"
    22.             close player's inventory
    23.  
    This method it totally vanilla. And i dont know if this will work because i didnt tested.

    EDIT: Yes, yes. Is a pain of ass this method and will add more codes line .
     
Thread Status:
Not open for further replies.

Share This Page

Loading...