Aller au contenu
  • 0

Changer les drops de pêche


Question

Posté(e)

Bonjour/Bonsoir

 

Version de minecraft / skript : Skript 2.2 dev 27 Minecraft 1.8 à 1.12

Type du Serveur : Mini-Jeux

 

Voilà j'ai actuellement fait un skript de metiers pour mon serveur et les metiers pêcheur peut avoir des livres enchanter quand il pêche

 


on fishing:
   if {survie.metier.%player%} is "Pecheur":
       chance of 80%:
           give 1 enchanted book of sharpness 2
       chance of 80%:
           give 1 enchanted book of sharpness 1
       chance of 80%:
           give 1 enchanted book of sharpness 3
       chance of 80%:
           give 1 enchanted book of knockback 1
       chance of 80%:
           give 1 enchanted book of knockback 2

 

Le seul problème c'est que le on fishing c'est dès qu'il fait un clic droit sur la canne à peche sa lui give un livre alors que je veux que à la place qu'il pêche un poisson je veux qu'il pêche des livres solution ?

 

Voilà Merci à celui qui prendra du temps pour m'aider

 

Bonne journée/soirée

Messages recommandés

  • 0
Posté(e)

Mdr ton UP est totalement inutile :p

Lorsque que tu as un problème comme ça, il te suffit juste de te renseigner sur Internet....

[spoiler=SkUnity]http://skunity.com/search?search=fish#

 

on fishing state of caught fish:
   if {survie.metier.%player%} is "Pecheur":
       chance of 80%:
           give 1 enchanted book of sharpness 2
       chance of 80%:
           give 1 enchanted book of sharpness 1
       chance of 80%:
           give 1 enchanted book of sharpness 3
       chance of 80%:
           give 1 enchanted book of knockback 1
       chance of 80%:
           give 1 enchanted book of knockback 2

 

Ps: Tu ne pourra rien enchanter avec ces bouquins, il faut les gives autrement (Avec un NBT Data), pour ça je t'invite a créer une nouvelle discussion !

Add-ons requires : RandomSK

  • J'aime 1
  • 0
Posté(e)
on fishing state of caught fish:
   if {survie.metier.%player%} is "Pecheur":
       chance of 80%:
           give 1 enchanted book of sharpness 2
           stop
       chance of 80%:
           give 1 enchanted book of sharpness 1
           stop
       chance of 80%:
           give 1 enchanted book of sharpness 3
           stop
       chance of 80%:
           give 1 enchanted book of knockback 1
           stop
       chance of 80%:
           give 1 enchanted book of knockback 2
           stop[code]

  • 0
Posté(e)
Mdr ton UP est totalement inutile :p

Lorsque que tu as un problème comme ça, il te suffit juste de te renseigner sur Internet....

[spoiler=SkUnity]http://skunity.com/search?search=fish#

 

on fishing state of caught fish:
   if {survie.metier.%player%} is "Pecheur":
       chance of 80%:
           give 1 enchanted book of sharpness 2
       chance of 80%:
           give 1 enchanted book of sharpness 1
       chance of 80%:
           give 1 enchanted book of sharpness 3
       chance of 80%:
           give 1 enchanted book of knockback 1
       chance of 80%:
           give 1 enchanted book of knockback 2

 

Ps: Tu ne pourra rien enchanter avec ces bouquins, il faut les gives autrement (Avec un NBT Data), pour ça je t'invite a créer une nouvelle discussion !

Add-ons requires : RandomSK

il connait pas on fishing state of caught fish:

  • 0
Posté(e)

on player fishing:
   if fishing state is caught fish:
       if {survie.join.%player%} is true:
           if {survie.metier.%player%} is "Pecheur":
               chance of 80%:
                   give 1 enchanted book of sharpness 2
                   add 1 to {monstre.%player%}
                   add 1 to {survie.coins.%player%}
               chance of 80%:
                   give 1 enchanted book of sharpness 1
                   add 1 to {monstre.%player%}
                   add 1 to {survie.coins.%player%}
               chance of 80%:
                   give 1 enchanted book of sharpness 3
                   add 1 to {monstre.%player%}
                   add 1 to {survie.coins.%player%}
               chance of 80%:
                   give 1 enchanted book of knockback 1
                   add 1 to {monstre.%player%}
                   add 1 to {survie.coins.%player%}
               chance of 80%:
                   give 1 enchanted book of knockback 2
                   add 1 to {monstre.%player%}
                   add 1 to {survie.coins.%player%}

J'ai que des erreurs 43

  • 0
Posté(e)
Bas sa ligne de code

Sois précis quand tu demandes qlq chose et quand il y erreur. Ils prennent déjà de leurs temps pour t'aider alors si tu réponds pas direct + précisement ca va être dur.

×
×
  • 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.