on join: # Pour give l'item quand il spawn
remove nether star from placer
wait 3 ticks
give nether star named "&8>> &6Menu &8<<" to slot 0 of player
on click with nether star:
if name of player's tool is "&8>> &6Menu &8<<":
cancel event
open virtual chest inventory with size 5 named "&8>> &6Menu &8<<" to player
wait 1 ticks
make a gui slot 0 of player with stained glass pane named "Gamemode 1 " to run player command "/gamemode1"
make a gui slot 1 of player with stained glass pane named " " to do nothing
make a gui slot 2 of player with stained glass pane named " " to do nothing
make a gui slot 3 of player with stained glass pane named " " to do nothing
make a gui slot 5 of player with stained glass pane named " " to do nothing
make a gui slot 6 of player with stained glass pane named " " to do nothing
make a gui slot 7 of player with stained glass pane named " " to do nothing
make a gui slot 8 of player with stained glass pane named " " to do nothing
make a gui slot 9 of player with stained glass pane named " " to do nothing
make a gui slot 17 of player with stained glass pane named " " to do nothing
make a gui slot 18 of player with stained glass pane named " " to do nothing
make a gui slot 26 of player with stained glass pane named " " to do nothing
make a gui slot 27 of player with stained glass pane named " " to do nothing
make a gui slot 35 of player with stained glass pane named " " to do nothing
make a gui slot 36 of player with stained glass pane named " " to do nothing
make a gui slot 37 of player with stained glass pane named " " to do nothing
make a gui slot 38 of player with stained glass pane named " " to do nothing
make a gui slot 39 of player with stained glass pane named " " to do nothing
make a gui slot 41 of player with stained glass pane named " " to do nothing
make a gui slot 42 of player with stained glass pane named " " to do nothing
make a gui slot 43 of player with stained glass pane named " " to do nothing
make a gui slot 44 of player with stained glass pane named " " to do nothing
make a gui slot 4 of player with barrier named "&7Revenir en arrière" to close
make a gui slot 40 of player with barrier named "&7Revenir en arrière" to close
On drop nether star:
cancel event