Aller au contenu

on rightclick book = Commande ??


Messages recommandés

Posté(e)

Avec le livre faut cliquer sur quelque chose de spéciale ? une biblio ?

Le livre doit-il avoir un nom spéciale ?

 

EDIT:

J'ai fais 4 possibilités qui devraient marchés, pas sur :(

options:
   bookkitname: &bKit&2Book    #Ici le nom du livre
#

#Possibilité 1 avec n'importe quel livre
on rightclick holding book:
   execute console command "kit BuildUHC %player%"
#

#Possibilité 2 avec un livre qu'y s'appelle (le nom choisi en haut)
on rightclick holding book:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"
#

#Possibilité 3 avec un livre qu'y s'appelle + cliquer sur une bibliothèque
on rightclick on bookshel:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"
#

#Possibilité 4 avec un livre qu'y s'appelle + cliquer sur une bibliothèque + avoir une perm
on rightclick on bookshel:
   if player has permission "kit.book.BuildUHC"
       if player tool is a book named "{@bookkitname}":
           execute console command "kit BuildUHC %player%"
#

Posté(e)
Bonjour/Bonsoir , j'aimerais quand cliquant sur un livre ( book ) que la console fasse /kit BuildUHC %player% stp !

Voci :p

on rightclick with book:
   name of tool is "nomdelitem"
   make player execute command "kit builduhc"

Lâche un j'aime si je t'ai aider :p

  • J'aime 1
Posté(e)
Avec le livre faut cliquer sur quelque chose de spéciale ? une biblio ?

Le livre doit-il avoir un nom spéciale ?

 

EDIT:

J'ai fais 4 possibilités qui devraient marchés, pas sur :(

options:
   bookkitname: &bKit&2Book    #Ici le nom du livre
#

#Possibilité 1 avec n'importe quel livre
on rightclick holding book:
   execute console command "kit BuildUHC %player%"
#

#Possibilité 2 avec un livre qu'y s'appelle (le nom choisi en haut)
on rightclick holding book:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"
#

#Possibilité 3 avec un livre qu'y s'appelle + cliquer sur une bibliothèque
on rightclick on bookshel:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"
#

#Possibilité 4 avec un livre qu'y s'appelle + cliquer sur une bibliothèque + avoir une perm
on rightclick on bookshel:
   if player has permission "kit.book.BuildUHC"
       if player tool is a book named "{@bookkitname}":
           execute console command "kit BuildUHC %player%"
#

Pas besoin d'en faire plus :p j'ai fais ce qu'elle voulait

Posté(e)
Pas besoin d'en faire plus :p j'ai fais ce qu'elle voulait

 

Haha, il en faut mieux plus que pas assez, et puis en plus j'ai montré 4 façons différentes histoire que sa enrichisse ses connaissances !!

  • J'aime 1
Posté(e)
Voci :p

on rightclick with book:
   name of tool is "nomdelitem"
   make player execute command "kit builduhc"

Lâche un j'aime si je t'ai aider :p

Possible que ce livre give des trucs aulieux de faire une commande comme par exemple , tout dans ce screen ?

1470354732-7e32f1feb64fcddcfbdb8b60ce7961c7d89d1210c679d61b4c-pimgpsh-thumbnail-win-distr.jpg

Posté(e)
Possible que ce livre give des trucs aulieux de faire une commande comme par exemple , tout dans ce screen ?

1470354732-7e32f1feb64fcddcfbdb8b60ce7961c7d89d1210c679d61b4c-pimgpsh-thumbnail-win-distr.jpg

 

Les items doivent avoir des noms particuliers ?

EDIT: on voit pas très bien les quantités des pommes d'or.

  • J'aime 1
Posté(e)
Possible que ce livre give des trucs aulieux de faire une commande comme par exemple , tout dans ce screen ?

1470354732-7e32f1feb64fcddcfbdb8b60ce7961c7d89d1210c679d61b4c-pimgpsh-thumbnail-win-distr.jpg

command /uhc-kit:
   trigger:
       clear player's inventory
       set chestplate of player to diamond chestplate of protection 1
       set helmet of player to diamond helmet of protection 1
       set leggings of player to diamond leggings of protection 1
       set boots of player to diamond boots of protection 1
       set slot 0 of player to diamond sword of sharpness 1
       set slot 1 of player to fishing rod
       set slot 2 of player to lava bucket
       set slot 3 of player to water bucket
       set slot 4 of player to 7 golden apple
       set slot 5 of player to 3 golden apple named "&6Golden Head"
       set slot 30 of player to water bucket
       set slot 34 of player to 64 birch wood planks
       set slot 6 of player to bow of power 1
       set slot 9 of player to 64 arrow
       set slot 8 of player to 64 steak
       set slot 33 of player to diamond pickaxe
       set slot 7 of player to 64 cobblestone
       set slot 29 of player to lava bucket

on right click with book:
   name of tools is "nomdulivre"
   make player execute command "uhc-kit"

Posté(e)
Possible que ce livre give des trucs aulieux de faire une commande comme par exemple , tout dans ce screen ?

1470354732-7e32f1feb64fcddcfbdb8b60ce7961c7d89d1210c679d61b4c-pimgpsh-thumbnail-win-distr.jpg

Si tu veux je peux de passer mon script ffa build uhc potion et one shot arc mais sa sera demain :p Si tu veux mp moi demain car je travaille sur un script ffa et practice :p

PS: je suis au bled (albanie)

Posté(e)
Mon skript ?

Nan on dirait plutôt le miens mdr les "compare name tool"

 

J'avais dis que c'était pas certains xD

 

EDIT: ha nan moi j'avais mis "if player tool is a book named "{@bookkitname}":"

Posté(e)
command /uhc-kit:
   trigger:
       clear player's inventory
       set chestplate of player to diamond chestplate of protection 1
       set helmet of player to diamond helmet of protection 1
       set leggings of player to diamond leggings of protection 1
       set boots of player to diamond boots of protection 1
       set slot 0 of player to diamond sword of sharpness 1
       set slot 1 of player to fishing rod
       set slot 2 of player to lava bucket
       set slot 3 of player to water bucket
       set slot 4 of player to 7 golden apple
       set slot 5 of player to 3 golden apple named "&6Golden Head"
       set slot 30 of player to water bucket
       set slot 34 of player to 64 birch wood planks
       set slot 6 of player to bow of power 1
       set slot 9 of player to 64 arrow
       set slot 8 of player to 64 steak
       set slot 33 of player to diamond pickaxe
       set slot 7 of player to 64 cobblestone
       set slot 29 of player to lava bucket

on right click with book:
   name of tools is "nomdulivre"
   make player execute command "uhc-kit"

Mon skript ?

Ouii :(

Posté(e)

Et remplace ligne 6 à 8 par

on rightclick holding book:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"

 

EDIT en début de skript il faut aussi mettre :

options:
  bookkitname: NomDuLivre
#

on rightclick holding book:
   if player tool is a book named "{@bookkitname}":
       execute console command "kit BuildUHC %player%"
#

Posté(e)

Tien (j'ai testé, fonctionne) :

 

command /uhc-kit:
   trigger:
       clear player's inventory
       set chestplate of player to diamond chestplate of protection 1
       set helmet of player to diamond helmet of protection 1
       set leggings of player to diamond leggings of protection 1
       set boots of player to diamond boots of protection 1
       set slot 0 of player to diamond sword of sharpness 1
       set slot 1 of player to fishing rod
       set slot 2 of player to lava bucket
       set slot 3 of player to water bucket
       set slot 4 of player to 7 golden apple
       set slot 5 of player to 3 golden apple named "&6Golden Head"
       set slot 30 of player to water bucket
       set slot 34 of player to 64 birch wood planks
       set slot 6 of player to bow of power 1
       set slot 9 of player to 64 arrow
       set slot 8 of player to 64 steak
       set slot 33 of player to diamond pickaxe
       set slot 7 of player to 64 cobblestone
       set slot 29 of player to lava bucket

on right click with book:
   name of player's tool is "&aKit Build UHC":
       make player execute command "/uhc-kit"

command /givebook:
   trigger:
       give 1 book named "&aKit Build UHC" to player

Posté(e)
on join:
   give book named "&cBUILDUHC &f&l→ &r&cKit" to player
on rightclick holding a book:
   name of tool is "&cBUILDUHC &f&l→ &r&cKit"
   remove book named "&cBUILDUHC &f&l→ &r&cKit" from player
   make player execute command "/kit builduhc"

 

Là, quand la personne rejoint la partie d'un builduhc elle reçoit un livre qui s'appelle "BUILDUHC → Kit" donc tu dois créer un kit ici: "plugins\essentials\config", ça va te donner le kit que tu as configuré dans le plugin "essentials".

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