Tutorial

Player Tutorial Action Home

You can now use a blaze rod to remove a villager!

Tutorial

This part will explain in detail how to set up a villager

Step one: Download the plugin and put it into your plugins folder, reload or restart the server.

Step two Rename a villager spawn egg using an anvil to the name you want the villager to have

Step three Grab a chest and place it under the place you want the villager to stand, this chest may be 1 block below or even a hundred that doesn't matter.

Well, now comes the somewhat harder part. Here is a nice image to see the different kinds of books that resemble the chat messages:

Tutorial

1: Welcome Message: This message is send when the player right-clicks the villager and starts the dialogue

2: Question One: This is the first option the player gets to choose, to make it clear to the player start this with #1:

3: Question Two: This is the second option the player gets to choose, to make it clear to the player start this with #2:

4: Question Three: This is the third option the player gets to choose, to make it clear to the player start this with #3:

5: Question Three Answer: This is the answer to the third question, this message will be the responds when the player chooses 3

6: Question Two Answer: This is the answer to the second question, this message will be the responds when the player chooses 2

7: Question One Answer: This is the answer to the first question, this message will be the responds when the player chooses 1

8: Goodbye Message This message will be send when the player chooses the fourth option to end the conversation.

To add a message simply take a book and quill write the message on the first page and put the book into the correct slot.

When downloading newer versions of this plugin please keep in mind that, although I will try to avoid, I might have to change up some of the existing slots for certain messages, so your villagers might break. Although its unlikely make sure to read the change log when a new version is released.

Shop

With the newest version of this plugin comes the ability to create shops. Shops are GUI's in which players can buy certain items. To set up a shop follow these steps:

Step One: Place a chest directly below the chest that you used for the dialogue.

Step Two: We are now going to need to tell the npc that upon a question is chosen he should not respond with a message but with the opening of a GUI, we do this by typing in the book that handles the answer for the third question this: [Open Shop] This has to be in the slot that handles the answer for the third question.

Step three: We now have to set up our GUI, here is an example of a fully set up GUI:

SetUpOfAShop

Here is how it would look like in the player's shop gui:

HowAPlayerSeesTheGUI

Long Dialogue

The latest version of the plugin brings the ability to create very long dialogues with maximum 100 messages. Just take a book and write each message on a different page. Then put this book in the slot next to the #3 question and put in the answer to the third question this tag: [Dialogue] and the dialogue will begin.

Config

This plugin has a very simple config which allows you to chance the removal tool to a different block and enable/disable particles.

'RemoveTool: ': STONE

'Particles: ': 'false'

Video

Look at this video in which I explain the plugin:

https://youtu.be/WI6b6ko5EYs

How would this plugin be useful?

This plugin can be very useful on a MMORPG server or even on puzzle servers, you could make a village in which a secret is hidden and the player has to talk to a lot of villagers to uncover this secret.

This plugin can also be used to create interesting merchants in this village.


Comments

Posts Quoted:
Reply
Clear All Quotes