Aller au contenu
  • 0

Modification de panneau..


Question

Posté(e)

Bonsoir,

 

J'ai besoin d'aide car j'ai fait un skript qui devrait marcher et qui ne me met pas d'erreur mais pourtant il ne fonctionne pas..

Il a pour but de changer le contenu d'une pancarte à une ligne précise

on rightclick on a sign:
   if player has a stick named "&6SignEdit":
       set {signedit.%player%} to location of clicked block


command /signedit [<number>] [<text>]:
   permission: op
   aliases: se
   trigger:
       if arg 1 and arg 2 is not set:
           give 1 stick named "&6SignEdit" to player
           stop trigger
       if arg 2 is not set:
           send "&6Utilise: &f/signedit [ligne] [texte]"
       if arg 1 and arg 2 is set:
           set line arg 1 of block at location {signedit.%player%} to "%arg 2%"

 

Voilà, toute aide est la bienvenue :)

 

Merci d'avance

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
rightclick:
   clicked block is a sign
   player has a stick named "&6SignEdit"
   set {signedit.%player%} to location of clicked block


command /signedit [<number>] [<text>]:
   permission: op
   aliases: se
   trigger:
       arg 1 is not set:
           give 1 stick named "&6SignEdit" to player
       else if arg 2 is not set:
           send "&6Utilise: &f/signedit [ligne] [texte]"
       else:
           set line arg 1 of block at {signedit.%player%} to arg 2

  • 0
Posté(e)
set line arg-1 of block at {signedit.%player%} to "%arg-2%"

 

Essaye ceci, normalement ça doit fonctionner :)

Ca marche ! impeccable merci !

rightclick:
   clicked block is a sign
   player has a stick named "&6SignEdit"
   set {signedit.%player%} to location of clicked block


command /signedit [<number>] [<text>]:
   permission: op
   aliases: se
   trigger:
       arg 1 is not set:
           give 1 stick named "&6SignEdit" to player
       else if arg 2 is not set:
           send "&6Utilise: &f/signedit [ligne] [texte]"
       else:
           set line arg 1 of block at {signedit.%player%} to arg 2

Ca marche également, merci également !

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