1

My chicken doesn't work

MatheusCraft227's Avatar MatheusCraft2276/2/22 10:20 am
1 emeralds 58
someone help me I'm making a texture that modifies the chicken in the game with three different variants one is a texture just for the baby chicken the other two is for the adult chicken but I don't know how to do that. when i put in the game the chickens become invisible

chicken.entity

{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "minecraft:chicken",
"min_engine_version": "1.8.0",
"materials": {
"default": "chicken",
"legs": "chicken_legs",
"comb": "entity_alphatest"
},
"textures": {
"default_1": "textures/entity/chicken/chicken",
"default_2": "textures/entity/chicken/chicken2",
"default_baby": "textures/entity/chicken/chicken_baby"
},
"geometry": {
"default": "geometry.chicken.v1.8"
},
"animations": {
"walk": "animation.chicken.walk",
"idle": "animation.chicken.idle",
"wing_flap": "animation.chicken.wing_flap",
"blink": "animation.chicken.blink",
"death": "animation.chicken.death",
"general": "controller.animation.chicken.general",
"look_at_target": "animation.common.look_at_target",
"baby_transform": "animation.chicken.baby_transform"
},
"scripts": {
"animate": [
"general",
"blink",
{"death": "!query.is_alive"},
{"wing_flap": "!query.is_on_ground && query.modified_move_speed"},
"look_at_target",
{ "baby_transform": "query.is_baby" }
],
"initialize":[
"variable.Zvar = Math.random(0,2);"
]
},
"render_controllers": [ "controller.render.chicken" ],
"spawn_egg": {
"texture": "spawn_egg",
"texture_index": 0
}
}
}
}

chicken.render_controllers


{
"format_version": "1.12.0",
"render_controllers": {
"controller.render.chicken": {
"arrays": {
"textures": {
"Array.skins": [ "Texture.default_1", "Texture.default_2" ]
}
},
"geometry": "Geometry.default",
"materials": [
{ "*": "Material.default" },
{ "leg*": "Material.legs" },
{ "comb": "Material.comb" }
],
"textures": [
"Array.skins[variable.Zvar]",
"query.is_baby ? Texture.default_baby"
]
}
}
}
Posted by MatheusCraft227's Avatar
MatheusCraft227
Level 1 : New Miner
0

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome