Reset Stats via NPC
Players normally cannot run/lvl resetstats themselves; it is an admin-only command. If you want to offer a self-service stat reset (for example in a town or hub), you can use the NPC Dialog mod so an NPC runs the command for the interacting player.
This guide explains how to set that up. Optionally, you can use the NPC Quests addon to require items (e.g. 10 Essence of Void) before the NPC performs the reset.
What the reset does
The command/lvl resetstats <player> (see Commands):
- Clears all allocated stat points for that player
- Returns those points to the available stat points pool
- Removes all stat modifiers
- Lets the player reallocate their points (level and total points are unchanged)
@p so the player who interacted with the NPC is the one whose stats are reset.
1. Install NPC Dialog
- Install NPC Dialog on your server (download from CurseForge and add the mod to your server’s mods folder).
- Restart the server (or load the mod as required by your setup).
2. Run the reset command as console
So that the reset works for any player (without giving them OP), the/lvl resetstats call must run as server/console, not as the player.
In NPC Dialog’s data folder, open consoleCommands.json. Add lvl to the list of commands that run as console. For example:
lvl (e.g. lvl resetstats @p) triggered by an NPC button will run with console permissions and will correctly reset the targeted player.
3. Create the reset NPC
-
In-game, run
/npcdialog(requires NPC Dialog admin permission). - Create an NPC (name and title as you like, e.g. “Stat Resetter”, “Void Priest”).
- Add dialog content explaining that this NPC can reset their stat points (and any cost, e.g. “Requires 10 Essence of Void” if you use NPC Quests).
-
Set the command that runs when the player confirms:
- Either set Custom Button 1 (or Custom Button 2) text to something like “Reset my stats” and set its command to:
lvl resetstats @p
- Or use the Close button: set Close Button Command to
lvl resetstats @pso that when the player closes the dialog (e.g. after reading), their stats are reset.
@pso the player who clicked is the one affected. The mod replaces@pwith that player’s name when running the command. - Either set Custom Button 1 (or Custom Button 2) text to something like “Reset my stats” and set its command to:
- Link the NPC to an entity in the world (the one players will press F on).
- Save.
lvl resetstats @p for them and their stat points are reset as described in Commands.
4. (Optional) Require items with NPC Quests
If you use the NPC Quests addon for NPC Dialog, you can require items (e.g. 10 Essence of Void) before the NPC resets the player’s stats. Example flow:- Create a “quest” or interaction that requires the player to hand in 10 Essence of Void (or whatever item and quantity you choose).
- When that requirement is met, the NPC Quests logic runs the reward/action — configure that to run
lvl resetstats @p(via NPC Dialog’s command execution, or as provided by the addon). - The player only gets the stat reset after paying the cost; you can still use the same NPC and dialog text to explain the cost.
Summary
| Step | Action |
|---|---|
| 1 | Install NPC Dialog. |
| 2 | Add lvl to consoleCommands.json so the reset runs as console. |
| 3 | Create an NPC, link it to an entity, and set a button or Close command to lvl resetstats @p. |
| 4 | (Optional) Use NPC Quests to require items (e.g. 10 Essence of Void) before the reset. |
