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

  • 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.

Mathijs

New Member
May 9, 2019
7
0
0
24
Code:
if {rank.%uuid of arg-1%} == 0:
            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
        else if {rank.%uuid of arg-1%} >= 1:
            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

unknown.png


Does anyone know how to fix this? it errors at
Code:
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.
[doublepost=1577542855,1577542481][/doublepost]i figured it out i forgot it was to be unstealable instead of to do nothing. The error reporting for skQuery sucks though.
 
oh, glad you figured it out.
[doublepost=1577543047,1577542896][/doublepost]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.
 
oh, glad you figured it out.
[doublepost=1577543047,1577542896][/doublepost]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.

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.
 
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.
 
Last edited:
Code:
if {rank.%uuid of arg-1%} == 0:
            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
        else if {rank.%uuid of arg-1%} >= 1:
            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

unknown.png


Does anyone know how to fix this? it errors at
Code:
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.
[doublepost=1577542855,1577542481][/doublepost]i figured it out i forgot it was to be unstealable instead of to do nothing. The error reporting for skQuery sucks though.
I think that this will work:

code_language.skript:
command /thecommand [<offline player>]:
    trigger:
        arg 1 is set
        open chest inventory with 5 rows named "ColorChat" to player
        set {_wheat} to wheat named "&8[&eWheat&8]"
        if {rank.%uuid of arg 1%} == 0:
            set line 1 of lore of {_wheat} to "&fUnlocked:&c No"
        else if {rank.%uuid of arg 1%} >= 1:
            set line 1 of lore of {_wheat} to "&fUnlocked: &aYes"
        set line 2 of lore of {_wheat} to "&f• Makes you able to talk in color!"
        set line 3 of lore of {_wheat} to "&f• use /colorchat"
        set line 4 of lore of {_wheat} to "&2Cost: %{ranks.price.wheat}%"
        set slot 10 of player's current inventory to {_wheat}
        stop
 
on inventory click:
    clicked inventory isn't player's inventory
    if inventory name player's current inventory is "ColorChat":
        clicked slot = 10:
            player command "/colorchat"
            close player's inventory

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 .
 
Status
Not open for further replies.