Aller au contenu
  • 0

Le "on damage" ne marche pas!


Question

Posté(e)

on damage:
   shooter is holding a Gold horse armor named "&e&lM16A4"
   shooter is a player
   projectile is a snowball
   damage victim by 6
   message "test" to shooter

 

 

 

J'ai essayé de multiple de fois de faire un dommage a une entity sans succès

Mais cela marche comme ça mais j'aime pas le projectile hit:

 

on projectile hit:
   shooter is holding a Gold horse armor named "&e&lM16A4t"
   projectile is a snowball
   set {_block} to location of projectile
   loop entities:
       distance between the loop-entity and {_block} is between 1 and 2:
           damage loop-entity by 4
       distance between the loop-entity and {_block} is between 2 and 3:
           damage loop-entity by 4
       distance between the loop-entity and {_block} is between 3 and 4:
           damage loop-entity by 3.5
       distance between the loop-entity and {_block} is between 4 and 5:
           damage loop-entity by 3.5
       distance between the loop-entity and {_block} is between 5 and 6:
           damage loop-entity by 3.5
       distance between the loop-entity and {_block} is between 6 and 7:
           damage loop-entity by 3    

 

Vous pouvez m'aider à trouver le problème ?

3 réponses à cette question

Messages recommandés

  • 0
Posté(e)

on damage:
   attacker is holding a Gold horse armor named "&e&lM16A4"
   attacker is a player
   damage victim by 6
   message "test" to attacker

Y'a pas de projectile dans un ondamage

  • 0
Posté(e)
on damage:
   attacker is holding a Gold horse armor named "&e&lM16A4"
   attacker is a player
   damage victim by 6
   message "test" to attacker

Y'a pas de projectile dans un ondamage

Si il y a des "If projectile is a snowball" c'est une condition.

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