Your Creation
Let’s go over step by step to create our first NPC! You can start
here after signing up
Click on the little plus button to add an NPC, here we have a Merchant! You can trade items with them!
Give your Merchant a name, and choose a personality trait. You can also enter your own story, which suits your in game world and character. If you are in a hurry, just leave the auto-fill as it is, to use the generated NPC data.
Tip : Backstory is the NPCs memory, write whatever you want the NPC to know about themselves, other characters and the in game world
Add location. If you don’t, the NPC will spawn at your location in the game
Now Hit the Save button to finish creating your NPC.
Pro Tip: You can switch to advanced tab to select what kind of trades your Merchant should offer
Tip: Do not forget to hit the save button!
Installing Plugin
Click
here to download the plugin
Upload the plugin to your servers plugin folder
Reload your server
Tip : If the plugin is installed correctly, You can see the xgaming command autocomplete <photo>
Pro Tip: Don’t have a server? You can create free servers at websites like Aternos
Token Verification
Click here, and hit the copy button to copy your token. Click generate if you have not generated a token yet.
Enter the following command
/xgaming token add <token>
You are ready to add npcs now!
Spawn NPCs
Before spawn NPCs, we must load their data to the game.
Use /xgaming load
Now we can spawn NPCs.
Use
/xgaming npc spawn <name>
Tip : NPCs you added on website will appear in autocomplete. How convenient!
Similarly, to despawn,
use
/xgaming npc despawn
Tip : Don’t forget to use this commands after modifying NPCs on the website