How i can use a command in air

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

AKRODOGY

Active Member
Mar 20, 2018
52
2
8
24
The skipt is execute on blocks

code_language.skript:
on click with compass:
    world is "LobbyMap":
        execute player command "/gamemenu"

But i want to execute the command on air , not on blocks
 
Oh, just use:
code_language.skript:
on rightclick:
    if player's held item is a compass:
        something
Orrrrrrr just put everything in the same line
code_language.skript:
on rightclick with compass:
    world is "LobbyMap":
        make player execute command "/gamemenu"

Also try to use "make player execute command" instead of "execute player command"
 
Status
Not open for further replies.