NPC Training
Last updated
Last updated
To train your NPC, you can use the knowledge
attribute in the config file. This attribute allows you to give your NPC specific information and knowledge that it can use to interact with players.
To train your NPC using the knowledge
attribute, follow these steps:
Open the corresponding NPC's config file located under plugins/iNPC/npc
. You can discard the default npc's if you wish, or use them as a template and replace their information with yours.
Locate the knowledge
attribute and add a new line for each piece of knowledge you want your NPC to have. You can add as many lines as you wish. Here is an example:
Locate the theme attribute and set the theme of your NPC. Example:
Locate the language attribute and add any language you want your NPC to understand and speak, followed by a comma to separate.
Save the config
file.
Restart your Minecraft server to apply the changes.
Place yourself in game and try it out by approaching your currently set up NPC, and run the command /npctalk [name]
Once you've trained your NPC using the knowledge
attribute, it will be able to use the information you've given it to interact with players. For example, if you've given your NPC the knowledge that treasure can be found in a specific location, it may be able to give players directions to that location.
By training your NPC with specific knowledge, you can create a more immersive and interactive Minecraft experience for your players! Enjoy!