Aller au contenu

Custom join items + GUI MENU


Messages recommandés

Posté(e)

Bonjour,

J 'aimerais un peu d'aide ...

Quand on rejoint on reçois une boussole dans la case du mileu nommé "Menu" en rouge

Quand on fait clique droit dessus

Sa ouvre un menu avec des vitres et juste au milieu un lit nommé "Spawn"

Et quand on fais clique droit sa nous téléportation au Spawn.

Gui= 5 verticale

 

Merci.

 

Cordialement,

Posté(e)

Avant de demander, tu devrais chercher ;D

Y'a plus dune centaine de posts à propos de ça j'en suis quasiment sur, de plus là tu demande un skript pas de l'aide.

 

on right click on compass:
	open chest with 5 rows named "&cMenu !" to player
	wait 1 tick #NE PAS ENLEVER
	format slot 0 of player with glass named " " to be unstealable #unstealable = impossible à prendre
	format slot 1 of player with 0 of stone named "First item" with lore "lore!" to close then run "tell %player% hi"

 

Etant donné que c'est dans la partie d'aide, voiçi une aide, normalement c'est pas trop compliqué :D

 

PS: Le slot du centre doit être le slot 22 si je ne me trompe pas.

Posté(e)

En fait tu demandes carrément un skript non ?

 

 

on join:
   set slot 4 of player to compass named "&4Menu"

on right-click:
   if player's tool is a compass:
       open chest with 5 rows named "&4Menu" to player
       wait 1 tick
       # ---- On met en place les vitres ----
       format slot 0 of player with black glass named "&f" to be unstealable
       format slot 1 of player with black glass named "&f" to be unstealable
       format slot 2 of player with black glass named "&f" to be unstealable
       format slot 3 of player with black glass named "&f" to be unstealable
       format slot 4 of player with black glass named "&f" to be unstealable
       format slot 5 of player with black glass named "&f" to be unstealable
       format slot 6 of player with black glass named "&f" to be unstealable
       format slot 7 of player with black glass named "&f" to be unstealable
       format slot 8 of player with black glass named "&f" to be unstealable
       format slot 9 of player with black glass named "&f" to be unstealable
       format slot 10 of player with black glass named "&f" to be unstealable
       format slot 11 of player with black glass named "&f" to be unstealable
       format slot 12 of player with black glass named "&f" to be unstealable
       format slot 13 of player with black glass named "&f" to be unstealable
       format slot 14 of player with black glass named "&f" to be unstealable
       format slot 15 of player with black glass named "&f" to be unstealable
       format slot 16 of player with black glass named "&f" to be unstealable
       format slot 17 of player with black glass named "&f" to be unstealable
       format slot 18 of player with black glass named "&f" to be unstealable
       format slot 19 of player with black glass named "&f" to be unstealable
       format slot 20 of player with black glass named "&f" to be unstealable
       format slot 21 of player with black glass named "&f" to be unstealable
       format slot 23 of player with black glass named "&f" to be unstealable
       format slot 24 of player with black glass named "&f" to be unstealable
       format slot 25 of player with black glass named "&f" to be unstealable
       format slot 26 of player with black glass named "&f" to be unstealable
       format slot 27 of player with black glass named "&f" to be unstealable
       format slot 28 of player with black glass named "&f" to be unstealable
       format slot 29 of player with black glass named "&f" to be unstealable
       format slot 30 of player with black glass named "&f" to be unstealable
       format slot 31 of player with black glass named "&f" to be unstealable
       format slot 32 of player with black glass named "&f" to be unstealable
       format slot 33 of player with black glass named "&f" to be unstealable
       format slot 34 of player with black glass named "&f" to be unstealable
       format slot 35 of player with black glass named "&f" to be unstealable
       format slot 36 of player with black glass named "&f" to be unstealable
       format slot 37 of player with black glass named "&f" to be unstealable
       format slot 38 of player with black glass named "&f" to be unstealable
       format slot 39 of player with black glass named "&f" to be unstealable
       format slot 40 of player with black glass named "&f" to be unstealable
       format slot 41 of player with black glass named "&f" to be unstealable
       format slot 42 of player with black glass named "&f" to be unstealable
       format slot 43 of player with black glass named "&f" to be unstealable
       format slot 44 of player with black glass named "&f" to be unstealable
       # --- On met en place le lit ---
       format slot 22 of player with bed named "&cSpawn" to close then run [make player execute command "spawn"]

command /setspawn:
       permission: skript.admin
       trigger:
               set {spawn} to location of player
               send "&cSpawn mis en place" to player

command /spawn:
       permission: skript.spawn
       trigger:
               teleport the player to {spawn}
               send "&cTu as été envoyé au spawn" to player

 

 

Posté(e)
En fait tu demandes carrément un skript non ?

 

 

on join:
   set slot 4 of player to compass named "&4Menu"

on right-click:
   if player's tool is a compass:
       open chest with 5 rows named "&4Menu" to player
       wait 1 tick
       # ---- On met en place les vitres ----
       format slot 0 of player with black glass named "&f" to be unstealable
       format slot 1 of player with black glass named "&f" to be unstealable
       format slot 2 of player with black glass named "&f" to be unstealable
       format slot 3 of player with black glass named "&f" to be unstealable
       format slot 4 of player with black glass named "&f" to be unstealable
       format slot 5 of player with black glass named "&f" to be unstealable
       format slot 6 of player with black glass named "&f" to be unstealable
       format slot 7 of player with black glass named "&f" to be unstealable
       format slot 8 of player with black glass named "&f" to be unstealable
       format slot 9 of player with black glass named "&f" to be unstealable
       format slot 10 of player with black glass named "&f" to be unstealable
       format slot 11 of player with black glass named "&f" to be unstealable
       format slot 12 of player with black glass named "&f" to be unstealable
       format slot 13 of player with black glass named "&f" to be unstealable
       format slot 14 of player with black glass named "&f" to be unstealable
       format slot 15 of player with black glass named "&f" to be unstealable
       format slot 16 of player with black glass named "&f" to be unstealable
       format slot 17 of player with black glass named "&f" to be unstealable
       format slot 18 of player with black glass named "&f" to be unstealable
       format slot 19 of player with black glass named "&f" to be unstealable
       format slot 20 of player with black glass named "&f" to be unstealable
       format slot 21 of player with black glass named "&f" to be unstealable
       format slot 23 of player with black glass named "&f" to be unstealable
       format slot 24 of player with black glass named "&f" to be unstealable
       format slot 25 of player with black glass named "&f" to be unstealable
       format slot 26 of player with black glass named "&f" to be unstealable
       format slot 27 of player with black glass named "&f" to be unstealable
       format slot 28 of player with black glass named "&f" to be unstealable
       format slot 29 of player with black glass named "&f" to be unstealable
       format slot 30 of player with black glass named "&f" to be unstealable
       format slot 31 of player with black glass named "&f" to be unstealable
       format slot 32 of player with black glass named "&f" to be unstealable
       format slot 33 of player with black glass named "&f" to be unstealable
       format slot 34 of player with black glass named "&f" to be unstealable
       format slot 35 of player with black glass named "&f" to be unstealable
       format slot 36 of player with black glass named "&f" to be unstealable
       format slot 37 of player with black glass named "&f" to be unstealable
       format slot 38 of player with black glass named "&f" to be unstealable
       format slot 39 of player with black glass named "&f" to be unstealable
       format slot 40 of player with black glass named "&f" to be unstealable
       format slot 41 of player with black glass named "&f" to be unstealable
       format slot 42 of player with black glass named "&f" to be unstealable
       format slot 43 of player with black glass named "&f" to be unstealable
       format slot 44 of player with black glass named "&f" to be unstealable
       # --- On met en place le lit ---
       format slot 22 of player with bed named "&cSpawn" to close then run [make player execute command "spawn"]

command /setspawn:
       permission: skript.admin
       trigger:
               set {spawn} to location of player
               send "&cSpawn mis en place" to player

command /spawn:
       permission: skript.spawn
       trigger:
               teleport the player to {spawn}
               send "&cTu as été envoyé au spawn" to player

 

Fait un loop pour les vitres ..

Posté(e)
En fait tu demandes carrément un skript non ?

 

 

[...]

 

Version compactée :D

 

on join:
   set slot 4 of player to compass named "&4Menu"

on right-click with a compass:
   open chest with 5 rows named "&4Menu" to player
   wait 1 tick
   format slot 0 of player with black glass named "&f" to be unstealable
   loop 44 times:
       loop-number is not 22
       format slot loop-number of player with black glass named "&f" to be unstealable
   format slot 22 of player with bed named "&cSpawn" to close then run "spawn"

command /setspawn:
   permission: settings.setspawn
   trigger:
       set {spawn} to location of player
       send "&cSpawn modifié." to player

command /spawn:
   trigger:
       teleport the player to {spawn}
       send "&cTu as été téléporté au spawn" to player

Posté(e)
Version compactée :D

 

on join:
   set slot 4 of player to compass named "&4Menu"

on right-click with a compass:
   open chest with 5 rows named "&4Menu" to player
   wait 1 tick
   format slot 0 of player with black glass named "&f" to be unstealable
   loop 44 times:
       loop-number is not 22
       format slot loop-number of player with black glass named "&f" to be unstealable
   format slot 22 of player with bed named "&cSpawn" to close then run "spawn"

command /setspawn:
   permission: settings.setspawn
   trigger:
       set {spawn} to location of player
       send "&cSpawn modifié." to player

command /spawn:
   trigger:
       teleport the player to {spawn}
       send "&cTu as été téléporté au spawn" to player

Parfait merci :D (j'ai appris comment faire un loop pour ça du coup, ça m'arrange :) )

Posté(e)

La prochaine fois fait des recherches avant de demander car des dizaines de skript existe déjà.

De plus ta demande n'est pas dans la bonne catégorie...

Posté(e)
Version compactée :D

 

on join:
   set slot 4 of player to compass named "&4Menu"

on right-click with a compass:
   open chest with 5 rows named "&4Menu" to player
   wait 1 tick
   format slot 0 of player with black glass named "&f" to be unstealable
   loop 44 times:
       loop-number is not 22
       format slot loop-number of player with black glass named "&f" to be unstealable
   format slot 22 of player with bed named "&cSpawn" to close then run "spawn"

command /setspawn:
   permission: settings.setspawn
   trigger:
       set {spawn} to location of player
       send "&cSpawn modifié." to player

command /spawn:
   trigger:
       teleport the player to {spawn}
       send "&cTu as été téléporté au spawn" to player

 on right click: 

ou

 on rightclick: 

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.