Aller au contenu

Messages recommandés

Posté(e)

Salut a vous tous skipteurs et skripteuses je vous présente mon premier tuto.

Je ne suis pas très fort en skript car je j'ai commencer il y a 1 semaine mais bon on ne sais jamais.

Je me suis lancer a faire des raccourci de pas mal de commandes classique et voici mon premier résultat un menu automatique pour le gamemode.

 

Alors tous d'abort je creer la commandes /mode:

command /Mode:
   trigger:

 

Ensuite j'ouvre un coffre avec une barre (9 slots) qui a pour nom Gamemode Editor et on attend un tick pour évité des bugs.

command /Mode:
   trigger:
       open chest with 1 rows named "&4Gamemode Editor" to player
       wait 1 tick

 

Les neufs slots sont répartit de cette manière: 0 1 2 3 4 5 6 7 8

Donc en slot 1 je met une vitre verte claire qui a pour nom Aventure et le lore Change t'on mode de jeu en Adventure. Le "coffre" se ferme et la commande /gamemode adventure s’exécute.

command /Mode:
   trigger:
       open chest with 1 rows named "&4Gamemode Editor" to player
       wait 1 tick
       format slot 1 of player with 1 160:5 named "&4&lAventure" with lore "&cChange t'on mode de jeu en Adventure." to close then run "gamemode adventure %player%"

 

Je répète la manipulation pour tous les mode de jeu possible: survie, créatif et spectateur en changeant le nom de la vitre, le numéro de slot et la commande a exécutée. On obtien mon skript de gamemode.

command /Mode:
   trigger:
       open chest with 1 rows named "&4Gamemode Editor" to player
       wait 1 tick
       format slot 1 of player with 1 160:5 named "&4&lAventure" with lore "&cChange t'on mode de jeu en Adventure." to close then run "gamemode adventure %player%"
       format slot 3 of player with 1 160:5 named "&4&lSurvie" with lore "&cChange t'on mode de jeu en Survival" to close then run "gamemode survival %player%"
       format slot 5 of player with 1 160:5 named "&4&lCréative" with lore "&cChange t'on mode de jeu en Créative." to close then run "gamemode creative %player%"
       format slot 7 of player with 1 160:5 named "&4&lSpéctateur" with lore "&cChange t'on mode de jeu en Spectator." to close then run "gamemode spectator %player%"

 

Chez moi il fonctionne donc normalement chez vous aussi.

Ps: si vous s'avez comment on fait pour ne pas afficher les actions de la console dans le chat je suis preneur.

Posté(e)

Version redstone (vous donne l'item sur lequel vous avez cliquez):

command /Redstone:
   trigger:
       open chest with 1 rows named "&4Kit du redstonien" to player
       wait 1 tick
       format slot 0 of player with 1 piston base named "&4&lPiston" with lore "&cPousse et rétracte." to close then run "replaceitem entity %player% slot.hotbar.0 piston"
       format slot 1 of player with 1 sticky piston base named "&4&lPiston Collant" with lore "&cVraiment... Collant." to close then run "replaceitem entity %player% slot.hotbar.1 sticky_piston"
       format slot 2 of player with 1 redstone torch on named "&4&lTorche de redstone" with lore "&cEclaire et produit de l'énergie le top." to close then run "replaceitem entity %player% slot.hotbar.2 redstone_torch"
       format slot 3 of player with 1 redstone comparator item named "&4&lComparateur" with lore "&cEuh. Compare. :p" to close then run "replaceitem entity %player% slot.hotbar.3 comparator"
       format slot 4 of player with 1 redstone named "&4&lRedstone" with lore "&cRedstone le basique." to close then run "replaceitem entity %player% slot.hotbar.4 redstone"
       format slot 5 of player with 1 redstone repeater item named "&4&lRépéteur" with lore "&cPete et repete sont dans un bateau ..." to close then run "replaceitem entity %player% slot.hotbar.5 repeater"
       format slot 6 of player with 1 lever named "&4&lLevier" with lore "&cOMG UN LEVIER !!!" to close then run "replaceitem entity %player% slot.hotbar.6 lever"
       format slot 7 of player with 1 redstone block named "&4&lBlock de Redstone" with lore "&cWhat is it." to close then run "replaceitem entity %player% slot.hotbar.7 redstone_block"
       format slot 8 of player with 1 command block named "&4&lCommande block" with lore "&cRip le /give 137." to close then run "replaceitem entity %player% slot.hotbar.8 command_block"

Créer un compte ou se connecter pour commenter

Vous devez être membre afin de pouvoir déposer un commentaire

Créer un compte

Créez un compte sur notre communauté. C’est facile !

Créer un nouveau compte

Se connecter

Vous avez déjà un compte ? Connectez-vous ici.

Connectez-vous maintenant
×
×
  • 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.