Aller au contenu
  • 0

TP quand on clic sur un item dans un GUI


Question

Posté(e)

J'ai ce bout de code :

on rightclick with nether star:
   open chest with 6 rows named "&bNavigation" to player
   wait 1 tick
   format slot 31 of player with player's skull named "&6&l%player%" to be unstealable
   format slot 0 of player with black stained glass pane to be unstealable
   format slot 1 of player with black stained glass pane to be unstealable
   format slot 2 of player with black stained glass pane to be unstealable
   format slot 3 of player with black stained glass pane to be unstealable
   format slot 4 of player with black stained glass pane to be unstealable
   format slot 5 of player with black stained glass pane to be unstealable
   format slot 6 of player with black stained glass pane to be unstealable
   format slot 7 of player with black stained glass pane to be unstealable
   format slot 8 of player with black stained glass pane to be unstealable
   format slot 9 of player with black stained glass pane to be unstealable
   format slot 9 of player with golden apple named "&eUHCKit" to close

 

J'aimerai justement comme dans le titre que quand je clic sur UHCit ça me tp :)

15 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Merci :) et si je veux qu'il soi tp dan un autre monde a des coordonné précis ? je dois ajouter quoi ?

format slot 10 of player with golden apple named "&eUHCKit" to close then run "tp %player% 1764 72 -1097"

  • 0
Posté(e)
Merci :) et si je veux qu'il soi tp dan un autre monde a des coordonné précis ? je dois ajouter quoi ?

format slot 10 of player with golden apple named "&eUHCKit" to close then run "tp %player% 1764 72 -1097"

Est-ce que tu utilises Multiverse Core ?

  • 0
Posté(e)

Dans ce cas, tu crées une commande personnalisée

command /uhckit <player>:
trigger:
	make player execute command "/mvtp uhckit"
	make console execute command "tp %arg 1% x y z"

 

et tu remplaces la ligne que je viens de te faire modifier par

then run "uhckit %player%"

  • J'aime 1
  • 0
Posté(e)
Ou sinon tu set une variable à l'emplacement ou tu veux que le joueur soit tp et ensuite tu le tp à cette variable

 

J'ai jamais compreis les variable mais si tu me dit juste comme la poser je pense que je peux me debrouiller :)

  • 0
Posté(e)

on rightclick with nether star:
   open chest with 6 rows named "&bNavigation" to player
   wait 1 tick
   format slot 31 of player with player's skull named "&6&l%player%" to be unstealable
   format slot 0 of player with black stained glass pane to be unstealable
   format slot 1 of player with black stained glass pane to be unstealable
   format slot 2 of player with black stained glass pane to be unstealable
   format slot 3 of player with black stained glass pane to be unstealable
   format slot 4 of player with black stained glass pane to be unstealable
   format slot 5 of player with black stained glass pane to be unstealable
   format slot 6 of player with black stained glass pane to be unstealable
   format slot 7 of player with black stained glass pane to be unstealable
   format slot 8 of player with black stained glass pane to be unstealable
   format slot 9 of player with black stained glass pane to be unstealable
   format slot 10 of player with golden apple named "&eUHCKit" to close then run "uhckit %player%"

J'ai ce code là mais la console me dit :

Sorry, I couldn't find player: <none>

Quand je clic sur la pomme

  • 0
Posté(e)

Est-ce que la tête dans l'inventaire porte le nom du joueur ?

Si oui, je ne comprend pas pourquoi ça ne fonctionne pas étant donné que j'utilise moi même %player% dans un inventaire

Voici mon code http://prntscr.com/9k7mrg

Sinon, essaye de remplacer on rightclick with nether star par on rightclick holding nether star

  • 0
Posté(e)
Est-ce que la tête dans l'inventaire porte le nom du joueur ?

Si oui, je ne comprend pas pourquoi ça ne fonctionne pas étant donné que j'utilise moi même %player% dans un inventaire

Voici mon code http://prntscr.com/9k7mrg

Sinon, essaye de remplacer on rightclick with nether star par on rightclick holding nether star

Je parlais de la pomme elle ne veut pas executer la command que j'ai mis qui est :

command /uhckit <player>:
   trigger:
       make console execute command "/mvtp %player% uhckit"

  • 0
Posté(e)

Voilà je vien de finir ton code,

Le voici !

(un petit j'aime ferai plaisir :) )

 

 

on rightclick with nether star:
   open chest with 6 rows named "&bNavigation" to player
   wait 1 tick
   format slot 31 of player with player's skull named "&6&l%player%" to be unstealable
   format slot 0 of player with black stained glass pane to be unstealable
   format slot 1 of player with black stained glass pane to be unstealable
   format slot 2 of player with black stained glass pane to be unstealable
   format slot 3 of player with black stained glass pane to be unstealable
   format slot 4 of player with black stained glass pane to be unstealable
   format slot 5 of player with black stained glass pane to be unstealable
   format slot 6 of player with black stained glass pane to be unstealable
   format slot 7 of player with black stained glass pane to be unstealable
   format slot 8 of player with black stained glass pane to be unstealable
   format slot 9 of player with black stained glass pane to be unstealable
   format slot 9 of player with golden apple named "&eUHCKit" to close then run [make player execute command "uhckit"]






command /setUHCKIT:
   permission: "admin.set"
   trigger:
       if player is op:
           set {uhckit} to location of player
           send "&6UHCkit > &7le point UHCkit a bien été poser aux coordonées &2%location%"





command /uhckit [<player>]:
   trigger:
       teleport player to {uhckit}
       send "&3téléportation au uhckit"

  • J'aime 1
×
×
  • 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.