DK NPCS

Lightweight NPC system that creates realistic player NPCs with custom skins, interactions, and command support.

447

Quick challenge

How far can you run before the mobs catch you?

DK NPCS

Features

- Realistic NPCs using ServerPlayerEntity (same technology as Citizens) - Custom skins from any Minecraft player - Action system executed by clicking on the NPC - Floating text lines above NPCs (holograms) - Simple and intuitive commands - Lightweight and optimized for servers

Commands

All commands require permission level 2 (OP).

Basic Management

- `/npc create <name> <skinPlayer>` - Creates an NPC with a player's skin - `/npc remove <name>` - Removes an NPC - `/npc removeall` - Removes all NPCs - `/npc list` - Lists all active NPCs - `/npc rename <name> <newName>` - Renames an NPC

Positioning

- `/npc teleport <name> <x> <y> <z>` - Teleports an NPC - `/npc teleport <name> <x> <y> <z> <yaw> <pitch>` - Teleports with rotation

Skin

- `/npc skin <name> <skinPlayer>` - Changes the NPC's skin

Actions (executed when clicking on the NPC)

- `/npc action <name> add <action>` - Adds an action - `/npc action <name> remove <index>` - Removes an action - `/npc action <name> list` - Lists all actions - `/npc action <name> clear` - Removes all actions

Text Lines (holograms)

- `/npc lines <name> add <text>` - Adds a line of text - `/npc lines <name> remove <index>` - Removes a line - `/npc lines <name> list` - Lists all lines - `/npc lines <name> clear` - Removes all lines

Types of Actions

When adding actions, you can use the following formats:

- `MESSAGE: <text>` - Sends a message to the player (supports `&` for colors) - `PLAYER: <command>` - Executes a command as if the player had typed it - `CONSOLE: <command>` - Executes a command via the console - `/<command>` - Executes a server command

Use `%player%` in actions to replace it with the player's name.

Examples of Use

```

Create an NPC with Notch skin

/npc create Vendor Notch

Add lines of text

/npc lines Vendor add &6&lStore /npc lines Vendor add &7Click to buy!

Add actions when clicking

/npc action Vendor add MESSAGE: &aHello, %player%! /npc action Vendor add CONSOLE: give %player% diamond 1

Teleport the NPC

/npc teleport Vendor 100 64 200 90 0

Change the skin

/npc skin Vendor jeb_ ```

ADS