Aller au contenu

Classement

Contenu populaire

Affichage du contenu avec la meilleure réputation le 07/05/2018 dans toutes les zones

  1. Ok j'ai corrigé et j'ai aussi ajouté pour les joueurs qui sont add dans un claim Par contre pas terrible l'optimisation de ton claim mais pas grave, Voici le code ^^: options: GHamMSG: "&aTu as reçu %arg 2% hammeur(s) !" NNerr: "&cNombres négatifs non-autorisés !" command /hammeur [<text>] [<number>] [<player>]: permission: hammeur.give trigger: if arg 1 is "give": if arg-2 > 0: give arg-2 of iron pickaxe of efficiency 6 and unbreaking 4 and fortune 3 named "&c[&6Hammeur&c]" to arg-3 send {@GHamMSG} else: send {@NNerr} on break: if name of player's tool is "&c[&6Hammeur&c]": set {_1.%player%} to location of event-block set {_2.%player%} to location of event-block if player's pitch is between -50 and 50: add 1 to y-coord of {_1.%player%} subtract 1 from y-coord of {_2.%player%} if player's horizontal facing is west or east: add 1 to z-coord of {_1.%player%} subtract 1 from z-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to player: set {_ok} to true if {chunk.%chunk at location of player%.%player%} is equal to true: set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 2%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%: drop 5 diamond at loop-block else if player's horizontal facing is north or south: add 1 to x-coord of {_1.%player%} subtract 1 from x-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to player: set {_ok} to true if {chunk.%chunk at location of player%.%player%} is equal to true: set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 3%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%: drop 5 diamond at loop-block else: add 1 to x-coord of {_1.%player%} add 1 to z-coord of {_1.%player%} subtract 1 from x-coord of {_2.%player%} subtract 1 from z-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to player: set {_ok} to true if {chunk.%chunk at location of player%.%player%} is equal to true: set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 3%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%: drop 5 diamond at loop-block
    1 point
  2. Ha oui j'ai fais une erreurs d’inattention, essaye ça : options: GHamMSG: "&aTu as reçu %arg 2% hammeur(s) !" NNerr: "&cNombres négatifs non-autorisés !" command /hammeur [<text>] [<number>] [<player>]: permission: hammeur.give trigger: if arg 1 is "give": if arg-2 > 0: give arg-2 of iron pickaxe of efficiency 6 and unbreaking 4 and fortune 3 named "&c[&6Hammeur&c]" to arg-3 send {@GHamMSG} else: send {@NNerr} on break: if name of player's tool is "&c[&6Hammeur&c]": set {_1.%player%} to location of event-block set {_2.%player%} to location of event-block if player's pitch is between -50 and 50: add 1 to y-coord of {_1.%player%} subtract 1 from y-coord of {_2.%player%} if player's horizontal facing is west or east: add 1 to z-coord of {_1.%player%} subtract 1 from z-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to "%player%": set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 2%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%: drop 5 diamond at loop-block else if player's horizontal facing is north or south: add 1 to x-coord of {_1.%player%} subtract 1 from x-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to "%player%": set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 3%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%: drop 5 diamond at loop-block else: add 1 to x-coord of {_1.%player%} add 1 to z-coord of {_1.%player%} subtract 1 from x-coord of {_2.%player%} subtract 1 from z-coord of {_2.%player%} loop blocks within {_1.%player%} to {_2.%player%}: if {chunk.%chunk at location of loop-block%} is not set: set {_ok} to true if {chunk.%chunk at location of loop-block%} is equal to "%player%": set {_ok} to true if {_ok} is equal to true: id of loop-block isn't 7 or 8 or 9 or 10 or 11 or 138 or 49 or 47 or 52 or 87 or 0 or 89 or 17 or 5 or 80 or 65 break loop-block with player's tool if player's tool is enchanted with fortune 1: chance of 3%: drop 1 diamond at loop-block else if player's tool is enchanted with fortune 2: chance of 3%: drop 2 diamond at loop-block else if player's tool is enchanted with fortune 3: chance of 3%: drop 3 diamond at loop-block else if player's tool is enchanted with fortune 4: chance of 3%: drop 4 diamond at loop-block else if player's tool is enchanted with fortune 5: chance of 3%:
    1 point
×
×
  • 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.