Classement
Contenu populaire
Affichage du contenu avec la meilleure réputation le 11/04/2018 dans toutes les zones
-
J'ai tous corriger 100% fonctionnel :) Edit: 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 5 and unbreaking 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%}: 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 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 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%}: 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 0 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%}: 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 0 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 Enchantement fortune fonctionnel options: DynaSpeed: 0.3 #La vitesse de propulsion de la tnt. NNerr: "&cNombres négatifs non-autorisés !" GDynaMSG: "&aTu as reçu %arg 2% dynamite(s) !" DynaCD: "&cUne dynamite a déjà été lancé ! Patientez." variables: {nudyn.%player%} = 0 {cd.dyna.%player%} = false command /dynamite [<text>] [<number>] [<player>]: permission: dynamite.give trigger: if arg 1 is "give": if arg-2 > 0: give arg-2 of stick named "&cDynamite" to arg-3 send {@GDynaMSG} else: send {@NNerr} on rightclick: if player's tool is a stick named "&cDynamite": {nudyn.%player%} < 2 if {cd.dyna.%player%} is false: set {cd.dyna.%player%} to true add 1 to {nudyn.%player%} if {nudyn.%player%} is 2: remove 1 stick named "&cDynamite" from player's inventory set {nudyn.%player%} to 0 spawn 1 primed tnt at player set {Dynaplos} to now push spawned entity in the direction of the player at speed {@DynaSpeed} wait 4 seconds set {cd.dyna.%player%} to false else: send {@DynaCD} Un peu d'optimisation1 point
