Help With Talking Villagers : Minecraft How To Talk To Villagers Addon (1

I”m working on an adventure map, and I”m completely stuck on the dialogue part of it. Is there any way to make certain villagers have certain bits of speech? For example, Villager 1 says “Hello!” and then “How are you?” when right clicked, and Villager 2 says “Greetings!” when right clicked. I”ve got the right click detection working, but when I try it out, they both speak at the same time. Is there a workaround for this, preferably with one command block? I”m using the latest 1.14 snapshot.

Đang xem: Minecraft how to talk to villagers

*

*

Firstly, make a scoreboard objective for talking to villagers.

/scoreboard objectives add talk minecraft.custom:minecraft.talked_to_villagerThen, run this in a repeat command:

execute as
e add talkThat executes all players who have right clicked a villager to tag the nearest villager from two blocks in their direction with the talk tag. (Keep in mind that for this to work the villagers must not have any trades. I”m not sure if this works in 1.14, but if so summon them with {Offers:{}})

For this next part to work each villager must have a unique tag or score. Run this in a chain command:

execute as
a Run that command for each villager before continuing.

Read more: How To Get Turtle Mount Wow, Going For The Sea Turtle Mount, Couple Questions

Then remove the talk tag from all villagers and reset all talk scores in repeat command blocks.

tag

*

*

Thanks for contributing an answer to Arqade!

Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

Read more: how to get the shipyard in wow

To learn more, see our tips on writing great answers.

Post Your Answer Discard

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged minecraft-java-edition minecraft-commands or ask your own question.

*

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.3.30.38946

Your privacy

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our (https://stackoverflow.com/legal/cookie-policy)

Leave a Comment