• 欢迎加入MineBBS QQ讨论群:点击查看所有的官方讨论群
  • 我们将于近期对服务器进行迁移,服务可能中断至多2日。请各位安排好自己的访问计划,造成不便敬请谅解!
  • MineBBS入站考试已经上线!想要成为【正式会员】解锁更多功能吗?快来参与吧!【点我去看】
简单NPC!支持悬浮字、自定义模型、右键交互

原创 数据包 简单NPC!支持悬浮字、自定义模型、右键交互 V1.0.0

完成注册/登录后下载
版权类型
原创
版权链接
#
语言支持
中文(简体)
适配版本(Java)
  1. 26.x
  2. 1.21
[MD] ## 功能 支持以下功能: * 自定义NPC上方的悬浮字。 * 自定义NPC皮肤。 * 右键NPC运行指令或函数。 ## Storage结构 ![](https://cloud-photo.windwaves.top/Simple_NPC/storage1.png) ![](https://cloud-photo.windwaves.top/Simple_NPC/storage2.png) ### 示例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]
作者
洛风澜_Sea
下载
12
查看
204
首次发布
最后更新

评分

0.00 星 0 次评分
后退
顶部 底部