
My NPC Mod
Create a mod with command /mynpc that allows the player to create a stationary NPC that cannot be damaged. Let the player configure a command on the NPC so...
20—FreehytaleServer2026.01.24mod
My NPC Mod - User Guide
Overview
My NPC Mod lets you create custom NPCs that stand in place and can't be hurt. You can set up each NPC to run a command when players interact with it by pressing F. Perfect for creating quest givers, shopkeepers, or any stationary character you want in your world!
Features
- Create Custom NPCs - Spawn NPCs with any role from the game
- Stationary NPCs - NPCs stay in one place and won't move around
- Invulnerable - NPCs can't be damaged or destroyed
- Interactive Commands - Configure commands that run when players press F to interact
- User Scope Execution - Commands run as if the player executed them, not the server
How to Use
Creating an NPC
- Type
/mynpcin chat to open the NPC configuration menu - Search for an NPC role by typing in the search box (e.g., "merchant", "guard", "wizard")
- Click on the NPC role you want to use
- Type the command you want to run when players interact with the NPC (e.g.,
/say Hello there!) - Click the "Spawn" button to create the NPC
Interacting with NPCs
- Stand near an NPC and press F to interact
- The configured command will run automatically
- The command executes in your scope, so it works as if you typed it
Tips & Tricks
- Use commands like
/sayto make NPCs talk - Try
/givecommands to give items to players who interact - Combine with other mods for more complex interactions
- You can spawn multiple NPCs with different commands in the same area
Known Limitations
- NPCs are stationary and cannot move or patrol
- Each NPC can only run one command per interaction
- Commands must be valid server commands
Enjoy creating your custom NPCs!