-
Compteur de contenus
682 -
Inscription
-
Dernière visite
-
Jours gagnés
27
Type de contenu
Profils
Forums
Téléchargements
Tout ce qui a été posté par Nashoba
-
Non testé: command /dropmoney <int>: trigger: if {money.%player%} is less than arg 1: send "&7[Argent] : &cVous n'avez pas l'argent suffisant" else: if targeted entity is a player: remove arg 1 from {money.%player%} add arg 1 to {money.%target player%} send "&7[Argent] : &6Vous avez ramassé &e%arg 1% &6Dollars" to target player send "&7[Argent] : &6Vous avez laché &e%arg 1% &6Dollars" to player else: remove arg 1 from {money.%player%} drop a gold ingot named "%arg 1% &6Dollars" at targeted block on pickup: if name of item contains "&6Dollars": set {_list::*} to name of item split at " " if {_list::2} is set: if "%{_list::2}%" contains "&6Dollars": set {_number} to {_list::1} parsed as integer if parse error is set: stop add {_number} to {money.%player%}
-
Essaye ceci: if number of all players is greater than 64: format slot 4 of player to 64 of stone named "&9%number of all players% joueurs en ligne!" to be unstealable else: format slot 4 of player to number of all players of stone named "&9%number of all players% joueurs en ligne!" to be unstealable
-
[Problème] Se placer un casque colorer sur la tete avec une commande
Nashoba a répondu à un(e) question de Theo InGames dans Résolus
Pour ChestCommands dans ta config tu dois ajouter pour l'item que tu veux: COLOR: '255, 0, 0' -
Le split permet de découper un string (texte) à chaque fois que la suite de caractères fournis est trouvée. set {_list::*} to "0/20000" split at "/" set {variable} to {_list::1} parsed as integer
-
Voilà, tu dois remplacer TON MONDE par le nom de ton monde: command /spawn: trigger: make console execute command "/spawn %player%" create a citizen named "%player%" at location of player set {_c} to last created citizen id make citizen {_c} invulnerable move citizen {_c} to location (12, 66, 650) in world "TON MONDE" set {citizen.%uuid of player%} to {_c} on command "/warp kit": remove citizen {citizen.%uuid of player%} clear {citizen.%uuid of player%}
-
command /spawn: trigger: make console execute command "/spawn %player%" create a citizen named "%player%" at location of player set {_c} to last created citizen id make citizen {_c} invulnerable move citizen {_c} to location of player set {citizen.%uuid of player%} to {_c} on command "/warp kit": remove citizen {citizen.%uuid of player%} clear {citizen.%uuid of player%}
-
Tu peux le faire avec l'addon SkRayFall: http://dev.bukkit.org/bukkit-plugins/skrayfall/ command /spawn: trigger: make console execute command "/spawn %player%" create a citizen named "%player%" at location of player
-
Problème avec "more than" et "equal" (timer)
Nashoba a répondu à un(e) question de MartinBJdu14 dans Inactifs
Sinon tu peux utiliser if arg-2 is greater than 4: -
Nashoba updated [Addon] WolvSK (1.8, 1.9 &1.10) with a new update entry: WolvSK 1.2 Read the rest of this update entry...
-
Je n'ai jamais eu besoin d'options donc non, jamais utilisé
-
Ah bah je me trompe peut-être... Avec une variable normale il faut mettre les % % mais je n'ai jamais utilisé des variables commencant par @, je ne sais même pas à quoi elle servent
-
Par contre autour de {@Guiname} il faut des %% if "%inventory name of player's current inventory%" is "%{@GUIname}%": Ou encore (sans les guillemets) if inventory name of player's current inventory is {@GUIname}:
-
Tout simplement: on mine of iron ore: if player has permission "TA PERMISSION": set block to air drop 1 iron ingot cancel event Ou même: on mine of iron ore: player has permission "TA PERMISSION" set block to air drop 1 iron ingot cancel event
-
Tu devra créer 3 argument de types number. Si tu ne veux qu'un seul argument tu peux créer un seul argument <text> et en mettant les coos comme ça: /tp 216,64,987. Tu devra ensuite spliter le texte et parser les 3 morceaux en tant qu'integer.
-
N'oublie pas de passer le sujet en résolu
-
Si ça marche n'oublie pas de passer le sujet en résolu
-
Non testé: on item spawn: wait 5 seconds delete event-entity
-
Non testé: command /invsee <player>: trigger: if player has permission "inv.see": open the arg 1's inventory to the player
-
L'argument 2 est du texte, tu essaye donc d'ajouter du texte à un nombre, ça ne foncitonne pas. Tu devrais essayer quelques chose comme ça: command /emoney <text> [<number>] <player>: trigger: if arg 1 is "add": add arg 2 to {gold.%arg 3%} if arg 1 is "remove": remove arg 2 from {gold.%arg 3%} if arg 1 is "look": send "&6Le joueur %arg 3% a &c%{gold.%arg 3%}% &6de money" Ou encore: command /emoney <text> [<number>] [<player>]: trigger: if arg 1 is "add": if arg 3 is set: add arg 2 to {gold.%arg 3%} else: send "Correct usage: /emoney add <money> <player>" if arg 1 is "remove": if arg 3 is set: remove arg 2 from {gold.%arg 3%} else: send "Correct usage: /emoney remove <money> <player>" if arg 1 is "look": if arg 2 is set: if arg 3 is not set: send "&6Le joueur %arg 3% a &c%{gold.%arg 3%}% &6de money" stop send "Correct usage: /emoney look <player>" PS: N'oublie pas de mettre des permissions ;)
-
En fait, ça ne marche pas car tu ne place pas directement le bloc de carotte, ton action sur la terre cultivée avec l'item de carotte fait apparaître le bloc de carotte ensuite. Tu peux donc essayer quelques chose comme ça: on rightclick on farmland holding carrot item: cancel event
-
Et avec un cancel event? on rightclick with shears: if targeted block is wooden door or iron door: if player have permission "police": cancel event send "Patientez..." wait 10 seconds if target block is iron door: open targeted block
-
J'utilise une boucle pour éviter de mettre un grand nombre de ligne
-
Voici un code plus optimisé, général et pour n'importe quel nombre de secondes (il faut changer la variable {_i}): command /spawn: trigger: set {_i} to 5 set {_sec} to {_i} set {_lx} to x-location of player's location set {_ly} to y-location of player's location set {_lz} to z-location of player's location send "&6Téléportation dans &c%{_i}% &6secondes, merci de ne pas bouger!" to player loop {_i} times: wait 1 second set {_sec} to {_sec} - 1 if {_sec} is greater than 0: {_lx} is not x-location of player's location: send "&cVous avez bougé! Téléportation annulée!" to player stop {_ly} is not y-location of player's location: send "&cVous avez bougé! Téléportation annulée!" to player stop {_lz} is not z-location of player's location: send "&cVous avez bougé! Téléportation annulée!" to player stop send "&6Téléportation dans &c%{_sec}% &6secondes..." to player else: teleport player to {spawn} stop