网易我的世界论坛

标题: 关于自定义实体的一些问题 [打印本页]

作者: FangCreator    时间: 2022-7-19 08:30
标题: 关于自定义实体的一些问题
1)我定义了一个实体,但是在游戏里它的贴图显示不出来,只有影子是怎么回事?碰撞箱也有,也能打到,但就是看不见这个实体,问题出在哪里了?
资源包实体定义代码:
  1. {
  2.     "format_version": "1.8.0",
  3.     "minecraft:client_entity": {
  4.         "description": {
  5.             "animation_controllers": [
  6.                 {
  7.                     "walk": "controller.animation.fat_zombie.walk"
  8.                 },
  9.                                 {
  10.                                         "attack":"controller.animation.fat_zombie.attack"
  11.                                 }
  12.             ],
  13.             "animations": {
  14.                 "attack": "animation.fat_zombie.attacking",
  15.                 "walk": "animation.fat_zombie.walking"
  16.             },
  17.             "enable_attachables": false,
  18.             "geometry": {
  19.                 "default": "geometry.fat_zombie"
  20.             },
  21.             "identifier": "itotz:fat_zombie",
  22.             "materials": {
  23.                 "default": "fat_zombie"
  24.             },
  25.             "render_controllers": [
  26.                 "controller.render.fat_zombie"
  27.             ],
  28.             "spawn_egg": {
复制代码
2)我一进游戏就显示这个报错弹窗,看起来像animation_controllers的问题,怎么解决?
---------------------------
Assert Failure - ctrl+C to copy this message to the clipboard!
---------------------------
Assertion failed: node parse failed: animations(后面几次分别是attack,animations,default,states,attack,animations,default,animations,move,states,controller.animation.fat_zombie.walk)
Condition is false: false
Function: JsonUtil::JsonSchemaObjectNode<class JsonUtil::JsonParseState<class JsonUtil::JsonParseState<class JsonUtil::JsonParseState<class JsonUtil::JsonParseState<class JsonUtil::EmptyClass,bool>,bool>,bool>,bool>,bool>::_validate in C:\jenkins_slave\workspace\SdkClientGit\git_minecraft\handheld\src\common\util\JSONUtils.h @ 1000

---------------------------
确定   
---------------------------



作者: z殇x    时间: 2022-7-19 19:26
texture路径对的嘛~(猜测
作者: FangCreator    时间: 2022-7-19 20:19
z殇x 发表于 2022-7-19 19:26
texture路径对的嘛~(猜测

对了啊

作者: z殇x    时间: 2022-7-19 20:25
emm我之前遇到是路径没弄好~




欢迎光临 网易我的世界论坛 (http://mc.netease.com/) Powered by Discuz! X3.3