网易我的世界论坛
标题:
关于自定义实体的一些问题
[打印本页]
作者:
FangCreator
时间:
2022-7-19 08:30
标题:
关于自定义实体的一些问题
1)
我定义了一个实体,但是在游戏里它的
贴图显示不出来
,只有影子是怎么回事?碰撞箱也有,也能打到,但就是看不见这个实体,问题出在哪里了?
资源包实体定义代码:
{
"format_version": "1.8.0",
"minecraft:client_entity": {
"description": {
"animation_controllers": [
{
"walk": "controller.animation.fat_zombie.walk"
},
{
"attack":"controller.animation.fat_zombie.attack"
}
],
"animations": {
"attack": "animation.fat_zombie.attacking",
"walk": "animation.fat_zombie.walking"
},
"enable_attachables": false,
"geometry": {
"default": "geometry.fat_zombie"
},
"identifier": "itotz:fat_zombie",
"materials": {
"default": "fat_zombie"
},
"render_controllers": [
"controller.render.fat_zombie"
],
"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