Original Description:
No matter what I cannot change the attack damage or health max for ocelots. My json changes work on virtually all other mobs, but not for this one. Very annoying.
Please look into this. Thanks.
Edit by @unknown:
This bug is caused by the fact that ocelots attack using the "minecraft:behavior.ocelotattack" component, which does not respect the attack damage values set by the "minecraft:attack" component.
The vanilla ocelot.json also contains a typo with its "minecraft:attack" component, but fixing it does NOT fix this bug. (But this typo still needs to be fixed as well, obviously.):
"minecraft:attack_damage": {
"value": 4
},
This snippet should be:
"minecraft:attack": {
"damage": 4
},
Comments 5
I can confirm the attack damage of ocelots cannot be changed. However, I believe you may be making a mistake in changing the health value. You mention "max health". Keep in mind that the max value for health is a value used for limiting the amount of health the mobs can receive from positive mob effects... NOT the amount of health it spawns with. The ocelots health value it normally has is unaffected by the "max" parameter, and is instead controlled by the "value" parameter.
I'm not sure if the "max" parameter controls how big the health bar for a mob is, while the "value" param controls how much it spawns with (which would mean healing potions could increase its health to the max limit); or if the "value" param controls the normal health bar size, and the "max" param controls how big the bar can get due to effects like Health Boost. (Is that even in MCPE yet?)
Cleaning up old tickets: This ticket has not been updated recently (1 year+) so is being closed as Cannot Reproduce. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki
Are you sure you're editing the correct fields for the health? I was able to change the health value for both tamed and untamed ocelots and it worked.
I think the attack damage is not working correctly though; I set ocelots to attack cows, and they would kill the cow in four hits every time, whether the attack damage was set to 4, 400, or 4000