Baby mobs' heads are scaled incorrectly
With add-ons the minecraft:scale component doesn't scale baby mobs heads correctly. It does do it correctly for adult mobs.
What happens is the head goes straight up when it would be if it was normal sized but doesn't go forward to where the neck of the body now is. It also remains small. This does not affect adults.
I have made no other changes from the original files than to that of the scale and have no resource packs applied
Here is the json for the pig
{
"minecraft:entity": {
"format_version": 0.1,
"component_groups": {
"minecraft:pig_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value":2.5
},
"minecraft:ageable": {
"duration": 1200,
"feedItems": "carrot",
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
},
"minecraft:behavior.follow_parent": {
"priority": 6,
"speed_multiplier": 1.1
}
},
"minecraft:pig_transform": {
"minecraft:transformation": {
"into": "minecraft:pig_zombie",
"delay": 0.5
}
},
"minecraft:pig_adult": {
"minecraft:loot": {
"table": "loot_tables/entities/pig.json"
},
"minecraft:collision_box": {
"width": 0.9,
"height": 0.9
},
"minecraft:behavior.breed": {
"priority": 4,
"speed_multiplier": 1.0
},
"minecraft:breedable": {
"requireTame": false,
"breedsWith": {
"mateType": "minecraft:pig",
"babyType": "minecraft:pig",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breedItems": "carrot"
}
},
"minecraft:pig_unsaddled": {
"minecraft:interact": [
{
"on_interact": {
"filters": {
"other_with_item": "saddle"
},
"event": "minecraft:on_saddled"
},
"use_item": true,
"interact_text": "action.interact.saddle"
}
],
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [0.0, 0.63, 0.0]
}
}
},
"minecraft:pig_saddled": {
"minecraft:is_saddled": {
},
"minecraft:loot": {
"table": "loot_tables/entities/pig_saddled.json"
},
"minecraft:boostable": {
"speed_multiplier": 2.0,
"duration": 3.0,
"boost_items": [
{
"item": "carrotOnAStick",
"item_damage": 2,
"replaceItem": "fishing_rod"
}
]
},
"minecraft:rideable": {
"seat_count": 1,
"interact_text": "action.interact.mount",
"seats": {
"position": [0.0, 0.63, 0.0]
}
},
"minecraft:item_controllable": {
"control_items": "carrotOnAStick"
},
"minecraft:behavior.controlled_by_player": {
"priority": 0
}
},
"minecraft:pig_leashed": {
"minecraft:behavior.move_towards_restriction": {
"priority": 2,
"speed_multiplier": 1.0
}
}
},
"components": {
"minecraft:scale": {
"value":5
},
"minecraft:damage_sensor": {
"on_damage": {
"filters": {
"other_with_families": "lightning"
},
"event": "become_zombie"
},
"deals_damage": false
},
"minecraft:identifier": {
"id": "minecraft:pig"
},
"minecraft:type_family": {
"family": [ "pig" ]
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 10,
"max": 10
},
"minecraft:movement": {
"value": 0.25,
"max": 0.5
},
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0,
"on_leash": {
"event": "minecraft:on_leash",
"target": "self"
},
"on_unleash": {
"event": "minecraft:on_unleash",
"target": "self"
}
},
"minecraft:behavior.mount_pathing": {
"priority": 1,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
},
"minecraft:behavior.float": {
"priority": 2
},
"minecraft:behavior.panic": {
"priority": 3,
"speed_multiplier": 1.25
},
"minecraft:behavior.tempt": {
"priority": 5,
"speed_multiplier": 1.2,
"items": [
"potato",
"carrot",
"beetroot",
"carrotOnAStick"
]
},
"minecraft:behavior.random_stroll": {
"priority": 7,
"speed_multiplier": 1.0
},
"minecraft:behavior.look_at_player": {
"priority": 8,
"target_distance": 6.0,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 9
}
},
"events": {
"become_zombie": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:pig_transform"
]
}
},
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"remove": {
},
"add": {
"component_groups": [
"minecraft:pig_adult",
"minecraft:pig_unsaddled"
]
}
},
{
"weight": 5,
"remove": {
},
"add": {
"component_groups": [
"minecraft:pig_baby"
]
}
}
]
},
"minecraft:entity_born": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:pig_baby"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:pig_baby"
]
},
"add": {
"component_groups": [
"minecraft:pig_adult",
"minecraft:pig_unsaddled"
]
}
},
"minecraft:on_saddled": {
"remove": {
"component_groups": [
"minecraft:pig_unsaddled"
]
},
"add": {
"component_groups": [
"minecraft:pig_saddled"
]
}
},
"minecraft:on_leash": {
"add": {
"component_groups": [
"minecraft:pig_leashed"
]
}
},
"minecraft:on_unleash": {
"remove": {
"component_groups": [
"minecraft:pig_leashed"
]
}
}
}
}
}
Linked Issues
Created Issue:
Baby mob's heads are scaled incorrectly
With add-ons the minecraft:scale component doesn't scale baby mobs heads correctly. It does do it correctly for adult mobs.
What happens is the head goes straight up when it would be if it was normal sized but doesn't go forward to where the neck of the body now is. It also remains small. This does not affect adults.
I have made no other changes from the original files than to that of the scale and have no resource packs applied
Here is the json for the pig
{
"minecraft:entity": {
"format_version": 0.1,"component_groups": {
{ "value":2.5 }
"minecraft:pig_baby": {
"minecraft:is_baby": {
},
"minecraft:scale":,
{ "event": "minecraft:ageable_grow_up", "target": "self" }
"minecraft:ageable": {
"duration": 1200,
"feedItems": "carrot",
"grow_up":},
"minecraft:behavior.follow_parent":
{ "priority": 6, "speed_multiplier": 1.1 }},
"minecraft:pig_transform": {
{ "into": "minecraft:pig_zombie", "delay": 0.5 }
"minecraft:transformation":},
"minecraft:pig_adult": {
{ "table": "loot_tables/entities/pig.json" }
"minecraft:loot":,
{ "width": 0.9, "height": 0.9 }
"minecraft:collision_box":,
{ "priority": 4, "speed_multiplier": 1.0 }
"minecraft:behavior.breed":,
{ "event": "minecraft:entity_born", "target": "baby" }
"minecraft:breedable": {
"requireTame": false,
"breedsWith": {
"mateType": "minecraft:pig",
"babyType": "minecraft:pig",
"breed_event":},
"breedItems": "carrot"
}
},"minecraft:pig_unsaddled": {
{ "other_with_item": "saddle" }
"minecraft:interact": [
{
"on_interact": {
"filters":,
{ "position": [0.0, 0.63, 0.0] }
"event": "minecraft:on_saddled"
},
"use_item": true,
"interact_text": "action.interact.saddle"
}
],
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats":}
},"minecraft:pig_saddled": {
{ "table": "loot_tables/entities/pig_saddled.json" }
"minecraft:is_saddled": {
},
"minecraft:loot":,
{ "item": "carrotOnAStick", "item_damage": 2, "replaceItem": "fishing_rod" }
"minecraft:boostable": {
"speed_multiplier": 2.0,
"duration": 3.0,
"boost_items": []
},"minecraft:rideable": {
{ "position": [0.0, 0.63, 0.0] }
"seat_count": 1,
"interact_text": "action.interact.mount",
"seats":{ "control_items": "carrotOnAStick" }
},
"minecraft:item_controllable":,
{ "priority": 0 }
"minecraft:behavior.controlled_by_player":},
"minecraft:pig_leashed": {
{ "priority": 2, "speed_multiplier": 1.0 }
"minecraft:behavior.move_towards_restriction":}
},"components": {
{ "value":5 }
"minecraft:scale":,
{ "other_with_families": "lightning" }
"minecraft:damage_sensor": {
"on_damage": {
"filters":,
{ "id": "minecraft:pig" }
"event": "become_zombie"
},
"deals_damage": false
},
"minecraft:identifier":,
{ "family": [ "pig" ] }
"minecraft:type_family":,
{ "value": 10, "max": 10 }
"minecraft:nameable": {
},
"minecraft:health":,
{ "value": 0.25, "max": 0.5 }
"minecraft:movement":,
{ "event": "minecraft:on_leash", "target": "self" }
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0,
"on_leash":,
{ "event": "minecraft:on_unleash", "target": "self" }
"on_unleash":},
{ "priority": 1, "speed_multiplier": 1.25, "target_dist": 0.0, "track_target": true }
"minecraft:behavior.mount_pathing":,
{ "priority": 2 }
"minecraft:behavior.float":,
{ "priority": 3, "speed_multiplier": 1.25 }
"minecraft:behavior.panic":,
{ "priority": 5, "speed_multiplier": 1.2, "items": [ "potato", "carrot", "beetroot", "carrotOnAStick" ] }
"minecraft:behavior.tempt":,
{ "priority": 7, "speed_multiplier": 1.0 }
"minecraft:behavior.random_stroll":,
{ "priority": 8, "target_distance": 6.0, "probability": 0.02 }
"minecraft:behavior.look_at_player":,
{ "priority": 9 }
"minecraft:behavior.random_look_around":},
"events": {
{ "component_groups": [ "minecraft:pig_transform" ] }
"become_zombie": {
"remove": {
},
"add":},
{ "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] }
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"remove": {
},
"add":},
{ "component_groups": [ "minecraft:pig_baby" ] }
{
"weight": 5,
"remove": {
},
"add":}
]
},"minecraft:entity_born": {
{ "component_groups": [ "minecraft:pig_baby" ] }
"remove": {
},
"add":},
"minecraft:ageable_grow_up": {
{ "component_groups": [ "minecraft:pig_baby" ] }
"remove":,
{ "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] }
"add":},
"minecraft:on_saddled": {
{ "component_groups": [ "minecraft:pig_unsaddled" ] }
"remove":,
{ "component_groups": [ "minecraft:pig_saddled" ] }
"add":},
"minecraft:on_leash": {
{ "component_groups": [ "minecraft:pig_leashed" ] }
"add":},
{ "component_groups": [ "minecraft:pig_leashed" ] }
"minecraft:on_unleash": {
"remove":}
}
}
}
With add-ons the minecraft:scale component doesn't scale baby mobs heads correctly. It does do it correctly for adult mobs.
What happens is the head goes straight up when it would be if it was normal sized but doesn't go forward to where the neck of the body now is. It also remains small. This does not affect adults.
I have made no other changes from the original files than to that of the scale and have no resource packs applied
Here is the json for the pig
{
"minecraft:entity": {
"format_version": 0.1,"component_groups": {
{ "value":2.5 }
"minecraft:pig_baby": {
"minecraft:is_baby": {
},
"minecraft:scale":,
{ "event": "minecraft:ageable_grow_up", "target": "self" }
"minecraft:ageable": {
"duration": 1200,
"feedItems": "carrot",
"grow_up":},
"minecraft:behavior.follow_parent":
{ "priority": 6, "speed_multiplier": 1.1 }},
"minecraft:pig_transform": {
{ "into": "minecraft:pig_zombie", "delay": 0.5 }
"minecraft:transformation":},
"minecraft:pig_adult": {
{ "table": "loot_tables/entities/pig.json" }
"minecraft:loot":,
{ "width": 0.9, "height": 0.9 }
"minecraft:collision_box":,
{ "priority": 4, "speed_multiplier": 1.0 }
"minecraft:behavior.breed":,
{ "event": "minecraft:entity_born", "target": "baby" }
"minecraft:breedable": {
"requireTame": false,
"breedsWith": {
"mateType": "minecraft:pig",
"babyType": "minecraft:pig",
"breed_event":},
"breedItems": "carrot"
}
},"minecraft:pig_unsaddled": {
{ "other_with_item": "saddle" }
"minecraft:interact": [
{
"on_interact": {
"filters":,
{ "position": [0.0, 0.63, 0.0] }
"event": "minecraft:on_saddled"
},
"use_item": true,
"interact_text": "action.interact.saddle"
}
],
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats":}
},"minecraft:pig_saddled": {
{ "table": "loot_tables/entities/pig_saddled.json" }
"minecraft:is_saddled": {
},
"minecraft:loot":,
{ "item": "carrotOnAStick", "item_damage": 2, "replaceItem": "fishing_rod" }
"minecraft:boostable": {
"speed_multiplier": 2.0,
"duration": 3.0,
"boost_items": []
},"minecraft:rideable": {
{ "position": [0.0, 0.63, 0.0] }
"seat_count": 1,
"interact_text": "action.interact.mount",
"seats":{ "control_items": "carrotOnAStick" }
},
"minecraft:item_controllable":,
{ "priority": 0 }
"minecraft:behavior.controlled_by_player":},
"minecraft:pig_leashed": {
{ "priority": 2, "speed_multiplier": 1.0 }
"minecraft:behavior.move_towards_restriction":}
},"components": {
{ "value":5 }
"minecraft:scale":,
{ "other_with_families": "lightning" }
"minecraft:damage_sensor": {
"on_damage": {
"filters":,
{ "id": "minecraft:pig" }
"event": "become_zombie"
},
"deals_damage": false
},
"minecraft:identifier":,
{ "family": [ "pig" ] }
"minecraft:type_family":,
{ "value": 10, "max": 10 }
"minecraft:nameable": {
},
"minecraft:health":,
{ "value": 0.25, "max": 0.5 }
"minecraft:movement":,
{ "event": "minecraft:on_leash", "target": "self" }
"minecraft:leashable": {
"soft_distance": 4.0,
"hard_distance": 6.0,
"max_distance": 10.0,
"on_leash":,
{ "event": "minecraft:on_unleash", "target": "self" }
"on_unleash":},
{ "priority": 1, "speed_multiplier": 1.25, "target_dist": 0.0, "track_target": true }
"minecraft:behavior.mount_pathing":,
{ "priority": 2 }
"minecraft:behavior.float":,
{ "priority": 3, "speed_multiplier": 1.25 }
"minecraft:behavior.panic":,
{ "priority": 5, "speed_multiplier": 1.2, "items": [ "potato", "carrot", "beetroot", "carrotOnAStick" ] }
"minecraft:behavior.tempt":,
{ "priority": 7, "speed_multiplier": 1.0 }
"minecraft:behavior.random_stroll":,
{ "priority": 8, "target_distance": 6.0, "probability": 0.02 }
"minecraft:behavior.look_at_player":,
{ "priority": 9 }
"minecraft:behavior.random_look_around":},
"events": {
{ "component_groups": [ "minecraft:pig_transform" ] }
"become_zombie": {
"remove": {
},
"add":},
{ "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] }
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 95,
"remove": {
},
"add":},
{ "component_groups": [ "minecraft:pig_baby" ] }
{
"weight": 5,
"remove": {
},
"add":}
]
},"minecraft:entity_born": {
{ "component_groups": [ "minecraft:pig_baby" ] }
"remove": {
},
"add":},
"minecraft:ageable_grow_up": {
{ "component_groups": [ "minecraft:pig_baby" ] }
"remove":,
{ "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] }
"add":},
"minecraft:on_saddled": {
{ "component_groups": [ "minecraft:pig_unsaddled" ] }
"remove":,
{ "component_groups": [ "minecraft:pig_saddled" ] }
"add":},
"minecraft:on_leash": {
{ "component_groups": [ "minecraft:pig_leashed" ] }
"add":},
{ "component_groups": [ "minecraft:pig_leashed" ] }
"minecraft:on_unleash": {
"remove":}
}
}
}With add-ons the minecraft:scale component doesn't scale baby mobs heads correctly. It does do it correctly for adult mobs.
What happens is the head goes straight up when it would be if it was normal sized but doesn't go forward to where the neck of the body now is. It also remains small. This does not affect adults.
I have made no other changes from the original files than to that of the scale and have no resource packs applied
Here is the json for the pig{ "minecraft:entity": { "format_version": 0.1, "component_groups": { "minecraft:pig_baby": { "minecraft:is_baby": { }, "minecraft:scale": { "value":2.5 }, "minecraft:ageable": { "duration": 1200, "feedItems": "carrot", "grow_up": { "event": "minecraft:ageable_grow_up", "target": "self" } }, "minecraft:behavior.follow_parent": { "priority": 6, "speed_multiplier": 1.1 } }, "minecraft:pig_transform": { "minecraft:transformation": { "into": "minecraft:pig_zombie", "delay": 0.5 } }, "minecraft:pig_adult": { "minecraft:loot": { "table": "loot_tables/entities/pig.json" }, "minecraft:collision_box": { "width": 0.9, "height": 0.9 }, "minecraft:behavior.breed": { "priority": 4, "speed_multiplier": 1.0 }, "minecraft:breedable": { "requireTame": false, "breedsWith": { "mateType": "minecraft:pig", "babyType": "minecraft:pig", "breed_event": { "event": "minecraft:entity_born", "target": "baby" } }, "breedItems": "carrot" } }, "minecraft:pig_unsaddled": { "minecraft:interact": [ { "on_interact": { "filters": { "other_with_item": "saddle" }, "event": "minecraft:on_saddled" }, "use_item": true, "interact_text": "action.interact.saddle" } ], "minecraft:rideable": { "seat_count": 1, "family_types": [ "zombie" ], "seats": { "position": [0.0, 0.63, 0.0] } } }, "minecraft:pig_saddled": { "minecraft:is_saddled": { }, "minecraft:loot": { "table": "loot_tables/entities/pig_saddled.json" }, "minecraft:boostable": { "speed_multiplier": 2.0, "duration": 3.0, "boost_items": [ { "item": "carrotOnAStick", "item_damage": 2, "replaceItem": "fishing_rod" } ] }, "minecraft:rideable": { "seat_count": 1, "interact_text": "action.interact.mount", "seats": { "position": [0.0, 0.63, 0.0] } }, "minecraft:item_controllable": { "control_items": "carrotOnAStick" }, "minecraft:behavior.controlled_by_player": { "priority": 0 } }, "minecraft:pig_leashed": { "minecraft:behavior.move_towards_restriction": { "priority": 2, "speed_multiplier": 1.0 } } }, "components": { "minecraft:scale": { "value":5 }, "minecraft:damage_sensor": { "on_damage": { "filters": { "other_with_families": "lightning" }, "event": "become_zombie" }, "deals_damage": false }, "minecraft:identifier": { "id": "minecraft:pig" }, "minecraft:type_family": { "family": [ "pig" ] }, "minecraft:nameable": { }, "minecraft:health": { "value": 10, "max": 10 }, "minecraft:movement": { "value": 0.25, "max": 0.5 }, "minecraft:leashable": { "soft_distance": 4.0, "hard_distance": 6.0, "max_distance": 10.0, "on_leash": { "event": "minecraft:on_leash", "target": "self" }, "on_unleash": { "event": "minecraft:on_unleash", "target": "self" } }, "minecraft:behavior.mount_pathing": { "priority": 1, "speed_multiplier": 1.25, "target_dist": 0.0, "track_target": true }, "minecraft:behavior.float": { "priority": 2 }, "minecraft:behavior.panic": { "priority": 3, "speed_multiplier": 1.25 }, "minecraft:behavior.tempt": { "priority": 5, "speed_multiplier": 1.2, "items": [ "potato", "carrot", "beetroot", "carrotOnAStick" ] }, "minecraft:behavior.random_stroll": { "priority": 7, "speed_multiplier": 1.0 }, "minecraft:behavior.look_at_player": { "priority": 8, "target_distance": 6.0, "probability": 0.02 }, "minecraft:behavior.random_look_around": { "priority": 9 } }, "events": { "become_zombie": { "remove": { }, "add": { "component_groups": [ "minecraft:pig_transform" ] } }, "minecraft:entity_spawned": { "randomize": [ { "weight": 95, "remove": { }, "add": { "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] } }, { "weight": 5, "remove": { }, "add": { "component_groups": [ "minecraft:pig_baby" ] } } ] }, "minecraft:entity_born": { "remove": { }, "add": { "component_groups": [ "minecraft:pig_baby" ] } }, "minecraft:ageable_grow_up": { "remove": { "component_groups": [ "minecraft:pig_baby" ] }, "add": { "component_groups": [ "minecraft:pig_adult", "minecraft:pig_unsaddled" ] } }, "minecraft:on_saddled": { "remove": { "component_groups": [ "minecraft:pig_unsaddled" ] }, "add": { "component_groups": [ "minecraft:pig_saddled" ] } }, "minecraft:on_leash": { "add": { "component_groups": [ "minecraft:pig_leashed" ] } }, "minecraft:on_unleash": { "remove": { "component_groups": [ "minecraft:pig_leashed" ] } } } } }
relates to
Baby mob's heads are scaled incorrectlyBaby mobs' heads are scaled incorrectly


Before anyone who is not a moderator or in a position of athority here comments that this is not a bug because it is not vanilla, This is an issue with the minecraft:scale component which Mojang has purposely made editible in MCPE through add-ons unlike using other kinds mods where MCPE has no support.
Did you try the mobs.json or naw?
I consider it's still a bug either in ⁠⁠⁠⁠"minecraft:scale" or the baby animal models, probably the latter, because the overall effect of "minecraft:scale"⁠⁠⁠ in a ⁠⁠⁠behavior pack⁠⁠⁠ should not be affected by the actual models defined in the currently active resource pack. No one can use it otherwise.
Vegito Rekt I am not sure what naw is but mobs.json is in the resource pack not the behavior pack so it is not changed.
Attached behavior pack that makes pigs not move except when breeding and makes baby pigs larger, for convenient testing.
This breaks custom modeled babies though.
If there is an issue with custom baby models, please search for a report and find out if one exists already. If not, please make a new report with the steps to reproduce.