Aller au contenu
  • 0

Aide moi sur mouton


Question

Posté(e)

command /mouton:
   permission: mouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       spawn a sheep at player
       set name of spawned sheep to "&cMouton disco"
       send "&c[&eMouton&c] &aMouton invoquee"

on damage:
   victim is a sheep
   cancel event

every 2 second:
   loop all sheep:
       set the colour of entity to white
       wait 1 second
       set the colour of entity to red
       wait 1 second
       set the colour of entity to orange
       wait 1 second
       set the colour of entity to blue
       wait 1 second
       set the colour of entity to pink
       wait 1 second
       set the colour of entity to brown
       wait 1 second

command /delmouton:
   permission: delmouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       loop all sheep:
           kill loop-entity
           send "&c[&eMouton&c] &aMouton tuée"

 

 

Voila le code mais il y as problem je voudrais faire un mouton invincible et qui change de couleur tous seul

Mais que dans un monde invincibilite

 

Donc merci de m'aide

 

Le monde en question : HUB

12 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Bonjour,

Il te faut Umbaska 2.0, tu veut que le mouton puisse seulement spawn dans le monde HUB c'est bien ça ?

 

command /mouton:
   permission: mouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       spawn a sheep at player
       set {_sheep} to last spawned entity
       set name of entity from {_sheep} to "&cMouton disco"
       add "blue" to {_color::*}
       add "red" to {_color::*}
       add "green" to {_color::*}
       add "orange" to {_color::*}
       add "cyan" to {_color::*}
       add "yellow" to {_color::*}
       while entity from {_sheep} is alive:
           set {_color} to a random object out of {_color::*}
           set {_color} to "%{_color}%" parsed as color
           set color of entity from {_sheep} to {_color}
           wait 10 ticks

  • 0
Posté(e)
Bonjour,

Il te faut Umbaska 2.0, tu veut que le mouton puisse seulement spawn dans le monde HUB c'est bien ça ?

 

command /mouton:
   permission: mouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       spawn a sheep at player
       set {_sheep} to last spawned entity
       set name of entity from {_sheep} to "&cMouton disco"
       add "blue" to {_color::*}
       add "red" to {_color::*}
       add "green" to {_color::*}
       add "orange" to {_color::*}
       add "cyan" to {_color::*}
       add "yellow" to {_color::*}
       while entity from {_sheep} is alive:
           set {_color} to a random object out of {_color::*}
           set {_color} to "%{_color}%" parsed as color
           set color of entity from {_sheep} to {_color}
           wait 10 ticks

 

Dsl spartan tu as oublié le

if player is in "hub":

 

Sinon cela donne sa !

command /mouton:
   permission: mouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       if player is in "hub":
           spawn a sheep at player
           set {_sheep} to last spawned entity
           set name of entity from {_sheep} to "&cMouton disco"
           add "blue" to {_color::*}
           add "red" to {_color::*}
           add "green" to {_color::*}
           add "orange" to {_color::*}
           add "cyan" to {_color::*}
           add "yellow" to {_color::*}
           while entity from {_sheep} is alive:
               set {_color} to a random object out of {_color::*}
               set {_color} to "%{_color}%" parsed as color
               set color of entity from {_sheep} to {_color}
               wait 10 ticks

  • J'aime 1
  • 0
Posté(e)

Avec sa :

command /mouton:
   permission: mouton.use
   permission message: &cTu na pas la permission de faire cela.
   trigger:
       spawn a sheep at location of player
       set the name of last spawned sheep to "&cMouton Magique"

every 16 ticks:
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to red
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to yellow
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to green
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to blue
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to magenta
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to light blue
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to orange
   wait 5 ticks
   loop all sheeps:
       name of loop-entity is "&cMouton Magique"
       set the colour of the loop-entity to pink

 

On ne peut pas mettre que le mouton en question soit invincible ?

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