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