Aller au contenu
  • 0

Bug avec le if player is within {variable} to {variable}:


Question

Posté(e)

salut, j'ai un problème avec mon skript c'est que le if player is within {position.1.hub} to {position.1.hub}: ne fonctionne pas quand je vais dans la zone ça me tp bien mais quand je vais autre part dans le monde ça me tp aussi ! :c

 

Voilà le code

PS: Merci à celui qui m'aidera ! <3

 

command /hubProtect:
   trigger:
       if player is op:
           give 1 golden sword named "&ePos1" to the player
           give 1 golden sword named "&ePos2" to the player

on right click with golden sword:
   if name of the player's tool is "&ePos1":
       set {position.1.hub} to location of targeted block
       send "&bPoint 1 sauvegarder !"
   if name of the player's tool is "&ePos2":
       set {position.2.hub} to location of targeted block
       send "&bPoint 2 sauvegarder !"

on walk on obsidian:
   if player is in "SinisMC_the_end":
       loop blocks within {position.1.hub} to {position.2.hub}:
           if player is within {position.1.hub} to {position.1.hub}:
               play raw sound "mob.endermen.portal" at player with pitch 5 volume 1.5
               teleport player to {ffa}
       send "&6Hey, &eBienvenue dans le &6FFA &e!"       

0 réponse à cette question

Messages recommandés

Il n’y a pas encore eu de réponse à cette question

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