跳到正文

DK NPCS

作者:DK PLUGINS

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

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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_

常见问题

DK NPCS 支持哪些 Minecraft 版本?

DK NPCS 支持 Minecraft Java 版 1.8–26.1.2,共 73 个版本,可用的加载器:Bukkit / Fabric / Paper / Purpur / Spigot。下载时注意选择和你游戏版本一致的文件。

DK NPCS 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Bukkit / Fabric / Paper / Purpur / Spigot,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分