Aller au contenu
  • 0

error skript hammeur


Question

Posté(e)

Sujet :

* Version de minecraft : spigot 1.12.2

* Version de plugin skriot : dev36

 

Bonjour, alors voilà j'ai changer d'hébergeur, toujours la même version de Minecraft, sauf que quand j'ai r'ajouter ce skript que j'avais sur mon ancien serveur bah j'ai 3 erreur.

 

Code du skript :

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

 

Image des erreurs :

1528291286-capture.png

7 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Sujet :

* Version de minecraft : spigot 1.12.2

* Version de plugin skriot : dev36

 

Bonjour, alors voilà j'ai changer d'hébergeur, toujours la même version de Minecraft, sauf que quand j'ai r'ajouter ce skript que j'avais sur mon ancien serveur bah j'ai 3 erreur.

 

Code du skript :

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

 

Image des erreurs :

1528291286-capture.png

Tu as bien Skellett ? car cette syntaxe provient de là il me semble

  • J'aime 1
  • 0
Posté(e)
change avec:

set location of loop-block to air

Oui mais du coup ça fait plus ce qu'il veut, de plus que y'a plus l'animation de destruction et les effet de fortune...

  • 0
Posté(e)
Ouais moi je voudrais garder le même code sauf savoir pourquoi sa marche plus car sa marcher bien avant :/

Essaye de voir dans la config skellett si il faut pas activer ça quelque part, genre dans le syntaxe.yml ou autre

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.