comment afficher une commande quand on marche sur un block

lologan789

Bucheron
4 Août 2015
5
3
14
23
bonjour j'aimerai savoir comment avec un commande block on peut afficher la commande /tellraw sur les blocks aux alentours d'un pnj genre 20 block. Merci de votre reponse :) !
 
  • J'aime
Reactions: aurecam
Code:
/execute @p ~ ~ ~ detect ~ ~-1 ~ BLOCK DATA /tellraw @p ["",{"text":"Je suis un block"}]
 
  • J'aime
Reactions: aurecam
Attention aux doublepost, veille à utiliser la touche "éditer" si tu veux rajouter quelque chose à un message. Et si la touche éditer déconne, fais clic droit dessus et "ouvrir dans un nouvel onglet"
 
  • J'aime
Reactions: aurecam
Sinon, essaye
Code:
/execute @e[type=Villager,name=(si il a un nom custom) ~ ~ ~  /tellraw @p {text:"bonjour"}
Et
Code:
/execute @e[type=Villager,name=(si il a un nom custom) ~ ~ ~  /tellraw @p {"text":"bonjour"}
 
  • J'aime
Reactions: aurecam