[MD]
## 功能
支持以下功能:
* 自定义NPC上方的悬浮字。
* 自定义NPC皮肤。
* 右键NPC运行指令或函数。
## Storage结构


### 示例storage
默认配置
~~~mcfunction
data modify storage windwaves_sea:npc root.npc_setting merge value {\
test:{\
name:"test",\
zone:"test",\
config:{\
custom_settings:false,\
look_player:true\
},\
text:{\
pos:{x:1,y:1,z:1},\
text:[{text:"1"}]\
},\
npc:{\
pos:{x:1,y:1,z:1},\
model:"wide",\
texture:"lobby:npc/start_game",\
rotation:[180,0]\
},\
right_click:{\
command:"",\(function:""\)
}\
}\
}
~~~
自定义配置
~~~mcfunction
data modify storage windwaves_sea:npc root.npc_setting merge value {\
test_custom:{\
name:"test_custom",\
zone:"test",\
config:{\
custom_settings:true,\
look_player:true,\
default_orientation:"north" \
},\
text:{\
pos:{x:1,y:1,z:1},\
data:{}\
},\
npc:{\
pos:{x:1,y:1,z:1},\
data:{}\
},\
right_click:{\
function:""\(command:""\)
}\
}\
}
~~~
## 指令解析
### 生成NPC
~~~mcfunction
function npc:summon {name:"name"}
~~~
生成NPC,需先写入配置,不可重复生成,name为上方配置中的NPC名称(下文相同)。
### 清除NPC
~~~mcfunction
function npc:remove/npc {name:"name"}
~~~
#### 删除配置( 同时清除NPC )
~~~mcfunction
function npc:remove/setting {name:"name"}
~~~
---
## 下载
QQ群:117464315
Github:https://github.com/WindWavesSea/Simple-NPC/
Modrinth: https://modrinth.com/datapack/simple-npc/
[/MD]