On right click run gui (new asking for 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.

mike

Member
Jun 28, 2017
23
0
0
Hey there im really new to this and i learn better from visual. Is there a way to

on rightclick on crafting_table run a gui?
would you be able to send me just a very small layout of how id go about doing this?
 
code_language.skript:
on inventory click:
    if clicked slot type is CRAFTING:
        make player run command "/open gui"
not tested but something along these lines should work
 
might aswell give it a shot im in the process of making a vanilla version of ftb server something simular
[doublepost=1498684190,1498683733][/doublepost]sadly it didnt work out
 
on right click on crafting table
cancel the event
open the gui
 
id guess if i wanted to change it i could
on rightclick on crafting table
cancel the event
make player run command '/open gui'
[doublepost=1498684650,1498684382][/doublepost]
on right click on crafting table
cancel the event
open the gui
sadly that didnt work for some reason
 
id guess if i wanted to change it i could
on rightclick on crafting table
cancel the event
make player run command '/open gui'
[doublepost=1498684650,1498684382][/doublepost]
sadly that didnt work for some reason
Yes sir
[doublepost=1498684738][/doublepost]
id guess if i wanted to change it i could
on rightclick on crafting table
cancel the event
make player run command '/open gui'
[doublepost=1498684650,1498684382][/doublepost]
sadly that didnt work for some reason
Well that wasn't the proper code to use.
code_language.skript:
on right click on crafting table:
    cancel event
    make player execute command "/open gui"
 
sorry to ask again, is it possible to right click armor stand with custom tag name
[doublepost=1498685224,1498684973][/doublepost]or on right click of custom spawn egg
 
sorry to ask again, is it possible to right click armor stand with custom tag name
[doublepost=1498685224,1498684973][/doublepost]or on right click of custom spawn egg
Do you have discord or skype I'd be glad to help but I don't exactly understand what you need at this point.
 
Virus#0417 is my discord. would love your help
For right clicking the item when holding it this should work.
code_language.skript:
on rightclick:
    name of player's held item is "&cIron_furnice":
        broadcast "Hi."
 
is it possiable to make it do
on rightclick:
name of player's held item is "&4Wrench":
(bit i dont know)
broadcast "Hi."

so for the bit i dont know. could it be upon right click it tests for an entity with a certain name within 2 blocks then runs the command?
entity is armor stand
name is: Adv.Crafting Table
 
This doesn't work but it should be something along these lines..

code_language.skript:
command /loopironfurnace
executable by: players
    trigger:
        loop all entities within 5 metres of the player:
            if name of loop entity is "&0Iron Furnace":
                # do stuff
on right click:
    player's held item is end_rod:
        name of player's held item "&4Wrench":
            make player execute /loopironfurnace
 
how could i incorperate lightapi into the skript
i want to make it when it is toggled it will run a command
 
Status
Not open for further replies.