I can't figure out for the life of me how to change the attack damage of this mob. I can do it for most every thing else, that is already a melee type of mob, but when I try to give the ocelot more hit damage the addon just ignores any value I put in there and remains at the default value '4'.
Here is my Json code. The attack damage attribute is in the 'components' section toward the end. Please Please some one take a look at this. This is really killing my vibe:
I can't figure out for the life of me how to change the attack damage of this mob. I can do it for most every thing else, that is already a melee type of mob, but when I try to give the ocelot more hit damage the addon just ignores any value I put in there and remains at the default value '4'.
Here is my Json code. The attack damage attribute is in the 'components' section toward the end. Please Please some one take a look at this. This is really killing my vibe:
{
"minecraft:entity": {
"format_version": 0.1,
"component_groups": {
"minecraft:ocelot_baby": {
"minecraft:is_baby": {
},
"minecraft:scale": {
"value": 0.5
},
"minecraft:ageable": {
"duration": 1200,
"feedItems": [ "pufferfish" , "fish", "chicken" ],
"grow_up": {
"event": "minecraft:ageable_grow_up",
"target": "self"
}
}
},
"minecraft:ocelot_adult": {
"minecraft:loot": {
"table": "loot_tables/entities/ocelot.json"
},
"minecraft:scale": {
"value": 1.7
},
"minecraft:behavior.breed": {
"priority": 3,
"speed_multiplier": 1.0
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:breedable": {
"requireTame": true,
"breedsWith": {
"mateType": "minecraft:ocelot",
"babyType": "minecraft:ocelot",
"breed_event": {
"event": "minecraft:entity_born",
"target": "baby"
}
},
"breedItems": [ "pufferfish" ]
}
},
"minecraft:ocelot_wild": {
"minecraft:variant": {
"value": 0
},
"minecraft:tameable": {
"probability": 0.2,
"tameItems": [ "pufferfish" ],
"tame_event": {
"event": "minecraft:on_tame",
"target": "self"
}
},
"minecraft:behavior.avoid_mob_type": {
"priority": 4,
"entity_types": [
{
"filters": { "other_with_families": ["player", "witch" ]},
"max_dist": 10,
"walk_speed_multiplier": 0.8,
"sprint_speed_multiplier": 1.6
}
]
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"attack_interval": 10,
"entity_types": [
{
"filters": { "other_with_families": [ "chicken", "rabbit", "pig", "sheep", "wolf", "spider", "zombie" ] },
"max_dist": 20
}
],
"entity_types": [
{
"filters": { "other_with_families": [ "creeper" ] },
"max_dist": 20
}
],
"entity_types": [
{
"probability":0.55,
"filters": { "other_with_families": [ "player" ] },
"max_dist": 20
}
]
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [0.0, 0.35, 0.0]
}
}
},
"minecraft:ocelot_tame": {
"minecraft:is_tamed": {
},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:sittable": {
},
"minecraft:leashable": {
"soft_distance": 10,
"hard_distance": 20,
"max_distance": 30,
"on_leash": {
"event": "minecraft:on_leash",
"target": "self"
},
"on_unleash": {
"event": "minecraft:on_unleash",
"target": "self"
}
},
"minecraft:behavior.follow_owner": {
"priority": 6,
"speed_multiplier": 1.0,
"start_distance": 10,
"stop_distance": 5
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 1,
"attack_interval": 10,
"entity_types": [
{
"filters": { "other_with_families": [ "creeper", "zombie" ] },
"max_dist": 20
}
],
"must_see": true
},
"minecraft:behavior.owner_hurt_by_target": {
"priority": 3
},
"minecraft:behavior.owner_hurt_target": {
"priority": 4
},
"minecraft:behavior.stay_while_sitting": {
"priority": 2
},
"minecraft:behavior.ocelot_sit_on_block": {
"priority": 8,
"speed_multiplier": 1.0
}
},
"minecraft:ocelot_leashed": {
"minecraft:behavior.move_towards_restriction": {
"priority": 5,
"speed_multiplier": 1.0
}
},
"minecraft:ocelot_tuxedo": {
"minecraft:variant": {
"value": 1
}
},
"minecraft:ocelot_tabby": {
"minecraft:variant": {
"value": 2
}
},
"minecraft:ocelot_siamese": {
"minecraft:variant": {
"value": 3
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:ocelot"
},
"minecraft:type_family": {
"family": [ "ocelot" ]
},
"minecraft:health": {
"value": 20,
"max": 20
},
"minecraft:attack": {
"damage": 4
},
"minecraft:nameable": {
},
"minecraft:healable": {
"items": [
"porkchop",
"cooked_porkchop",
"fish",
"salmon",
"clownfish",
"pufferfish",
"cooked_fish",
"cooked_salmon",
"chicken",
"cooked_chicken",
"muttonRaw",
"muttonCooked",
"rabbit",
"cooked_rabbit",
"rabbit_stew"
]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 0.7
},
"minecraft:movement": {
"value": 0.3,
"max": 0.3
},
"minecraft:fall_damage": {
"value": 0.0
},
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.tempt": {
"priority": 3,
"speed_multiplier": 0.5,
"within_radius": 16,
"can_get_scared": true,
"items": [
"pufferfish"
]
},
"minecraft:behavior.mount_pathing": {
"priority": 1,
"speed_multiplier": 1.25,
"target_dist": 0,
"track_target": true
},
"minecraft:behavior.ocelot_sit_on_block": {
"priority": 2,
"speed_multiplier": 0.8
},
"minecraft:behavior.leap_at_target": {
"priority": 5,
"yd": 0.9
},
"minecraft:behavior.ocelotattack": {
"priority": 3,
"walk_speed_multiplier": 1.2,
"sprint_speed_multiplier": 1.6,
"sneak_speed_multiplier": 0.85
},
"minecraft:behavior.random_stroll": {
"priority": 4,
"speed_multiplier": 0.8
},
"minecraft:behavior.look_at_player": {
"priority": 7
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"randomize": [
{
"weight": 3,
"remove": {
},
"add": {
"component_groups": [
"minecraft:ocelot_adult",
"minecraft:ocelot_wild"
]
}
},
{
"weight": 1,
"remove": {
},
"add": {
"component_groups": [
"minecraft:ocelot_baby",
"minecraft:ocelot_wild"
]
}
}
]
}
]
},
"minecraft:entity_born": {
"remove": {
},
"add": {
"component_groups": [
"minecraft:ocelot_baby",
"minecraft:ocelot_tame"
]
}
},
"minecraft:ageable_grow_up": {
"remove": {
"component_groups": [
"minecraft:ocelot_baby"
]
},
"add": {
"component_groups": [
"minecraft:ocelot_adult"
]
}
},
"minecraft:on_tame": {
"sequence": [
{
"remove": {
"component_groups": [
"minecraft:ocelot_wild"
]
}
},
{
"add": {
"component_groups": [
"minecraft:ocelot_tame"
]
}
},
{
"randomize": [
{
"weight": 30,
"add": {
"component_groups": [
"minecraft:ocelot_tabby"
]
}
},
{
"weight": 30,
"add": {
"component_groups": [
"minecraft:ocelot_tuxedo"
]
}
},
{
"weight": 30,
"add": {
"component_groups": [
"minecraft:ocelot_siamese"
]
}
}
]
}
]
},
"minecraft:on_leash": {
"add": {
"component_groups": [
"minecraft:ocelot_leashed"
]
}
},
"minecraft:on_unleash": {
"remove": {
"component_groups": [
"minecraft:ocelot_leashed"
]
}
}
}
}
}