Solved [Help] Right Click GUI doesn't work

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

jovanmunja

Member
Jul 27, 2017
22
1
0
So, I want to do something like right clicking with compass, and the gui shows up with some things in it. I did the skript coding, and when I went into the game, I right click to compass, nothing is happening. Can you pls tell me whats wrong here? Thanks
http://prntscr.com/g0xjqq
 
You need only 1 tab after the 2-5 lines you have like 4
Sorry Im checking later Mojang is having issues I cant connect to any server that is happening to you too like to everyone. Im gonna check when its fixed.
 
So, I want to do something like right clicking with compass, and the gui shows up with some things in it. I did the skript coding, and when I went into the game, I right click to compass, nothing is happening. Can you pls tell me whats wrong here? Thanks
http://prntscr.com/g0xjqq

You need only 1 tab after the 2-5 lines you have like 4

Potentially silly question, but did you reload your skript when you got in game? With that many tabs it should have thrown you and error on reload letting you know "expected 1 tab but found 4" or something to that effect. If errors occur, the skript won't work until you've fixed them and reloaded again.
 
Sorry Im checking later Mojang is having issues I cant connect to any server that is happening to you too like to everyone. Im gonna check when its fixed.

NEVER USE SKQUERY'S GUI MANAGER! It has a large number of bugs and flaws. Use TuSKe's GUI Manager - tutorial, download.
The right code: (my example)
code_language.skript:
options:
    item-slot: 1
    item-name: &a&lExample
    item-lore: &7I'm so lazy to write multiple lines.||&7Okay, so, stop please.||&7Oh no, this is line 3, right?

    inventory-title: Inventory

on join:
    wait second
    set slot ({@item-slot} - 1) of player to skull of player with nbt "{SkullOwner:{Id:""20696b18-02b0-45cc-8e97-e4e73aeda35f"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWZmMWI5ZjNiMjk5OWM5ZWFhNWU2ODE1NDdiNTJlZWJjNWJmN2U5Zjg3YTdiMTFkOWM4ZDkxZDI2ZjkxNjEifX19""}]}}}" named "{@item-name}" with lore "{@item-lore}"

on right-click with player head item:
    item's name is "{@item-name}":
        cancel event
        open virtual hopper inventory named "{@inventory-title}" to player
        loop 5 times:
            format gui slot (loop-integer - 1) of player with air named ""
        format gui slot 2 of player with skull of player with nbt "{SkullOwner:{Id:""8f206973-cd58-41c7-afdf-f7eba2247856"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODI0YzZmZjE3MTRlYjJjM2I4NDRkNDZkMmU1ZWEyZjI2ZDI3M2EzM2VhYWE3NDRhYmY2NDViMDYwYjQ3ZDcifX19""}]}}}" named "&bActions:" with lore "&f«Q + CTRL» &8- &7Sends a message for you.||&f«Q» &8- &7Broadcasts a message." to close:
            click type is drop key with control:
                send "&aPressed: Q + CTRL" and ""
                send "Hello %player%, this only shows for you."
            else if click type is drop key:
                send "&aPressed: Q" and ""
                broadcast "Hello server, this message shows for all online players."
            else:
                send "Pressed: NOT Q, AND NOT Q + CTRL."
 
Status
Not open for further replies.