Tuske Gui on right click or on left click

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

Buddha

Member
Apr 22, 2017
20
0
0
This.. doesn't work - I know I'm doing something wrong, but the documentation for tuske showed no examples and I got a little confused. If someone could link me to a different documentation for the tuske gui manager I'd be super appreciative, or if you could tell me what I'm doing wrong.

Code:
command /kits:
 trigger:
            open virtual chest with 6 rows named "Kits" to player
            wait 0.1 ticks
               make gui slot 20 of player with a Healing Potion without any NBT named "&e&lDaily" with lore "&fCooldown: " and "&fStatus: &a&lUnlocked!" and " " and "&7Left-click to claim!" and "&7Right-click to preview!" to run player command "/kitpreview daily" using right mouse button or to run player command "/kit daily" using left mouse button


EDIT: to be more specific on what i'm actually trying to do - I'm trying to allow players to right click on the healing potion within the gui to run a command, but then if the player left clicked on the healing potion a different command would be run.

EDIT 2: I made some progress by googling LOADS and finding another post trying to do something like this. Upon left/right click it will now do what it should.. however only for people with OP. this is really weird. here's what i'm doing.
Code:
            make gui slot 20 of player with a Healing Potion without any NBT named "&e&lDaily" with lore "&fCooldown: " and "&fStatus: &a&lUnlocked!" and " " and "&7Left-click to claim!" and "&7Right-click to preview!" to run player command "/kit daily" using left mouse button
            make gui slot 20 of player with a Healing Potion without any NBT named "&e&lDaily" with lore "&fCooldown: " and "&fStatus: &a&lUnlocked!" and " " and "&7Left-click to claim!" and "&7Right-click to preview!" to run player command "/kitpreview daily" using right mouse button

EDIT 3: Now solved as I used a more recent version of tuske.. stupid of me aha
 
Last edited:
Status
Not open for further replies.