Solved SKQuery GUI help

  • 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 community!

    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.

Jakku

New Member
Dec 18, 2019
5
0
0
Im trying to make a villager menu GUI, but sadly whenever I try to format with an item I keep getting an error when I reload the skript.

Error: [Server thread/ERROR]: Can't understand this condition/effect: format slot 1 of player with diamond (villagermenu.sk, line 21: format slot 1 of player with diamond')

Code:
Code:
on right click on villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"
    
command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to argument 1
        wait 1 tick
        format slot 1 of player with diamond
 
Im trying to make a villager menu GUI, but sadly whenever I try to format with an item I keep getting an error when I reload the skript.

Error: [Server thread/ERROR]: Can't understand this condition/effect: format slot 1 of player with diamond (villagermenu.sk, line 21: format slot 1 of player with diamond')

Code:
Code:
on right click on villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"
   
command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to argument 1
        wait 1 tick
        format slot 1 of player with diamond
The error is that you have to put "format gui slot" instead of "format slot'.
Here.
Code:
on right click of villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"

command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to argument 1
        wait 1 tick
        format gui slot 1 of player with diamond
[doublepost=1576682070,1576681947][/doublepost]
The error is that you have to put "format gui slot" instead of "format slot'.
Here.
Code:
on right click of villager:
    cancel event
    wait 1 tick
    execute console command "/open %player%"

command /open <player>:
    permission: shop.admin
    trigger:
        wait 1 tick
        open chest with 2 rows named "&6Shop" to argument 1
        wait 1 tick
        format gui slot 1 of player with diamond
You can also shorten the code

here
Code:
on right click of villager:
    cancel event
    wait 1 tick
    open chest with 2 rows named "&6Shop" to player
    format gui slot 1 of player with diamond
 
Status
Not open for further replies.