Aller au contenu
  • 0

Problème de détection de tnt


Question

Posté(e)

Bonjour,

J'essaye de trouvé la location de la tnt et mettre un hologram dessus , mais je n'y arrive pas.

 

Le code:

On rightclick with tnt:
   If player is in world "woolrush":
       If name of player's tool is "&c&lShooter &4[&cAvantagimous&4]":
           make the player shoot a tnt at speed 1.5
           remove tnt from player
           wait 3 seconds
           create hologram "&cRUN FOR YOU LIFE" at tnt for 5 seconds

9 réponses à cette question

Messages recommandés

  • 0
Posté(e)
rightclick:
   player's tool is a tnt
   player's world is "woolrush"
   name of player's tool is "&c&lShooter &4[&cAvantagimous&4]"
   make player shoot a tnt at speed 1.5
   remove a tnt from player's inventory
   wait 3 seconds
   create hologram "&cRUN FOR YOUR LIFE" at location of last shoot tnt

  • 0
Posté(e)

PsYZiiK a corriger ta faute d'anglais "RUN FOR YOUR LIFE" , Je n'utilise pas les holo donc je vais ptete dire une connerie mais tu peux tester un truc tout bête:

 

create hologram "&cRUN FOR YOUR LIFE" at location of last shoot tnt with ID "tnt.%second%"

wait 5 seconds

delete hologram with ID "tnt.%second%"

 

(mon code est un exemple, je suis sûr à 99% qu'il ne marche pas mais tu vois l'idéé ..)

  • 0
Posté(e)

Voici:

[14:01:39] [server thread/ERROR]: Can't understand this condition/effect: create hologram "&cRUN FOR YOUR LIFE" at location of last shoot tnt for 5 seconds (jeu wool.sk, line 21: create hologram "&cRUN FOR YOUR LIFE" at location of last shoot tnt for 5 seconds')

  • 0
Posté(e)

On rightclick with tnt:
   If player is in world "woolrush":
       If name of player's tool is "&c&lShooter &4[&cAvantagimous&4]":
           make the player shoot a tnt at speed 1.5
           set {_t} to the shot projectile
           bind hologram "&cRUN FOR YOU LIFE" to {_t} for 5 seconds offset by 0.5, 0.5, 0.5

 

Yosh

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