Aller au contenu
  • 0

Mettre un Wither immortel


Question

Posté(e)

Bonjour,

 

J'ai voulu faire un shop avec un wither, donc j'ai fait spawn un wither etc mais tout les wither sont immortel je vous montre le code vous allez mieux comprendre ;)

 

           
command /setwither:
   permission: wither.spawn
   trigger:
       spawn a {@mob} at player
       set name of spawned {@mob} to "{@namemob}"
       set {loc.wither} to location of player
       apply weakness 255 to the spawned {@mob} for 999999999 days
       apply blindness 250 to the spawned {@mob} for 999999999 days
       apply jump -10 to the spawned {@mob} for 999999999 days
       apply speed -10 to the spawned {@mob} for 999999999 days
       apply regeneration 255 to the spawned {@mob} for 999999999 days
every 1 tick:
   loop all entities:
       if loop-entity is a {@mob}:
           if name of loop-entity is "{@namemob}":
               teleport loop-entity to {loc.noel.sondage}
on damage:
   if attacker is "{@mob}":
       if attacker is "{@namemob}":
           cancel event
   if victim is "{@mob}":
       if victim is "{@namemob}":
           cancel event

 

Donc je voudrais que le wither qui spawn avec le commande /setwither et y'a que ce WITHER qui peut être immortel

 

thanks

2 réponses à cette question

Messages recommandés

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