Click on a item to open something

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

D3adEy3

Member
Jan 1, 2021
2
0
1
25
The error is: "when right click on nether_star"

when right click on nether_star:
trigger:
open virtual chest inventory with size 6 named "&e&lMENU" to player
format gui slot 4 of player with skull of player named "&e%player%"
format gui slot 10 of player with diamond named "&bHub" to run:
execute player command "/spawn"
send "&aYou got teleported to Hub"

format gui slot 16 of player with diamond_sword named "&b&lDuels" to run:
execute player command "/warp Duels"
send "&aYou got teleported to Duels" to player

format gui slot 31 of player with crafting_table named "&b&lParkour" to run:
execute player command "/warp Parkour"
send "&aYou got teleported to Parkour" to player
 
You need to use:
Code:
on right click with nether star:

Also, triggers are only used for commands, meaning you shouldn't put it there.
 
Status
Not open for further replies.