
010101012
-
Compteur de contenus
12 -
Inscription
-
Dernière visite
Type de contenu
Profils
Forums
Téléchargements
Messages posté(e)s par 010101012
-
-
Le 01/05/2020 à 20:11, Lou' a dit :
Essaie ceci :
format slot 18 of {_p} with stick named "Stade1" to run: make {_p} execute command "/%{_npc}% 1" format slot 30 of {_p} with stick named "Stade2" to run: make {_p} execute command "/%{_npc}% 2" format slot 12 of {_p} with stick named "Stade2" to run: make {_p} execute command "/%{_npc}% 3" format slot 23 of {_p} with Blaze rod named "Stade3" to run: make {_p} execute command "/%{_npc}% 4" format slot 25 of {_p} with Blaze rod named "Stade4" to run: make {_p} execute command "/%{_npc}% 5"
Toutefois, tu peux aussi faire :
format slot 18 of {_p} with stick named "Stade1" to close then run [execute player command "/%{_npc}% 1"] format slot 30 of {_p} with stick named "Stade2" to close then run [execute player command "/%{_npc}% 2"] format slot 12 of {_p} with stick named "Stade2" to close then run [execute player command "/%{_npc}% 3"] format slot 23 of {_p} with Blaze rod named "Stade3" to close then run [execute player command "/%{_npc}% 4"] format slot 25 of {_p} with Blaze rod named "Stade4" to close then run [execute player command "/%{_npc}% 5"]
Merci de ta réponse mais le problème étant que dans une fonction il n'y as pas de Player donc ça ne peux pas fonctionner de cette façon
-
Version de Minecraft : 1.12.2
Version de Skript : 2.2.5-alpha3Addons utilisés: SkBee-1.1.0,SkQuery-Lime 4.1.2,TuSKe
Type du skript :
Description du script :
Bonjour à tous et as toute,
Comme le titre l'indique je rencontre un petit problème avec une fonction 😅
function menu(p: player,npc: text): wait 0.2 seconds close inventory of {_p} wait 1 ticks open chest with 5 rows named "Equipement des %{_npc}%s" to {_p} if {%{_p}%.Money} < 5000: format slot 19 of {_p} with Red Stained Glass Pane to be unstealable format slot 11 of {_p} with Red Stained Glass Pane to be unstealable format slot 29 of {_p} with Red Stained Glass Pane to be unstealable else: format slot 19 of {_p} with Green Stained Glass Pane to be unstealable format slot 11 of {_p} with Green Stained Glass Pane to be unstealable format slot 29 of {_p} with Green Stained Glass Pane to be unstealable if {%{_p}%.Money} < 25000: format slot 31 of {_p} with Red Stained Glass Pane to be unstealable format slot 22 of {_p} with Red Stained Glass Pane to be unstealable format slot 13 of {_p} with Red Stained Glass Pane to be unstealable else: format slot 31 of {_p} with Green Stained Glass Pane to be unstealable format slot 22 of {_p} with Green Stained Glass Pane to be unstealable format slot 13 of {_p} with Green Stained Glass Pane to be unstealable if {%{_p}%.Money} < 50000: format slot 24 of {_p} with Red Stained Glass Pane to be unstealable else: format slot 31 of {_p} with Green Stained Glass Pane to be unstealable format slot 18 of {_p} with stick named "Stade1" to run [make {_p} say "/%{_npc}% 1"] format slot 30 of {_p} with stick named "Stade2" to run [make {_p} execute command "/%{_npc}% 2"] format slot 12 of {_p} with stick named "Stade2" to run [make {_p} execute command "/%{_npc}% 3"] format slot 23 of {_p} with Blaze rod named "Stade3" to run [make {_p} execute command "/%{_npc}% 4"] format slot 25 of {_p} with Blaze rod named "Stade4" to run [make {_p} execute command "/%{_npc}% 5"]
Ces une fonction assez basique mais je ne sais pour quelle raison les 5 dernières lignes ne fonctionne pas...
Le menu marche bien mais rien ne ce passe quand je clic sur les différents items
Merci de votre aide ^^
-
Armure teinte
dans Résolus
il y a 47 minutes, LOUDO a dit :Salut ! Pour donner une armure coloré c'est
set helmet of player to leather dye loop-value's helmet red
D'acc mrc ça f déjà 2 fois tu m'aide 😀
-
Armure teinte
dans Résolus
Version de Minecraft : 1.12.2
Version de Skript : 2.X.XAddons utilisés: aucun
Type du skript :
Description du script :
Bonjour à tous et à toute,
Je souhaiterai équiper un joueur d'une armure en cuir teinte en rouge quand il entre un commande.
Mal heureusement je ne trouve pas l'id des armure teinte dans je me retrouve donc incapable de d’équiper met joueurs
Si quelqu'un pouvais m'aider à compléter mon bout de code ^^
set the helmet of player to ????
Merci d'avance a tous ceux qui prendrons le temps de ce pencher sur mon problème ^^'
-
Mineur de chunk
dans Inactifs
Il y a 9 heures, LystingMc a dit :Version de Minecraft : 1.8.8
Version de Skript : 2.X.XType du skript : Skript a exécuter dans une commande
Description du script :
Bonjour, jaimerai savoir comment crée un mineur de chunck ( lorsque l'on fait click droit avec un item, il mine entièrement le chunk ou il est posé)
Slt LystingMC,
va voir la ==> https://skript-mc.fr/forum/topic/17242-demande-un-chunkminer/?tab=comments#comment-138654
ça existe déjà
-
Il y a 7 heures, zUser a dit :
Oui exactement et grâce a toi j'ai réussi a faire ce que je voulais il me suffisait de comprendre ta logique et voici comment j'ai fait :
Si ta trouver tu peux mettre le sujet en résolu 😅
-
-
il y a 1 minute, LOUDO a dit :
on break: if player is in world "Tntwar": if {Tnt.game} = true: if {bloc.%{counterbloc}%.bloctype} is not set: add 1 to {counterbloc} set {bloc.%{counterbloc}%} to event-location set {bloc.%{counterbloc}%.bloctype} to true set {bloc.%{counterbloc}%.bloctype} to type of event-block
Et je te conseille de supprimer les variables {bloc.%{counterbloc}%} to event-location {bloc.%{counterbloc}%.bloctype} {bloc.%{counterbloc}%.bloctype} à la fin du regen etc.... Car sinon elle vont rester avec la même valeur et les blocs au regen ne vont pas se remettre comme avant
D'acc et pour remettre mes bloc comme avant tu aurais pas une idée ?
-
Slt Spinogl,
je suis nouveau ici mais bon je crois avoir trouver la solution a ton problème
command /jeu [<text>] [<text>] [<text>]: trigger: if arg 1 = "addplayer": execute console command "/scoreboard teams join %arg 2% %arg 3%" set the player's tablist name to "<%arg 2%>%arg 3%" send "<%arg 2%>%arg-3%&f est désormais dans l'équipe <%arg 2%>%arg 3%" if arg 1 = "removeplayer": execute console command "/scoreboard teams leave %arg 2% %arg 3%" set the player's tablist name to "&r%arg 3%" send "%arg 3%&f n'est désormais plus dans l'équipe <%arg 2%>%arg-2%"
Certes c'est pas le meilleur code au monde mais il fonctionne ^^'
Après à toi de l'optimiser et de le rendre meilleur
Edit: Aprés tu dois juste mettre les nom des equipes en anglais et pas francais
-
Il y a 9 heures, LOUDO a dit :
Salut, peux-tu être plus précis ? Tu veux que les blocs se remplace par de l'air.. ?
Slt,
non mon but n'est pas de remplacer par de l'air ça je le fais déjà pour les bloc qui ont été placer🙂
Mais je souhaiterai que une fois la partie terminer tt les bloc qui aurait été casser respawn un peux comme si je pouvais remonter dans le temps
Pour remettre ma map dans l'états avant le début de la partie
-
Version de Minecraft : 1.12.2
Version de Skript : 2.2-dev32cAddons utilisés: aucun
Type du skript : Ecrivez ici le type de skript souhaité
Description du script :
Bonjour à tous et a toute,
Alors voila il y as 2 jours je me suis dis que j'allais faire un skript de tntwar... Mais a mon grand désarroi une partie m’échappe.
Celle ou après la partie la map ce reconstruit d'elle même...
#===================================================================================================================# #= =# #= =# #= TnTwar system =# #= By 010101012 [Trinity server] =# #= =# #= =# #===================================================================================================================# variables: {Tnt.Timer} = 0 {counterbloc} = 1 {bloc.counterbloc} = 0 {bloc.counterbloc.bloctype} = "" {Tnt.game} = false command /Tntwar join: aliases: /tw join trigger: set {Tnt.game} to true set {Tnt.Timer} to 10 set {counterbloc} to 0 #===========================================================================================================# #= Mur =# #===========================================================================================================# set {y} to 0 set {z} to -1 loop 49 times: add 1 to {z} set {y} to 0 loop 56 times: set block at location at 206, 59-{z}, 277+{y} in world "Tntwar" to Red Hardened Clay set block at location at 207, 59-{z}, 277+{y} in world "Tntwar" to sand set block at location at 208, 59-{z}, 277+{y} in world "Tntwar" to sand set block at location at 209, 59-{z}, 277+{y} in world "Tntwar" to sand set block at location at 210, 59-{z}, 277+{y} in world "Tntwar" to Blue Hardened Clay set block at location at 206, 10, 277+{y} in world "Tntwar" to glowstone set block at location at 207, 10, 277+{y} in world "Tntwar" to glowstone set block at location at 208, 10, 277+{y} in world "Tntwar" to glowstone set block at location at 209, 10, 277+{y} in world "Tntwar" to glowstone set block at location at 210, 10, 277+{y} in world "Tntwar" to glowstone add 1 to {y} #===========================================================================================================# #= Timer =# #===========================================================================================================# message "La partie Commence" to player while {Tnt.Timer} is bigger than 0: subtract 1 from {Tnt.Timer} send {Tnt.Timer} to player wait 1 second message "fin" to player set {Tnt.game} to false #===========================================================================================================# #= Effacement des blocs =# #===========================================================================================================# while {counterbloc} is bigger than 0: if {bloc.%{counterbloc}%.bloctype} is set: Set the block at {bloc.%{counterbloc}%} to {bloc.%{counterbloc}%.bloctype} subtract 1 from {counterbloc} else: Set the block at {bloc.%{counterbloc}%} to air subtract 1 from {counterbloc} #===========================================================================================================# #= placement en jeu =# #===========================================================================================================# on place: if player is in world "Tntwar": if {Tnt.game} = true: add 1 to {counterbloc} set {bloc.%{counterbloc}%} to event-location
Si on pouvais m'aidé ^^'
Petit problème avec une fonction
dans Inactifs
Posté(e)
Nn je suis pas debutant XD
Juste j'avais un probleme avec TuSKe et il prenais pas mes ligne j donc du faire avec SkQuery qui prend pas en charge les variable joueur ici ==>
execute player command "/%{_npc}% 1"