BenXii Posté(e) le 27 juin 2017 Posté(e) le 27 juin 2017 Titre du sujet : Skript pour un lobby. Sujet : Version de minecraft / skript : 1.9 Type du skript : Skript Hub Description du script : Bonjour je souhaiterais un skript qui permettrait aux joueurs de ne pas perdre de cœur ni de nourriture dans un monde et de ne pas pouvoir casser et bosser des blocks. Commandes éventuelles avec les permissions : Je n'ai pas besoin de commandes particulières, mais j'ai besoin de permission suivante : Une permission : healfeed.hub Et aussi pour mon menu gui j'ai un problème, c'est que je ne peut pas navigué de menu gui en menu gui.. Je vous donne les code : Merci de votre aide et bonne journée. command /menuautre: trigger: open chest with 6 rows named "&f&l➽ &3Nyo&6Games" to player wait a tick format slot 0 of player with blaze rod named "&6Gadgets/Particules" with lore "&eReservé au staff et VIP !||&7&oTu peut aussi utilisé /tools" to close then run [make player execute command "/tools"] format slot 1 of player with Gray Stained Glass named " " to be unstealable format slot 2 of player with Gray Stained Glass named " " to be unstealable format slot 3 of player with Gray Stained Glass named " " to be unstealable format slot 4 of player with gold ingot named "&eBoutique" with lore "&7Cliquez pour ouvrir la boutique !||&c&oPas disponible !" to close then run [make player execute command "/boutique"] format slot 5 of player with Gray Stained Glass named " " to be unstealable format slot 6 of player with Gray Stained Glass named " " to be unstealable format slot 7 of player with Gray Stained Glass named " " to be unstealable format slot 8 of player with snowball named "&6Amis" to close then run [make player execute command "/friends"] format slot 9 of player with Gray Stained Glass named " " to be unstealable format slot 10 of player with Gray Stained Glass named " " to be unstealable format slot 11 of player with Gray Stained Glass named " " to be unstealable format slot 12 of player with Gray Stained Glass named " " to be unstealable format slot 13 of player with Gray Stained Glass named " " to be unstealable format slot 14 of player with Gray Stained Glass named " " to be unstealable format slot 15 of player with Gray Stained Glass named " " to be unstealable format slot 16 of player with Gray Stained Glass named " " to be unstealable format slot 17 of player with Gray Stained Glass named " " to be unstealable format slot 18 of player with Gray Stained Glass named " " to be unstealable format slot 19 of player with Gray Stained Glass named " " to be unstealable format slot 20 of player with Gray Stained Glass named " " to be unstealable format slot 21 of player with Gray Stained Glass named " " to be unstealable format slot 22 of player with emerald named "&6CandyCrush" with lore "&7Cliquez pour joué !||&7Bonne chance !" to be unstealable format slot 23 of player with Gray Stained Glass named " " to be unstealable format slot 24 of player with Gray Stained Glass named " " to be unstealable format slot 25 of player with Gray Stained Glass named " " to be unstealable format slot 26 of player with Gray Stained Glass named " " to be unstealable format slot 27 of player with Gray Stained Glass named " " to be unstealable format slot 28 of player with Gray Stained Glass named " " to be unstealable format slot 29 of player with Gray Stained Glass named " " to be unstealable format slot 30 of player with bed named "&6RushDuel" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to be unstealable format slot 31 of player with iron chestplate named "&6Training" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to close then run [make player execute command "/kb join training"] format slot 32 of player with red wool named "&6Dé à Coudre" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to be unstealable format slot 33 of player with Gray Stained Glass named " " to be unstealable format slot 34 of player with Gray Stained Glass named " " to be unstealable format slot 35 of player with Gray Stained Glass named " " to be unstealable format slot 36 of player with Gray Stained Glass named " " to be unstealable format slot 37 of player with Gray Stained Glass named " " to be unstealable format slot 38 of player with Gray Stained Glass named " " to be unstealable format slot 39 of player with Gray Stained Glass named " " to be unstealable format slot 40 of player with gold sword named "&6Regarde t'es CPS" with lore "&7Cliquez le plus de fois possible en 10 secondes !||&7Bonne chance !" to close then run [make player execute command "/givegames clic"] format slot 41 of player with Gray Stained Glass named " " to be unstealable format slot 42 of player with Gray Stained Glass named " " to be unstealable format slot 43 of player with Gray Stained Glass named " " to be unstealable format slot 44 of player with Gray Stained Glass named " " to be unstealable format slot 45 of player with Gray Stained Glass named " " to be unstealable format slot 46 of player with Gray Stained Glass named " " to be unstealable format slot 47 of player with Gray Stained Glass named " " to be unstealable format slot 48 of player with Gray Stained Glass named " " to be unstealable format slot 49 of player with Gray Stained Glass named " " to be unstealable format slot 50 of player with Gray Stained Glass named " " to be unstealable format slot 51 of player with Gray Stained Glass named " " to be unstealable format slot 52 of player with Gray Stained Glass named " " to be unstealable format slot 53 of player with Gray Stained Glass named " " to be unstealable command /boutique: trigger: open chest with 3 rows named "&eBoutique" to player wait a tick format slot 0 of player with Gray Stained Glass named " " to be unstealable format slot 1 of player with Gray Stained Glass named " " to be unstealable format slot 2 of player with Gray Stained Glass named " " to be unstealable format slot 3 of player with Gray Stained Glass named " " to be unstealable format slot 4 of player with Gray Stained Glass named " " to be unstealable format slot 5 of player with Gray Stained Glass named " " to be unstealable format slot 6 of player with Gray Stained Glass named " " to be unstealable format slot 7 of player with Gray Stained Glass named " " to be unstealable format slot 8 of player with Gray Stained Glass named " " to be unstealable format slot 9 of player with Gray Stained Glass named " " to be unstealable format slot 10 of player with Gray Stained Glass named " " to be unstealable format slot 11 of player with Gray Stained Glass named " " to be unstealable format slot 12 of player with gold ingot named "&eVIP &7&o(Grade en BETA)" with lore "&7Durée: &aà vie||&7||&aTon pseudo: &eVIP %player%||&aAccès à plusieurs commande comme:||&b/feed...||&aAccès à des gadgets/particules||&a||&aPrix: &e2€ PayPal &7&o(Clique pour acheté)" to be unstealable format slot 13 of player with Gray Stained Glass named " " to be unstealable format slot 14 of player with redstone named "&6Youtuber &7&o(Grade en BETA)" with lore "&7Durée: &aà vie||&7||&aTon pseudo: &6Youtuber %player%||&aAccès à plusieurs commande comme:||&b/feed...||&aAccès à des gadgets/particules||&a||&aCondition:||&eAvoir 200 abonnés &7&o(Cela risque de changer)||&eFaire une vidéo sur le serveur" to be unstealable format slot 15 of player with Gray Stained Glass named " " to be unstealable format slot 16 of player with Gray Stained Glass named " " to be unstealable format slot 17 of player with Gray Stained Glass named " " to be unstealable format slot 18 of player with Gray Stained Glass named " " to be unstealable format slot 19 of player with Gray Stained Glass named " " to be unstealable format slot 20 of player with Gray Stained Glass named " " to be unstealable format slot 21 of player with Gray Stained Glass named " " to be unstealable format slot 22 of player with Gray Stained Glass named " " to be unstealable format slot 23 of player with Gray Stained Glass named " " to be unstealable format slot 24 of player with Gray Stained Glass named " " to be unstealable format slot 25 of player with Gray Stained Glass named " " to be unstealable format slot 26 of player with Gray Stained Glass named " " to be unstealable[/Code]
Invité Posté(e) le 27 juin 2017 Posté(e) le 27 juin 2017 Salut, Je te conseille d'augmenter le nombre de ticks et de rajouter un "wait 3 ticks" comme ceci : command /menuautre: trigger: wait 3 ticks open chest with 6 rows named "&f&l➽ &3Nyo&6Games" to player wait 3 ticks format slot 0 of player with blaze rod named "&6Gadgets/Particules" with lore "&eReservé au staff et VIP !||&7&oTu peut aussi utilisé /tools" to close then run [make player execute command "/tools"] Tu as juste à rajouté les "wait 3 ticks" à tous tes menu comme je l'ai fait :)
Invité Posté(e) le 27 juin 2017 Posté(e) le 27 juin 2017 Dis moi si cela fonctionne :) Après pour le reste de ce que tu as demandé : on break: if player has not permission "healfeed.hub": cancel event on place: if player has not permission "healfeed.hub": cancel event on hunger meter change: cancel event on damage: cancel event
FromFX Posté(e) le 1 juillet 2017 Posté(e) le 1 juillet 2017 Un petit coup d'optimisation dans les GUI ça fait rien de mal... Sinon @Walabise, ajouter 3 ticks ne changent absolument rien. Il faut seulement ajouter un tick entre l'ouverture du coffre et le placement des items, comme a fait @BenXii. Vérifie aussi que tu as bien l'addon nécessaire pour la création de GUI (https://dev.bukkit.org/projects/skquery) CODE: command /menuautre: trigger: open a chest with 6 rows named "&f&l➽ &3Nyo&6Games" to player wait a tick set {_slot} to 0 loop 53 times: format slot {_slot} with gray stained class named " " to be unstealable add 1 to {_slot} wait a tick format slot 0 of player with blaze rod named "&6Gadgets/Particules" with lore "&eReservé au staff et VIP !||&7&oTu peut aussi utilisé /tools" to close then run [make player execute command "/tools"] format slot 4 of player with gold ingot named "&eBoutique" with lore "&7Cliquez pour ouvrir la boutique !||&c&oPas disponible !" to close then run [make player execute command "/boutique"] format slot 8 of player with snowball named "&6Amis" to close then run [make player execute command "/friends"] format slot 22 of player with emerald named "&6CandyCrush" with lore "&7Cliquez pour joué !||&7Bonne chance !" to be unstealable format slot 30 of player with bed named "&6RushDuel" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to be unstealable format slot 31 of player with iron chestplate named "&6Training" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to close then run [make player execute command "/kb join training"] format slot 32 of player with red wool named "&6Dé à Coudre" with lore "&7Cliquez pour rejoindre !||&7Connecté:" to be unstealable format slot 40 of player with gold sword named "&6Regarde t'es CPS" with lore "&7Cliquez le plus de fois possible en 10 secondes !||&7Bonne chance !" to close then run [make player execute command "/givegames clic"] Flemme de le faire pour le GUI boutique mais bon t'as surement compris le principe.
BenXii Posté(e) le 1 juillet 2017 Auteur Posté(e) le 1 juillet 2017 Merci les gars de m'avoir aidé tout marche niquel ! Et merci @FromFX pour m'avoir fait connaitre ça :p
GauvainWizard Posté(e) le 1 juillet 2017 Posté(e) le 1 juillet 2017 Salutations, Passe en résolu si c'est résolu, Merci, Gauvain
BenXii Posté(e) le 1 juillet 2017 Auteur Posté(e) le 1 juillet 2017 Salutations, Passe en résolu si c'est résolu, Merci, Gauvain Oui j'avais oublié excuse ^^ je le fait
Messages recommandés