版本 1.4 添加了循环功能以及更多内容,请查看更新日志
Cosmic NPCs - 一款简单的动作捕捉模组
CosmicNPCs 允许你记录自己的移动和操作,并在之后以自定义名称和皮肤的 NPC 身份回放它们!
它还包含其专属的指令快捷键系统,只需轻按按钮即可生成 NPC。
使用方法:
录制:
要开始录制,请使用以下命令:
/npc-rec <文件名>
将 <文件名> 替换为你选择的名称。这是你的录制文件的名称,你需要它在后续回放中使用。
示例:"/npc-rec leyla1"
现在你已经开始了录制,所有支持的操作都会被保存,并将在未来的回放中由 NPC 重新执行。
以下操作会被记录:
- 移动
- 破坏方块
- 放置方块
- 右键点击方块交互
- (大多数)右键点击物品交互
- 使用弓、弩、三叉戟等
- 游泳/潜行
- 发送聊天消息
- 丢弃物品
- 装备盔甲和物品
当你完成操作后,再次使用 /npc-rec 命令结束录制。
回放:
现在你可以使用 npc-play 命令回放你的录制:
/npc-play <文件名> <NPC 名称> <皮肤文件名> [模型]
<文件名> 是你想要回放的录制文件的名称。
<NPC 名称> 是 NPC 在名牌和聊天中显示的名称。
<皮肤文件名> 是用作其皮肤的纹理文件的名称(不包含 ".png")。如果你没有自定义皮肤,只需在此处输入 "default"。
[模型] 是一个可选参数。你可以在此指定 NPC 应使用的模型。如果你不想要特定模型,可以忽略此项。此时将使用普通玩家模型。
示例:
/npc-play leyla1 Leyla leyla_evil
// 这将生成一个名为 "Leyla" 的 NPC,并使用 "leyla_evil"(.png) 作为皮肤文件。此处未指定模型,因此使用默认玩家模型。
/npc-play gchicken4 GreenChicken green_chicken minecraft:chicken
// 这将生成一个名为 "GreenChicken" 的 NPC。"green_chicken"(.png) 用作皮肤文件。此处指定了模型。它被设置为 minecraft:chicken,因此该 NPC 将拥有鸡的模型。
其他设置:
如果你指定了模型,可以在末尾添加花括号以调整更多事项。在花括号内,你可以添加诸如名牌可见性之类的额外设置。
这遵循以下格式:
<设置>:<值>
例如:
/npc-play leyla1 Leyla leyla_evil minecraft:player {ShowNameTag:0} // "ShowNameTag" 是设置,"0" 是我们赋予该设置的值。
有许多设置可以通过这种方式进行调整。多个设置可以通过逗号分隔进行调整。例如:{ShowNameTag:1,Invulnerable:1,Layer:green_eyes}
设置列表:
- (整数) "ShowNameTag" 定义名牌可见性 (0 = 不可见,1 = 始终可见,2 = 仅在被注视时可见)
- (布尔值) "Invulnerable" 定义 NPC 是否无敌
- (布尔值) "UseCommands" 定义 NPC 是否可以执行指令
- (布尔值) "IsChild" 定义模型是否应为幼年变体
- (字符串) "Layer" 定义图层的纹理,如果模型有附加图层。在此处使用文件名作为值。图层纹理需要位于 .../config/cosmicnpcs/resources/textures/layers 才能生效
- (字符串) "VillagerType" 定义村民类型。例如插入 "swamp" 可获得沼泽村民
- (字符串) "Profession" 定义村民职业
- (整数) "ProfessionLevel" 定义村民交易等级
- (字符串) "Color" 定义颜色。例如绵羊羊毛的颜色。插入 "rainbow" 可获得彩虹色绵羊
- (布尔值) "Sheared" 定义绵羊是否已被剪毛
- (字符串) "MushroomBlock" 定义哞牛背上的方块
- (布尔值) "Charged" 定义苦力怕或凋灵是否已充能
- (字符串) "Armor" 目前仅定义马身上的马铠
- (布尔值) "Saddled" 定义猪或炽足兽是否已鞍具化
- (字符串) "Head" 定义雪傀儡使用的头部方块
(布尔值意味着值可以是 "true" 或 "false"。你也可以使用数值等价物 "1" 和 "0")
(字符串是纯文本。如 "blue",或 "green_eyes",或 "diamond_block")
自定义皮肤:
要为 NPC 使用你自己的皮肤,你需要将它们放入纹理文件夹 .../config/cosmicnpcs/resources/textures/main 中。
此后,你可以在 npc-play 命令中使用文件名(不含 .png)来选择它们。
注意:重要的是要知道纹理文件名必须始终为小写!Minecraft 无法处理包含大写字母的文件!此外,如果使用玩家模型,你的皮肤分辨率必须为 64x64。
多人游戏注意事项:如果你在服务器上游玩,请确保每个人的纹理文件夹中都拥有相同的皮肤(且名称相同)。否则,他们可能无法看到正确的皮肤,而是看到默认皮肤。
Command Gui:
本模组包含一个使用“命令 GUI”的独立指令快捷键系统。可通过小键盘 3 打开。在此处可设置任意指令,随后按下小键盘 9 即可执行。
再次按下小键盘 9 时不会重复执行之前的指令,而是执行下一页的指令。因此你拥有一个指令队列。你可以利用此系统通过按键重播各种 NPC 录音!
版本差异:(如果你游玩的是旧版本,这点很重要!)
1.12.2: (CosmicNPCs-1.2.1)
-纹理文件夹位于:.../.minecraft/config/cosmicnpcs/assets/npctextures
-NPC 仅可使用 6 种模型:Player、PlayerSlim、Villager、Witch、Vex 和 Chicken。只需输入此处列出的其中一个模型的准确名称即可。
-大多数额外设置不存在。仅可使用“ShowNameTag”和“Invulnerable”。(不允许使用“true”或“false”作为值。请使用“1”或“0”)
-默认情况下 NPC 可以使用指令。
1.7.10: (CosmicNPCs-1.1)
-纹理文件夹位于:.../.minecraft/config/cosmicnpcs/assets/npctextures
-npc-play 指令中没有模型参数。仅存在默认的 Player 模型。
-没有额外设置。但你可以在皮肤文件名后输入“Invulnerable”作为额外参数,以使 NPC 获得无敌状态。(区分大小写!)
-NPC 无法使用指令,且其他一些功能也无法按预期正常工作
-皮肤分辨率必须为 64x32,而非 64x64
Version 1.4 added a loop feature and much more checkout the changelog
Cosmic NPCs - A simple Motion Capture Mod
CosmicNPCs allows you to record your movement and actions, and replay them aferwards as a NPC with custom name and skin!
It also includes it's own command-hotkey-system for spawning NPCs with the touch of a button.
How to Use:
RECORDING:
To start a record use the following command:
/npc-rec <Filename>
Replace <Filename> with a name of your choice. This is the name of your record file. You need it to replay it afterwards.
Example: "/npc-rec leyla1"
Now that you started recording, all supported actions will be saved, and be done again by a NPC in future replays.
Following actions are recorded:
- Movement
- Breaking Blocks
- Placing Blocks
- Right Click Block Interactions
- (Most) Right Click Item Interactions
- Using Bow, Crossbow, Trident, etc
- Swimming/Crouching
- Sending Chat Messages
- Dropping Items
- Equipping Armor and Items
Once you are done with your actions use the /npc-rec command again to end recording.
REPLAYING:
Now you can replay your recording with the npc-play command:
/npc-play <Filename> <NPC Name> <Skin Filename> [Model]
<Filename> is the name of your record file you want to replay.
<NPC Name> is the name your NPC will have in it's nametag and in chat.
<Skin Filename> is the name of the texture file (without the ".png") that will be used as it's skin. If you don't have a custom skin, just type "default" here.
[Model] is an optional argument. You can specify here what model the NPC should use. If you don't want a specific model, you can ignore this. The normal player model will be used then.
Examples:
/npc-play leyla1 Leyla leyla_evil
// This spawns a NPC with the name "Leyla" and uses "leyla_evil"(.png) as skin file. The model isn't specified here so the default player model is used.
/npc-play gchicken4 GreenChicken green_chicken minecraft:chicken
// This spawns a NPC with the name "GreenChicken". "green_chicken"(.png) is used as skin file. Here the model is specified. It's set to minecraft:chicken, so the NPC will have the model of a chicken.
Additional Settings:
If you have specified the model, you can add curly brackets at the end to adjust more things. Inside the brackets you can add additional settings like the nametag visibility.
This works in the following format:
<setting>:<value>
for example:
/npc-play leyla1 Leyla leyla_evil minecraft:player {ShowNameTag:0} // "ShowNameTag" is the setting, "0" is the value we give the setting.
There are many settings which can be adjusted this way. Multiple settings can be adjusted by dividing them with a comma. eg: {ShowNameTag:1,Invulnerable:1,Layer:green_eyes}
List of settings:
- (Int) "ShowNameTag" Defines the nametag visibility (0 = invisible, 1 = always visible, 2 = only visible when looked at)
- (boolean "Invulnerable" Defines if the NPC is invulnerable
- (boolean) "UseCommands" Defines if NPCs can execute commands
- (boolean) "IsChild" Defines if the model should be the baby variant
- (String) "Layer" Defines the texture of the layer, if the model has additional layers. Use the filename as value here. Layer textures need to be in .../config/cosmicnpcs/resources/textures/layers to work
- (String) "VillagerType" Defines the VillagerType. e.g. insert "swamp" for a swamp Villager
- (String) "Profession" Defines the Villager Profession
- (Int) "ProfessionLevel" Defines the Villager Trading Level
- (String) "Color" Defines the color. As for instance the wool color of sheep. Insert "rainbow" to get a rainbow sheep
- (Boolean) "Sheared" Defines if a sheep is sheared, or not
- (String) "MushroomBlock" Defines the block on the back of a Mooshroom
- (Boolean) "Charged" Defines if a Creeper or Wither is charged
- (String) "Armor" Currently only defines the Horse Armor on Horses
- (boolean) "Saddled" Defines if a pig or Strider has a Saddle
- (String) "Head" Defines the Block the Snow Golem uses as Head
(boolean means the value can be "true" or "false". You can also use the numerical equivalent "1" and "0")
(String is a plain text. like "blue", or "green_eyes", or "diamond_block")
Custom Skins:
To use your own skins for the NPCs, you need to put them in the texture folder at .../config/cosmicnpcs/resources/textures/main.
Afterwards they can be selected by using the filename (without the .png) inside the npc-play command.
Note: It is important to know that texture filenames MUST ALWAYS be lowercase! Minecraft can't process files with uppercase letters in it! Also your Skin needs to have a resolution of 64x64 if you use the player model.
Note for Multiplayer: If you play on a server make sure everyone has the same skins (with the same names) in their texture folder. Otherwise it could happen they won't see the correct skin but the default skin.
Command Gui:
This Mod includes a own command-hotkey-system using the "Command GUI". It can be opened with Numpad 3. There you can set a command of your choice which then can be executed by pressing Numpad 9.
If you press Numpad 9 again it will NOT execute the same command as before, but the command of the next page. So you have a command queue. You can use this system to replay various NPC recordings by touch of a button!
Version Differences: (What is important to know if you play on an older version!)
1.12.2: (CosmicNPCs-1.2.1)
-The texture folder is located at: .../.minecraft/config/cosmicnpcs/assets/npctextures
-Only 6 models can be used for the NPCs: Player, PlayerSlim, Villager, Witch, Vex and Chicken. Just type the exact name of one that is listed here.
-Most of the additional settings don't exist. Only "ShowNameTag" and "Invulnerable" can be used. ("true" and "false" are not allowed as value. Use "1" or "0")
-NPCs can use commands per default.
1.7.10: (CosmicNPCs-1.1)
-The texture folder is located at: .../.minecraft/config/cosmicnpcs/assets/npctextures
-There is no model argument in the npc-play command. Only the default player model exists as model.
-There are no additional settings. But you can type "Invulnerable" after the skin filename as an extra argument to make the NPC invulnerable. (Case sensitive!)
-NPCs can't use commands, and some other actions also don't work how they should
-Skins must have a resolution of 64x32 instead of 64x64
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CosmicNPCs
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 已将该模组更新为 Minecraft 1.20.6
已知问题:
- NPC 无法从弓中射出箭矢,只能从弩中射出。这是由于 NeoForge 在该版本中存在的一个 bug,很遗憾无法修复。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧