-
Compteur de contenus
53 -
Inscription
-
Dernière visite
Type de contenu
Profils
Forums
Téléchargements
Tout ce qui a été posté par Eluune
-
Nom du Skript : Téléporteur Version minecraft : 1.8 Comment le Skript doit fonctionner ? Le joueur passant dans une zone prédéfinie de téléportation reçoit Blindness ainsi qu'un Title lui indiquant qu'il va être téléporté dans 3 secondes dans la prochaine zone. Il faut donc initialiser deux points pour créer chaque zone de téléportation ainsi qu'un troisième point permettant d'être téléporté. Jusque là rien de très compliqué. Mais j'aimerai que ce Skript soit paramétrable depuis le jeu. Exemple : Je tape la command "/teleporteur villagetoforet". Et quand j'effectue un premier clique droit avec un stick spécial renommé [Outil de teleportation], ça stock dans une variable {stick.villagetoforet.1} la première position de la zone de tp. Un deuxième clique définie la deuxième position de la zone de tp et un troisième définie l'endroit où le joueur est téléporté. De cette façon, il sera possible de réaliser autant de zone de tp que nécessaire sans avoir à passer par une initialisation dans le code. Je vous remercie d'avance, si vous avez besoin de plus d'informations n'hésitez pas !
-
Je crois pas qu'il soit nécessaire de mettre d'autres variables puisque deux points suffisent pour faire une zone ^^'
-
Qu'est ce que le plugin Creative Gates ?? Pour ce qui est de ta demande concernant la faim qui ne diminue pas dans une zone : on hunger meter change: if player is within {1} to {2}: cancel event En considérant que la zone est la même que celle de du 'no fall damage'.
-
Bon bah j'ai pu tester avec plusieurs joueurs et il y a effectivement un problème... J'essaie de régler a !! Actuellement, si quelqu'un à la solution : le skript fonctionne pour le dernier joueur de la liste mais pas pour les premiers...
-
Mince... attends je teste ça c'est bizarre... command /list: trigger: open chest with 6 rows named "Liste" to player wait 3 ticks set {_slot} to 0 loop all players: set {_head.%{_slot}%} to "%loop-player%" parsed as offline player format slot {_slot} of player with skull of {_head.%{_slot}%} named "&6%{_head.%{_slot}%}%" with lore "" to run [make player execute command "/tp %player% %loop-player%"] wait 3 ticks add 1 to {_slot} J'ai essayé d'aller sur ton TS mais sans succès... Viens sur ts.royalcreeps.fr pour qu'on échange plus simplement. Normalement j'ai réglé le problème mais... comme je suis seul sur mon serveur je n'ai pas pu tester avec plusieurs joueurs...
-
Oui, en effet je n'ai pas rajouté de gain d'argent parce que je ne savais pas comment tu fonctionnais... et quelle commande était utilisée sur ton serveur pour qu'un joueur gagne de l'argent. Donne moi cette commande et je te rajoute tout ça !
-
Oups ! Petite erreur de ma part, je te rectifie ça ! command /list: trigger: open chest with 6 rows named "Liste des joueurs" to player wait 3 ticks set {_slot} to 0 loop all players: set {head.%{_slot}%} to "%loop-player%" parsed as offline player format slot {_slot} of player with skull of {head.%{_slot}%} named "&6%{head.%{_slot}%}%" with lore "" to run [make console execute command "/tp %player% %{head.%{_slot}%}%"] wait 3 ticks add 1 to {_slot} Dis-moi si ça fonctionne. J'avais pas changé mes variables...
-
Autant pour moi xD
-
Désolé, même après avoir un peu cherché sur SkUnity je ne trouve pas de moyen de récupérer le Ping d'un joueur... Sinon le skript est plutôt simple à mettre en place. every 30 seconds: loop all players: set {ping.%loop-player%} to ... if {ping.%loop-player%} is greater than 700: make console execute command "/kick %loop-player% ton ping est trop élevé"
-
Alors... ce n'est pas une liste dans le tchat mais je trouve que ça a plus de gueule :) Dis-moi ce que t'en penses et si ça fonctionne bien ! command /list: trigger: open chest with 6 rows named "Liste des joueurs" to player wait 3 ticks set {_slot} to 0 loop all players: set {head.%{_slot}%} to "%loop-player%" parsed as offline player format slot {_slot} of player with skull of {head.%{_slot}%} named "&6%{_head}%" with lore "" to run [make console execute command "/tp %player% %{head.%{_slot}%}%"] wait 3 ticks add 1 to {_slot}
-
Bon bah j'ai testé ton code, les deux erreurs que tu avais faites étaient juste des erreurs de syntaxe. A savoir : - Skript ne prend pas en compte les noms de variable avec un ' * ' dedans. - [run player command "/selldiamond" as op] >>>> [make player execute command "/selldiamond"] Et pour éviter que le joueur ai des problèmes, tu ne mets pas de permission à ta commande /selldiamond. D'autre part, si j'ai bien compris là où tu veux en venir tu étais en train de réaliser 9 commandes différentes au lieu d'une seule. Donc pour te faciliter la vie je te donne le code que tu aurais du mettre. Voici le code que tu nous as donné corrigé : command /start shop: permission: op trigger: set {2} to 2 set {4} to 4 set {8} to 8 set {16} to 16 set {34} to 34 set {48} to 48 set {56} to 56 set {64} to 64 command /diamond2: permission: op trigger: set {_75} to 75 set {_2} to ({2}*{_75}) set {_4} to ({4}*{_75}) set {_8} to ({8}*{_75}) set {_16} to ({16}*{_75}) set {_34} to ({32}*{_75}) set {_48} to ({48}*{_75}) set {_56} to ({56}*{_75}) set {_64} to ({64}*{_75}) wait 1 ticks open chest with 1 rows named "&bDiamant &7: &e&lvente" to player wait 1 tick format slot 0 of player with a diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix de vente &7: &8%{_75}%$$ " to run [make player execute command "/sell1diamond"] wait 1 ticks format slot 1 of player with 2 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &82 || &8&lPrix de vente &7: &8%{_2}%$ " to run [make player execute command "/sell2diamond"] wait 1 ticks format slot 2 of player with 4 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &84 || &8&lPrix de vente &7: &8%{_4}%$ " to run [make player execute command "sell4diamond"] wait 1 ticks format slot 3 of player with 8 diamond named "&bDiamant &7: &e&8lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &88 || &8&lPrix de vente &7: &8%{_8}%$ " to run [make player execute command "sell8diamond"] wait 1 ticks format slot 4 of player with 16 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &816 || &8&lPrix de vente &7: &8%{_16}%$ " to run [make player execute command "sell16diamond"] wait 1 ticks format slot 5 of player with 34 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &834 || &8&lPrix de vente &7: &8%{_34}%$ " to run [make player execute command "sell34diamond"] wait 1 ticks format slot 6 of player with 48 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &848 || &8&lPrix de vente &7: &8%{_48}%$ " to run [make player execute command "sell48diamond"] wait 1 ticks format slot 7 of player with 56 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &856 || &8&lPrix de vente &7: &8%{_56}%$ " to run [make player execute command "sell56diamond"] wait 1 ticks format slot 8 of player with 64 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &864 || &8&lPrix de vente &7: &8%{_64}%$ " to run [make player execute command "sell64diamond"] Et donc au lieu de mettre des commandes comme "/sell1diamond" ou encore "/sell64diamond" ce qui t'obliges à faire autant de commandes que d'objets dans ton inventaire, tu devrais faire comme ça : Pour la vente d'un diamant par exemple : [make console execute command "/selldiamond 1 %player%"] Avec une commande à arguments : command /selldiamond <number> <player>: Je t'ai fait le code tout entier, le voici : command /start shop: permission: op trigger: set {2} to 2 set {4} to 4 set {8} to 8 set {16} to 16 set {34} to 34 set {48} to 48 set {56} to 56 set {64} to 64 command /diamond2: permission: op trigger: set {_75} to 75 set {_2} to ({2}*{_75}) set {_4} to ({4}*{_75}) set {_8} to ({8}*{_75}) set {_16} to ({16}*{_75}) set {_34} to ({32}*{_75}) set {_48} to ({48}*{_75}) set {_56} to ({56}*{_75}) set {_64} to ({64}*{_75}) wait 1 ticks open chest with 1 rows named "&bDiamant &7: &e&lvente" to player wait 1 tick format slot 0 of player with a diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &81 || &8&lPrix de vente &7: &8%{_75}%$$ " to run [make console execute command "/selldiamond 1 %player%"] wait 1 ticks format slot 1 of player with 2 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &82 || &8&lPrix de vente &7: &8%{_2}%$ " to run [make console execute command "/selldiamond 2 %player%"] wait 1 ticks format slot 2 of player with 4 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &84 || &8&lPrix de vente &7: &8%{_4}%$ " to run [make console execute command "selldiamond 4 %player%"] wait 1 ticks format slot 3 of player with 8 diamond named "&bDiamant &7: &e&8lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &88 || &8&lPrix de vente &7: &8%{_8}%$ " to run [make console execute command "selldiamond 8 %player%"] wait 1 ticks format slot 4 of player with 16 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &816 || &8&lPrix de vente &7: &8%{_16}%$ " to run [make console execute command "selldiamond 16 %player%"] wait 1 ticks format slot 5 of player with 34 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &834 || &8&lPrix de vente &7: &8%{_34}%$ " to run [make console execute command "selldiamond 34 %player%"] wait 1 ticks format slot 6 of player with 48 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &848 || &8&lPrix de vente &7: &8%{_48}%$ " to run [make console execute command "selldiamond 48 %player%"] wait 1 ticks format slot 7 of player with 56 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &856 || &8&lPrix de vente &7: &8%{_56}%$ " to run [make console execute command "selldiamond 56 %player%"] wait 1 ticks format slot 8 of player with 64 diamond named "&bDiamant &7: &e&lvente" with lore "&b&lDescription : || &8&lQuantitée &7: &864 || &8&lPrix de vente &7: &8%{_64}%$ " to run [make console execute command "selldiamond 64 %player%"] command /selldiamond <number> <player>: trigger: if arg 1 is 1: if arg 2 don't have 1 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 1 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 2: if arg 2 don't have 2 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 2 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 4: if arg 2 don't have 4 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 4 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 8: if arg 2 don't have 8 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 8 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 16: if arg 2 don't have 16 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 16 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 34: if arg 2 don't have 34 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 34 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 48: if arg 2 don't have 48 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 48 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 54: if arg 2 don't have 54 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 54 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2 if arg 1 is 64: if arg 2 don't have 64 diamond: message "&c[Erreur] : Vous n'avez pas suffisamment de &3Diamant &cpour effectuer cette action." to arg 2 else: remove 64 diamond from the inventory of arg 2 message "&3[sell] : &7Votre vente s'est effectuée avec &2succès &7!" to arg 2
-
[WorldGuard] auto delete region old player
Eluune a répondu à un(e) sujet de Theminecraft0408 dans Inactifs
En fait, la seule solution que je vois aujourd'hui est d'utiliser un base de données dans laquelle pour chaque joueur tu enregistres la date de dernière déconnexion. Et ensuite, c'est une requete SQL que tu devras faire pour trouver les gens ayant une dernière déco datant de plus de 2 mois. Pour la requête SQL ça donnerait quelque chose comme ça : SELECT * FROM Joueur WHERE date(aujourd'hui) - date(dernière déco) >= 60; Mais il faut déjà avoir un base de données SQL... Je pense pas que ton plugin soit réalisable en Skript... -
Et sinon, quelqu'un aurait une solution à mon problème ? A savoir donc : - définir la cible d'un zombie comme étant le villageois le plus proche - dans mon skript permettant aux zombies de détruire des blocs : empêcher la destruction après la mort du zombie
-
@PsYZiiK tu saurais m'expliquer à quoi sert le 'evaluate' exactement ?
-
Voilà, je t'ai fait un petit Skript. Il est plutôt complet. Dis-moi s'il fonctionne bien ? command /ad <string>: permission: ad.sk trigger: set {vanish.%player%} to false set {freeze.%player%} to false set {fly.%player%} to false if arg-1 is "join": open the player's inventory for the player loop 36 times: set {chest::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player wait 1 tick close the player's inventory clear the player's inventory add blaze rod named "&bFreeze" to player add wooden sword named "&3Knockback" to player add stick named "&5Teleportation aleatoire" to player add nether star named "&cVanish" to player add feather named "&2Fly" to player add water bottle named "&eSac a potions" to player set {ad.%player%} to true if arg-1 is "leave": if {ad.%player%} is true: set {ad.%player%} to false clear the player's inventory wait 3 ticks open the player's inventory for the player loop {chest::%player%::*}: add loop-value to slot loop-index parsed as integer of current inventory of player wait 1 tick close player's inventory on rightclick holding a nether star: if {ad.%player%} is true: if {vanish.%player%} is true: set {vanish.%player%} to false disenchant the player's tool message "&e[Vanish] : &cdesactive" to player loop all players: reveal player to loop-player stop if {vanish.%player%} is false: set {vanish.%player%} to true enchant the player's tool with power 1 message "&e[Vanish] : &2active" to player loop all players: hide player to loop-player stop on rightclick holding a wooden sword: if {ad.%player%} is true: push entity's target in player's direction at speed 1.5 push entity's target upwards at speed 0.4 on rightclick holding a stick: if {ad.%player%} is true: set {_x} to a random number between -10000 and 10000 set {_z} to a random number between -10000 and 10000 set {_loc} to the location at {_x}, 70, {_z} in "world" teleport the player to {_loc} on rightclick holding a blaze rod: if {ad.%player%} is true: if {freeze.%player%} is true: set {freeze.%player%} to false disenchant the player's tool message "&e[blaze rod] : &cdesactivee" to player set {_name} to the targeted player set {freezed.%{_name}%} to false remove slowness from {_name} remove jump boost from {_name} stop if {freeze.%player%} is false: set {freeze.%player%} to true enchant the player's tool with power 1 message "&e[blaze rod] : &2activee" to player set {_name} to the targeted player make console execute command "/effect %{_name}% minecraft:slowness 1000000 100" make console execute command "/effect %{_name}% minecraft:jump_boost 100000 100" stop on rightclick holding a feather: if {ad.%player%} is true: if {fly.%player%} is true: set {fly.%player%} to false disenchant the player's tool message "&e[Fly] : &cdesactive" to player disable fly for player stop if {fly.%player%} is false: set {fly.%player%} to true enchant the player's tool with power 1 message "&e[Fly] : &2active" to player enable fly for player stop on rightclick holding a water bottle: if {ad.%player%} is true: open chest with 1 rows named "&eSac a potion" to player wait 2 ticks format slot 1 of player with sugar named "&bPotion de vitesse" with lore "&7Octroie Vitesse 3 - &810 mn" to run [make console execute command "/effect %player% minecraft:speed 600 3"] format slot 3 of player with blaze powder named "&cPotion de force" with lore "&7Octroie force 2 - &810 mn" to run [make console execute command "/effect %player% minecraft:strength 600 3"] format slot 5 of player with golden carrot named "&9Potion de Vision nocturne" with lore "&7Octroie Vision nocture - &810 mn" to run [make console execute command "/effect %player% minecraft:night_vision 600 3"] format slot 8 of player with water bottle named "&bClear Effet" to run [make console execute command "/heal %player%"] on respawn: wait 3 seconds if {ad.%player%} is true: make player execute command "/ad leave" on join: wait 3 seconds if {ad.%player%} is true: make player execute command "/ad leave" Je l'ai testé et il fonctionne chez moi.
-
[WorldGuard] auto delete region old player
Eluune a répondu à un(e) sujet de Theminecraft0408 dans Inactifs
Salut Theminecraft0408, Dans un premier temps je ne suis pas certain que Skript et Worldguard fonctionne bien correctement ? Si ça fonctionne correctement, alors il faut procéder comme suivant : Quand un joueur se déconnecte, tu enregistres la date. Et chaque jour, tu lances une commandes qui va tester pour chaque joueur si il n'est pas devenu inactif. Il faut donc que ton skript convertisse une date en nombre de jours et qu'il regarde si ce nombre ne dépasse pas 60. En regardant sur SkUnity, j'ai trouvé quelques trucs qui pourraient être intéressant pour toi : # Besoin du plugin Umbaska on disconnect: set {Online.%player%} to resident data last online date of player # Besoin du plugin TuSke # expression : difference between last login of player and now is more than 60 days Pour ce qui est des zones, comment est ce que l'on sait que la zone nommée Theminecraft0405-5 appartient à tel ou tel joueur ? Un autre problème qui me vient à l'esprit, c'est que je ne crois pas que l'on puisse effectuer un test sur tous les joueurs déconnectés... (à vérifier) J'espère t'avoir un peu aidé ! :) -
Ah merci pour ces infos ! J'ai moi même cherché à faire mon skript, surtout sur la partie de la destruction des blocs : voici ce que ça donne ! every 1 second: loop all players: loop entities in radius 40 around loop-player: entity is zombie loop blocks in radius 1 around spawned zombie: loop-blocks isn't grass, dirt, gravel, stone, chest chance of 5%: set loop-blocks to air Mais j'ai un petit problème avec ce skript étant donné que lorsqu'un zombie meurt, les blocs autour du lieu de sa mort continuent à se détruire... Des suggestions ?? Pour ce qui est du target de cible j'ai fait ça : command /invoquer: trigger: spawn 1 zombie above targeted block loop players in radius 40 around spawned zombie: wait a second set spawned zombie's target to the loop-entity Mais encore une fois je ne suis pas bien convaincu par ma trouvaille et j'aimerai pouvoir choisir comme entité ciblé non pas un joueur mais plutôt un villageois... Des idées ? Merci d'avance pour vos réponses :)
-
Totow, Je n'ai pas bien compris qu'est ce qu'il devait se passer avec les outils de glace (freeze / defreeze). Tu peux m'expliquer si c'est une commande que tu as déjà sur ton serveur ou bien si le skript doit comporter une partie sur l'arrêt des mouvements d'un joueur ? Aussi, en attendant de tes nouvelles j'ai effectué un petit skript qui je l'espère répondra à tes attentes (j'ai modifié quelques items parce que ma version de Skript n'est pas la dernière et ne gère pas les barrières / têtes de squelette). Voici le code : command /mod [<player>] [<string>] : permission: mod.admin trigger: if arg 2 is set: if arg 2 is "vanish": if {vanish.%arg 1%} is not set: set {vanish.%arg 1%} to true if {vanish.%arg 1%} is true: set {vanish.%arg 1%} to false loop all players: hide arg 1 to loop-player message "&3[Outil] : &2Vanish active" to arg 1 stop if {vanish.%arg 1%} is false: set {vanish.%arg 1%} to true loop all players: reveal arg 1 to loop-player message "&3[Outil] : &cVanish desactive" to arg 1 stop if arg 2 is "freeze": set {freeze.%arg 1%} to true # N'ayant pas compris le but de cette action, je te laisse libre de me l'expliquer... close the arg 1's inventory if arg 2 is "defreeze": set {defreeze.%arg 1%} to true # N'ayant pas compris le but de cette action, je te laisse libre de me l'expliquer... close the arg 1's inventory if arg 2 is "close": close the arg 1's inventory if arg 2 is "verif": set {verif.%arg 1%} to true message "&3[Outil] : &2Clique droit &7sur un joueur pour afficher ses informations." to arg 1 close the arg 1's inventory if arg 2 is "warn": set {warn.%arg 1%} to true message "&3[Outil] : &2Clique droit &7sur un joueur pour afficher ses warnings !" to arg 1 close the arg 1's inventory if arg 2 is "kill": set {kill.%arg 1%} to true message "&3[Outil] : &2Clique droit &7sur un joueur pour le tuer." to arg 1 close the arg 1's inventory open chest with 1 rows named "Outils modérateurs" to player wait 3 ticks format slot 0 of player with ghast tear named "&3Vanish&f/&9Devanish" with lore "&6Description :||&7Vous rend (in)visible" to run [make console execute command "/mod %player% vanish"] format slot 1 of player with ice named "&7Defreeze" with lore "&6Description :||&7..." to run [make console execute command "/mod %player% freeze"] format slot 2 of player with packed ice named "&8Freeze" with lore "&6Description :||&7..." to run [make console execute command "/mod %player% defreeze"] format slot 4 of player with redstone named "&cQuitter le menu" with lore "&6Description :||&7Ferme le menu" to run [make console execute command "/mod %player% close"] format slot 6 of player with book named "&2Infos Joueur" with lore "&6Description :||&7Vous informe sur le joueur ciblé" to run [make console execute command "/mod %player% verif"] format slot 7 of player with red wool named "&2Infos joueur &4/!\" with lore "&6Description :||&7Vous informe sur le joueur ciblé" to run [make console execute command "/mod %player% warn"] format slot 8 of player with bone named "&cTuer la cible" with lore "&6Description :||&cTue le joueur ciblé &4!!!" to run [make console execute command "/mod %player% kill"] on rightclick: entity's target is a player if {verif.%player%} is true: set {verif.%player%} to false set {_name} to targeted player make player execute command "/verif %{_name}%" if {warn.%player%} is true: set {warn.%player%} to false set {_name} to targeted player make player execute command "/warn %{_name}%" if {kill.%player%} is true: set {kill.%player%} to false set {_name} to targeted player make console execute command "/kill %{_name}%"
-
Pour ce qui est de l'affichage des joueurs dans un GUI : command /list: trigger: open chest with 6 rows named "Joueurs" to player wait 3 ticks set {_slot} to 0 loop all players: set {_head} to "%loop-player%" parsed as offline player format slot {_slot} of player with skull of {_head} named "&6%{_head}%" with lore "" to run [make console execute command ""] wait 3 ticks add 1 to {_slot} Par contre, je n'ai jamais fait de skript de classement... J'aimerai bien comprendre comme ça fonctionne moi même :p En espérant que ça t'aide !
-
C'est dans ces moments là que je me sens vraiment débile :) Merci beaucoup !
-
Renommer un item Description : Minecraft version 1.8 command /rename <string> [<player>]: L'objectif de ce Skript est de renommer un item se trouvant dans l'inventaire du joueur, dans sa main pour être plus précis. Pour donner un exemple : Un joueur pourra utiliser cette commande pour renommer son épée en diamant sharpness 2 en "Epée de %player%" (avec les couleurs).
-
Si je comprends bien, ta demande est plutôt de réaliser une zone dans laquelle les joueurs, de manière aléatoire peuvent être frappé par la foudre environnante. Description du code : Chaque secondes, la foudre peut frapper aléatoirement dans une zone prédéfinie par des coordonnées (à paramétrer). Si jamais un joueur se trouve dans un rayon (à paramétrer) proche de la position de l'éclair il y a une chance pour qu'un éclair lui tombe également dessus lui infligeant 3.5 points de dégâts. Chaque secondes, un certain nombre d'éclairs peuvent apparaître en même temps selon les probabilités. (à paramétrer le nombre d'éclairs possibles / le pourcentage de chance qu'ils apparaissent) command /foudre: trigger: # "between 0 and 10" à modifier pour donner les coordonnées de la zone voulue set {x} a random integer between 0 and 10 set {z} a random integer between 0 and 10 # pour un lightning strike la coordonnée y importe peu. Par défaut je la met à 64. set {loc} to the location at {x1}, 64, {z1} in "world" strike lightning at {_loc} command /strike: trigger: # "in radius 20" à modifier pour coller avec la taille de la zone loop all players in radius 20 around {loc}: chance of 20%: strike lightning at the loop-player damage player by 3.5 hearts every 1 seconds: chance of 80%: make console execute command "/foudre" make console execute command "/strike" chance of 60%: make console execute command "/foudre" make console execute command "/strike" chance of 40%: make console execute command "/foudre" make console execute command "/strike" chance of 20%: make console execute command "/foudre" make console execute command "/strike" # Ajouter autant d'itérations que nécessaire (ici 4). Si besoin d'un grand nombre d'éclairs passer par un boucle while comme suit : # every 1 seconds: # set {i} to 10 # nombre d'éclairs maximum toutes les secondes # set {chance} to 100 # pourcentage de chance d'apparition du premier éclair # while {i} is greater than 0: # chance of %{chance}%%: # make console execute command "/foudre" # make console execute command "/strike" # add -1 to {i} # add -10 to {chance} # réduction progressive du pourcentage de chance (si nécessaire) J'espère avoir répondu à tes attentes ! ;)
-
Bonjour les amis, Nom : invasion.sk Description : skript qui octroi à un zombie de détruire les blocs environnants (sans toucher au sol qui est en grass / cobblestone / gravel). le zombie doit également target le joueur le plus proche (40 blocs de distance) Supplément 1 : le zombie peut aléatoirement target entre le joueur et un villageois bien spécifique que l'on fait spawn. Supplément 2 : si le zombie pouvait etre configurable pour qu'on puisse lui rajouter de la vie, des équipements (arme), ce serait parfait !! Pour vous expliquer un peu plus en détail mon iďée, elle est de réaliser une invasion de zombies, le but étant de survivre pour le joueur et de protéger la cible qu'est le villageois. Merci d'avance ;)
-
Bonjour les amis ! Je commence tout juste la mise en place d'un jeu de carte style Hearthstone sur minecraft et j'aimerai le faire fonctionner directement dans un Menu Interactif (Menu GUI). Voici mon bout de code : command /listcarte: trigger: set {item.carte.list::*} to empty wait 3 ticks add spawn egg:50 named "&4Creeeeeeper !" with lore "&6Description :||&7- &9ATQ : &86 &7- &cVie : &82||&7- &5Cout : &82 &7- &2Type : &8Cac||&eExplose au contact||&dCraint l'eau||" to {item.carte.list::*} add spawn egg:51 named "&bArcher squelette" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &83||&7- &5Cout : &81 &7- &2Type : &8Dist||&dCraint le jour||" to {item.carte.list::*} add spawn egg:52 named "&bAraignee" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &83||&7- &5Cout : &82 &7- &2Type : &8Cac||&eTerrain : &8toile||" to {item.carte.list::*} add spawn egg:54 named "&bZombie" with lore "&6Description :||&7- &9ATQ : &83 &7- &cVie : &83||&7- &5Cout : &82 &7- &2Type : &8Cac||&dCraint le jour||" to {item.carte.list::*} add spawn egg:55 named "&bSlime" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &83||&7- &5Cout : &81 &7- &2Type : &8Cac||&einvoque un slime 2/1 a la mort||&dCraint l'eau" to {item.carte.list::*} add spawn egg:56 named "&bGhast" with lore "&6Description :||&7- &9ATQ : &84 &7- &cVie : &83||&7- &5Cout : &82 &7- &2Type : &8Dist||" to {item.carte.list::*} add spawn egg:57 named "&bZombie Pigman" with lore "&6Description :||&7- &9ATQ : &83 &7- &cVie : &84||&7- Cout : &82 &7- &2Type : &8Cac||&eTous les Pigman attaquent la cible" to {item.carte.list::*} add spawn egg:58 named "&bEnderman" with lore "&6Description :||&7- &9ATQ : &85 &7- &cVie : &84||&7- &5Cout : &83 &7- &2Type : &8Cac||&eAttaque aleatoirement||&dCraint la pluie" to {item.carte.list::*} add spawn egg:59 named "&bAraignee des caves" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &82||&7- &5Cout : &82 &7- &2Type : &8Cac||&eInflige poison (2 tours)||" to {item.carte.list::*} add spawn egg:60 named "&bSilverfish" with lore "&6Description :||&7- &9ATQ : &81 &7- &cVie : &82||&7- &5Cout : &82 &7- &2Type : &8Cac||&eNe peut être attaque au Cac||&e25%% de chance d'esquiver||" to {item.carte.list::*} add spawn egg:61 named "&bBlaze" with lore "&6Description :||&7- &9ATQ : &81 &7- &cVie : &83||&7- &5Cout : &83 &7- &2Type : &8Dist||&eEnflame trois cibles(35%% raté)||&dCraint l'eau||" to {item.carte.list::*} add spawn egg:62 named "&bMagma Cube" with lore "&6Description :||&7- &9ATQ : &81 &7- &cVie : &85||&7- &5Cout : &82 &7- &2Type : &8Cac||&eExplose à la mort||&dCraint l'eau||" to {item.carte.list::*} add spawn egg:65 named "&bChauve-souris" with lore "&6Description :||&7- &9ATQ : &80 &7- &cVie : &84||&7- &5Cout : &81 &7- &2Type : &8Cac||&e80%% d'esquive||" to {item.carte.list::*} add spawn egg:66 named "&bWitch" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &83||&7- &5Cout : &83 &7- &2Type : &8Dist||&eAleatoirement Soigne ou Inflige des degats||" to {item.carte.list::*} add spawn egg:67 named "&bEndermite" with lore "&6Description :||&7- &9ATQ : &82 &7- &cVie : &82||&7- &5Cout : &82 &7- &2Type : &8Cac||" to {item.carte.list::*} add spawn egg:68 named "&bGuardien" with lore "&6Description :||&7- &9ATQ : &83 &7- &cVie : &85||&7- &5Cout : &84 &7- &2Type : &8Dist||&dCraint les eclairs||" to {item.carte.list::*} command /deck: trigger: open chest with 1 rows named "RoyalDeck" to player wait 3 ticks format slot 2 of player with crafting table named "Créer son deck" with lore "" to run [make console execute command "/creerdeck %player%"] format slot 4 of player with anvil named "Modifier son deck" with lore "" to run [make console execute command "/modifdeck %player%"] format slot 6 of player with paper named "Regarder ses cartes" with lore "" to run [make console execute command "/checkcarte %player%"] command /creerdeck <player>: trigger: open chest with 6 rows named "Crée ton Deck" to player wait 3 ticks set {_slot} to 0 command /duel: trigger: open chest with 6 rows named "Joueurs" to player wait 3 ticks set {_slot} to 0 loop all players: set {_head} to "%loop-player%" parsed as offline player format slot {_slot} of player with skull of {_head} named "&6%{_head}%" with lore "" to run [make console execute command "/carte %player% %{_head}%"] wait 3 ticks add 1 to {_slot} command /carte <player> <player>: trigger: message "&6[Duel] : &7Vous venez d'envoyer une demande de duel de cartes à %arg 2% !" to arg 1 message "&6[Duel] : &7%arg 1% vous demande en duel. &c/accept %arg 1% &7pour accepter le duel" to arg 2 set {demande.%arg 1%} to "attente" set {reponse.%arg 2%} to "attente" wait 30 seconds if {demande.%arg 1%} is "accept": stop if {demande.%arg 1%} is "attente": set {demande.%arg 1%} to "refus" set {reponse.%arg 2%} to "refus" message "&6[Duel] : &7Demande de duel refusé ou délai dépassé !" to arg 1 command /accept <player>: trigger: if {demande.%arg 1%} is "attente": if {reponse.%player%} is "attente": set {demande.%arg 1%} to "accept" set {reponse.%player%} to "accept" make console execute command "/initialisation %player% %arg 1%" command /initialisation <player> <player>: trigger: set {terrain.%arg 1%.%arg 2%} to "plaine" set {vie.%arg 1%} to 20 set {vie.%arg 2%} to 20 set {attaque.%arg 1%} to 5 set {attaque.%arg 2%} to 5 set {defense.%arg 1%} to 5 set {defense.%arg 2%} to 5 set {use.%arg 1%} to 0 set {use.%arg 2%} to 0 make console execute command "/tour %arg 1% %arg 2%" make console execute command "/tour %arg 2% %arg 1%" command /placement <player> <item> <integer>: trigger: if {use.%arg 1%} is 3: format slot 34 of arg 1 with arg 2 to run [make console execute command ""] format slot arg 3 of arg 1 with gray stained glass pane named " " with lore "" to run [make console execute command ""] if {use.%arg 1%} is 2: format slot 32 of arg 1 with arg 2 to run [make console execute command ""] format slot arg 3 of arg 1 with gray stained glass pane named " " with lore "" to run [make console execute command ""] add +1 to {use.%arg 1%} if {use.%arg 1%} is 1: format slot 30 of arg 1 with arg 2 to run [make console execute command ""] format slot arg 3 of arg 1 with gray stained glass pane named " " with lore "" to run [make console execute command ""] add +1 to {use.%arg 1%} if {use.%arg 1%} is 0: format slot 28 of arg 1 with arg 2 to run [make console execute command ""] format slot arg 3 of arg 1 with gray stained glass pane named " " with lore "" to run [make console execute command ""] add +1 to {use.%arg 1%} wait 1 second command /tour <player> <player>: trigger: open chest with 6 rows named "Choisissez 4 cartes" to arg 1 wait 3 ticks # Pioche de cartes set {_slot} to 46 while {_slot} isn't 53: set {randomitem} to random element out of {item.carte.list::*} add a random item out of {randomitem} to the player if {_slot} is 46: set {slot1.%arg 1%} to {randomitem} if {_slot} is 47: set {slot2.%arg 1%} to {randomitem} if {_slot} is 48: set {slot3.%arg 1%} to {randomitem} if {_slot} is 49: set {slot4.%arg 1%} to {randomitem} if {_slot} is 50: set {slot5.%arg 1%} to {randomitem} if {_slot} is 51: set {slot6.%arg 1%} to {randomitem} if {_slot} is 52: set {slot7.%arg 1%} to {randomitem} set {slot} to {_slot} format slot {_slot} of arg 1 with {randomitem} to run [make console execute command "/placement %arg 1% %{randomitem}% %{slot}%"] wait 3 tick add 1 to {_slot} # Ne change jamais format slot 0 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 1 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 2 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 3 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 4 of arg 1 with skull of arg 2 named "&4%arg 2%" with lore "&5Vie : &6%{vie.%arg 2%}%||&5Attaque : &6%{attaque.%arg 2%}%||&5Armure : &6%{armure.%arg 2%}%" to run [make console execute command ""] format slot 5 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 6 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 7 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 8 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 36 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 37 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 38 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 39 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 40 of arg 1 with skull of arg 1 named "&3%arg 1%" with lore "&5Vie : &6%{vie.%arg 1%}%||&5Attaque : &6%{attaque.%arg 1%}%||&5Armure : &6%{armure.%arg 1%}%" to run [make console execute command ""] format slot 41 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 42 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 43 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 44 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 9 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 11 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 13 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 15 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 17 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 27 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 29 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 31 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 33 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] format slot 35 of arg 1 with black stained glass pane named " " with lore "" to run [make console execute command ""] # Terrain if {terrain.%arg 1%.%arg 2%} is "plaine": format slot 18 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 19 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 20 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 21 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 22 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 23 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 24 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 25 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] format slot 26 of arg 1 with green stained glass pane named "&2Plaine" with lore "&6Description :||&7Aucune incidence sur le jeu" to run [make console execute command ""] if {terrain.%arg 1%.%arg 2%} is "lave": format slot 18 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 19 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 20 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 21 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 22 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 23 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 24 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] format slot 25 of arg 1 with red stained glass pane named "&4Lave" with lore "&6Description :||&7brule les attaquant au cac (2T)" to run [make console execute command ""] Le problème auquel je me heurte, c'est que tout fonctionne jusqu'à l'utilisation de la première carte, mais la deuxième n'a aucun effet et n'actualise pas le Menu... Quelqu'un aurait-il une solution à mon problème ? J'ai bien pensé qu'il pourrait être nécessaire de fermer le menu pour le réouvrir, mais sans succès ici aussi.
