I working on my first add-on for Minecraft Pocket Edition and I have several problems/solutions. my first problem is editing the health, movement and attack speed, attack damage for a zombie. This what I have so far:
The Meaning of Life, the Universe, and Everything.
Location:
Far
Join Date:
11/22/2017
Posts:
57
Member Details
Okay that's weird. There's "Minecraft:health", "Minecraft:movement", and "Minecraft:health" that you can modify for #1. For #2, look at "arrow_effect" and change the gravity value to "0".
The Meaning of Life, the Universe, and Everything.
Location:
Far
Join Date:
11/22/2017
Posts:
57
Member Details
When I'm looking at the documentation, I noticed that "Minecraft:health" isn't even shown as being a component, which I find super weird. Especially since it is present in the entity behavior. This may suggest that it is not configurable, but maybe just additional testing to figure out if it is working. Try lowering it to 1 or 2, see if you can one shot the mob.
Minecraft:movement seems like it should be pretty straight-forward. I think you've got this right in your entity, but you may have to try various values and observe the results.
I'll see if I can modify some vanilla mobs and see what happens.
The Meaning of Life, the Universe, and Everything.
Location:
Far
Join Date:
11/22/2017
Posts:
57
Member Details
Okay. I just tested this on the Minecraft 1.7.1 client with 1.7 vanilla behaviors. On all accounts, everything was working. They were running really fast, they could do more damage (I tested Minecraft:attack) and I reduced their health down to 1, allowing me to one shot them with a quick punch. I also removed the hurt by sunlight parameter. Here's the code I used. Maybe try modifying it to your needs. Keep in mind this is for a Zombie, not a Drowned.
I working on my first add-on for Minecraft Pocket Edition and I have several problems/solutions. my first problem is editing the health, movement and attack speed, attack damage for a zombie. This what I have so far:
{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:look_to_start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": true
},
"event": "minecraft:start_transforming"
}
},
"minecraft:start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": false
},
"event": "minecraft:stop_transforming"
},
"minecraft:timer": {
"looping": false,
"time": 30,
"time_down_event": {
"event": "minecraft:convert_to_drowned"
}
}
},
"minecraft:convert_to_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_adult>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:convert_to_baby_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_baby>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:zombie_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 0.5
},
"minecraft:movement": {
"value": 0.35
}
},
"minecraft:zombie_adult": {
"minecraft:movement": {
"value": 0.35
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 1.1, -0.35 ],
"lock_rider_rotation": 0
}
},
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
}
},
"minecraft:zombie_jockey": {
"minecraft:behavior.find_mount": {
"priority": 0,
"within_radius": 0
}
},
"minecraft:can_have_equipment": {
"minecraft:equipment": {
"table": "loot_tables/entities/zombie_equipment.json"
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:zombie"
},
"minecraft:nameable": {
},
// Zombie Components
"minecraft:type_family": {
"family": [ "zombie", "undead", "monster" ]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
},
"minecraft:burns_in_daylight": {
},
"minecraft:movement.basic": {
},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_pass_doors": true,
"can_open_doors": true
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:health": {
"value": 24,
"max": 24
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0,
"breathesAir": true,
"breathesWater": true
},
"minecraft:attack": {
"damage": 8
},
"minecraft:loot": {
"table": "loot_tables/entities/zombie.json"
},
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater",
"operator": "==",
"value": true
},
"event": "minecraft:start_transforming"
},
// Zombie Behaviors
"minecraft:behavior.break_door": {
"priority": 1
},
"minecraft:behavior.melee_attack": {
"priority": 14,
"speed_multiplier": 5,
"track_target": true
},
"minecraft:behavior.stomp_turtle_egg": {
"priority": 4,
"speed_multiplier": 1,
"search_range": 24,
"search_height": 3,
"goal_radius": 1.14,
"interval": 20
},
"minecraft:behavior.move_towards_restriction": {
"priority": 5,
"speed_multiplier": 5
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 5
},
"minecraft:behavior.look_at_player": {
"priority": 15,
"look_distance": 70,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 7
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 16,
"within_radius": 270,
"reselect_targets": true,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"value": "snowgolem"
},
{
"test": "is_family",
"subject": "other",
"value": "irongolem"
},
{
"test": "is_family",
"subject": "other",
"value": "villager"
}
]
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "baby_turtle"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
}
]
},
"max_dist": 35
}
],
"must_see": false,
"must_see_forget_duration": 100000000.0
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 3800000,
"remove": {},
"add": {
"component_groups": [
"minecraft:zombie_adult",
"minecraft:can_have_equipment"
]
}
},
{
"weight": 1,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:can_have_equipment"
]
}
},
{
"weight": 1,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:zombie_jockey",
"minecraft:can_have_equipment"
]
}
}
]
},
"minecraft:as_adult": {
"add": {
"component_groups": [
"minecraft:zombie_adult"
]
}
},
"minecraft:as_baby": {
"add": {
"component_groups": [
"minecraft:zombie_baby"
]
}
},
"minecraft:start_transforming": {
"add": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
},
"remove": {
"component_groups": [ "minecraft:look_to_start_drowned_transformation" ]
}
},
"minecraft:stop_transforming": {
"add": {
"component_groups": [
"minecraft:look_to_start_drowned_transformation"
]
},
"remove": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
}
},
"minecraft:convert_to_drowned": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_baby_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
}
]
}
}
}
}
My second problem is trying to make arrows become unaffected by gravity. This what I have so far:
{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:hard_arrow": {
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": [ 1 ],
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
}
},
"hitSound": "bow.hit",
"power": 1000000.6,
"gravity": 0.05,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .1, 0 ]
}
},
"minecraft:player_arrow": {
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": 1,
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true,
"maxcriticaldamage": 8,
"mincriticaldamage": 1,
"powermultiplier": 0.00
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
}
},
"hitSound": "bow.hit",
"power": 1000000.0,
"gravity": 0.05,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .1, 0 ]
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:arrow"
},
"minecraft:collision_box": {
"width": 0.25,
"height": 0.25
},
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": [ 1 ],
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
}
},
"hitSound": "bow.hit",
"power": 1000000.6,
"gravity": 0.05,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .1, 0 ]
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"filters": {"test": "is_difficulty", "value": "hard"},
"add": {
"component_groups": [ "minecraft:hard_arrow" ]
}
},
{
"filters": {"test": "is_family", "subject": "other", "value": "player"},
"add": {
"component_groups" : [ "minecraft:player_arrow" ]
}
}
]
}
}
}
}
If you have any solutions for my problems, please let me know.
Wubbla Lubba Dub Dub!
Apparently, it keeps up destroying my posts. No idea whats going on.
I have tried you suggestions, but it did not do anything. This what I have now:
{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:look_to_start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": true
},
"event": "minecraft:start_transforming"
}
},
"minecraft:start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": false
},
"event": "minecraft:stop_transforming"
},
"minecraft:timer": {
"looping": false,
"time": 30,
"time_down_event": {
"event": "minecraft:convert_to_drowned"
}
}
},
"minecraft:convert_to_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_adult>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:convert_to_baby_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_baby>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:zombie_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 0.5
},
"minecraft:movement": {
"value": 0.35
}
},
"minecraft:zombie_adult": {
"minecraft:movement": {
"value": 0.35
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 1.1, -0.35 ],
"lock_rider_rotation": 0
}
},
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
}
},
"minecraft:zombie_jockey": {
"minecraft:behavior.find_mount": {
"priority": 0,
"within_radius": 0
}
},
"minecraft:can_have_equipment": {
"minecraft:equipment": {
"table": "loot_tables/entities/zombie_equipment.json"
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:zombie"
},
"minecraft:nameable": {
},
// Zombie Components
"minecraft:type_family": {
"family": [ "zombie", "undead", "monster" ]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
},
"minecraft:burns_in_daylight": {
},
"minecraft:movement.basic": {
"speed_multiplier": 10
},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_pass_doors": true,
"can_open_doors": true
"avoid_portals": false
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:health": {
"value": 24,
"max": 24
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0,
"breathesAir": true,
"breathesWater": true
},
"minecraft:attack": {
"damage": 8
},
"minecraft:loot": {
"table": "loot_tables/entities/zombie.json"
},
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater",
"operator": "==",
"value": true
},
"event": "minecraft:start_transforming"
},
// Zombie Behaviors
"minecraft:behavior.break_door": {
"priority": 1
},
"minecraft:behavior.melee_attack": {
"priority": 14,
"speed_multiplier": 50,
"track_target": true
},
"minecraft:behavior.stomp_turtle_egg": {
"priority": 4,
"speed_multiplier": 1,
"search_range": 24,
"search_height": 3,
"goal_radius": 1.14,
"interval": 20
},
"minecraft:behavior.move_towards_restriction": {
"priority": 5,
"speed_multiplier": 5
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 5
},
"minecraft:behavior.look_at_player": {
"priority": 15,
"look_distance": 70,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 7
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 16,
"within_radius": 2700,
"reselect_targets": true,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"value": "snowgolem"
},
{
"test": "is_family",
"subject": "other",
"value": "irongolem"
},
{
"test": "is_family",
"subject": "other",
"value": "villager"
}
]
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "baby_turtle"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
}
]
},
"max_dist": 9000
}
],
"must_see": false,
"must_see_forget_duration": 100000000.0
},
"minecraft:target_nearby_sensor": {
"inside_range": 3.0,
"outside_range": 9000.0,
"on_inside_range": {
"event": "minecraft:attack",
"target": "player"
}
}
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 3800000,
"remove": {},
"add": {
"component_groups": [
"minecraft:zombie_adult",
"minecraft:can_have_equipment"
]
}
},
{
"weight": -1,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:can_have_equipment"
]
}
},
{
"weight": -1,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:zombie_jockey",
"minecraft:can_have_equipment"
]
}
}
]
},
"minecraft:as_adult": {
"add": {
"component_groups": [
"minecraft:zombie_adult"
]
}
},
"minecraft:as_baby": {
"add": {
"component_groups": [
"minecraft:zombie_baby"
]
}
},
"minecraft:start_transforming": {
"add": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
},
"remove": {
"component_groups": [ "minecraft:look_to_start_drowned_transformation" ]
}
},
"minecraft:stop_transforming": {
"add": {
"component_groups": [
"minecraft:look_to_start_drowned_transformation"
]
},
"remove": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
}
},
"minecraft:convert_to_drowned": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_baby_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
}
]
},
"add": {
"component_groups": [
"minecraft:attack"
]
}
}
}
}
{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:hard_arrow": {
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": [ 3, 3 ],
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
"effect_name": "slow_fall_II"
"effect_duration": 1000000000
}
},
"hitSound": "bow.hit",
"power": 1000000.6,
"gravity": 0.00,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .5, 0 ]
}
},
"minecraft:player_arrow": {
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": 3,
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true,
"maxcriticaldamage": 3,
"mincriticaldamage": 3,
"powermultiplier": 0.00
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
"effect_name": "slow_fall_II"
"effect_duration": 1000000000
}
},
"hitSound": "bow.hit",
"power": 1000000.0,
"gravity": 0.00,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .5, 0 ]
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:arrow"
},
"minecraft:collision_box": {
"width": 0.25,
"height": 0.25
},
"minecraft:projectile": {
"onHit": {
"impact_damage": {
"damage": [ 3, 3 ],
"knockback": false,
"semirandomdiffdamage": false,
"destroyonhit": true
},
"stick_in_ground": {
"shake_time" : 0.00
},
"arrow_effect": {
"effect_name": "slow_fall_II"
"effect_duration": 1000000000
}
},
"hitSound": "bow.hit",
"power": 1000000.6,
"gravity": 0.00,
"uncertaintyBase": 0,
"uncertaintyMultiplier": 0,
"anchor": 0,
"shouldbounce": false,
"offset": [ 0, .5, 0 ]
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"sequence": [
{
"filters": {"test": "is_difficulty", "value": "hard"},
"add": {
"component_groups": [ "minecraft:hard_arrow" ]
}
},
{
"filters": {"test": "is_family", "subject": "other", "value": "player"},
"add": {
"component_groups" : [ "minecraft:player_arrow" ]
}
}
]
}
}
}
}
Did I do something incorrectly?
Wubbla Lubba Dub Dub!
Before we get any further into this, I noticed you're using
Vanilla Resource Pack file
Vanilla Behavior Pack files
Yes
Wubbla Lubba Dub Dub!
When I'm looking at the documentation, I noticed that "Minecraft:health" isn't even shown as being a component, which I find super weird. Especially since it is present in the entity behavior. This may suggest that it is not configurable, but maybe just additional testing to figure out if it is working. Try lowering it to 1 or 2, see if you can one shot the mob.
As for the description for "Minecraft:behavior.melee_attack", the "speed_multiplier" suggests that when the mob is attacking, it's movement speed is increased, but not necessarily it's attacking speed. Again, not really sure what the observed behavior is yet, but could be what is happening.
Minecraft:movement seems like it should be pretty straight-forward. I think you've got this right in your entity, but you may have to try various values and observe the results.
I'll see if I can modify some vanilla mobs and see what happens.
Okay. I just tested this on the Minecraft 1.7.1 client with 1.7 vanilla behaviors. On all accounts, everything was working. They were running really fast, they could do more damage (I tested Minecraft:attack) and I reduced their health down to 1, allowing me to one shot them with a quick punch. I also removed the hurt by sunlight parameter. Here's the code I used. Maybe try modifying it to your needs. Keep in mind this is for a Zombie, not a Drowned.
{
"minecraft:entity": {
"format_version": "1.2.0",
"component_groups": {
"minecraft:look_to_start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": true
},
"event": "minecraft:start_transforming"
}
},
"minecraft:start_drowned_transformation": {
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater", "subject": "self", "operator": "==", "value": false
},
"event": "minecraft:stop_transforming"
},
"minecraft:timer": {
"looping": false,
"time": 30,
"time_down_event": {
"event": "minecraft:convert_to_drowned"
}
}
},
"minecraft:convert_to_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_adult>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:convert_to_baby_drowned": {
"minecraft:transformation": {
"into": "minecraft:drowned<minecraft:as_baby>",
"transformation_sound": "convert_to_drowned",
"drop_equipment": true,
"delay": {
"value": 15
}
},
"minecraft:is_shaking": {
}
},
"minecraft:zombie_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 0.5
},
"minecraft:movement": {
"value": 0.35
}
},
"minecraft:zombie_adult": {
"minecraft:movement": {
"value": 0.75
},
"minecraft:rideable": {
"seat_count": 1,
"family_types": [
"zombie"
],
"seats": {
"position": [ 0.0, 1.1, -0.35 ],
"lock_rider_rotation": 0
}
},
"minecraft:behavior.mount_pathing": {
"priority": 2,
"speed_multiplier": 1.25,
"target_dist": 0.0,
"track_target": true
}
},
"minecraft:zombie_jockey": {
"minecraft:behavior.find_mount": {
"priority": 1,
"within_radius": 16
}
},
"minecraft:can_have_equipment": {
"minecraft:equipment": {
"table": "loot_tables/entities/zombie_equipment.json"
}
}
},
"components": {
"minecraft:identifier": {
"id": "minecraft:zombie"
},
"minecraft:nameable": {
},
// Zombie Components
"minecraft:type_family": {
"family": [ "zombie", "undead", "monster" ]
},
"minecraft:collision_box": {
"width": 0.6,
"height": 1.8
},
"minecraft:movement.basic": {
},
"minecraft:navigation.walk": {
"is_amphibious": true,
"can_pass_doors": true,
"can_open_doors": true
},
"minecraft:jump.static": {
},
"minecraft:can_climb": {
},
"minecraft:health": {
"value": 1,
"max": 1
},
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0,
"breathesAir": true,
"breathesWater": true
},
"minecraft:attack": {
"damage": 6
},
"minecraft:loot": {
"table": "loot_tables/entities/zombie.json"
},
"minecraft:environment_sensor": {
"filters": {
"test": "is_underwater",
"operator": "==",
"value": true
},
"event": "minecraft:start_transforming"
},
// Zombie Behaviors
"minecraft:behavior.break_door": {
"priority": 1
},
"minecraft:behavior.melee_attack": {
"priority": 3,
"speed_multiplier": 1,
"track_target": false
},
"minecraft:behavior.stomp_turtle_egg": {
"priority": 4,
"speed_multiplier": 1,
"search_range": 24,
"search_height": 3,
"goal_radius": 1.14,
"interval": 20
},
"minecraft:behavior.move_towards_restriction": {
"priority": 5,
"speed_multiplier": 1
},
"minecraft:behavior.random_stroll": {
"priority": 6,
"speed_multiplier": 1
},
"minecraft:behavior.look_at_player": {
"priority": 7,
"look_distance": 6,
"probability": 0.02
},
"minecraft:behavior.random_look_around": {
"priority": 7
},
"minecraft:behavior.hurt_by_target": {
"priority": 1
},
"minecraft:behavior.nearest_attackable_target": {
"priority": 2,
"within_radius": 25,
"reselect_targets": true,
"entity_types": [
{
"filters": {
"any_of": [
{
"test": "is_family",
"subject": "other",
"value": "player"
},
{
"test": "is_family",
"subject": "other",
"value": "snowgolem"
},
{
"test": "is_family",
"subject": "other",
"value": "irongolem"
},
{
"test": "is_family",
"subject": "other",
"value": "villager"
}
]
},
"max_dist": 35
},
{
"filters": {
"all_of": [
{
"test": "is_family",
"subject": "other",
"value": "baby_turtle"
},
{
"test": "in_water",
"subject": "other",
"operator": "!=",
"value": true
}
]
},
"max_dist": 35
}
],
"must_see": true,
"must_see_forget_duration": 17.0
},
"minecraft:physics": {
}
},
"events": {
"minecraft:entity_spawned": {
"randomize": [
{
"weight": 380,
"remove": {},
"add": {
"component_groups": [
"minecraft:zombie_adult",
"minecraft:can_have_equipment"
]
}
},
{
"weight": 17,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:can_have_equipment"
]
}
},
{
"weight": 3,
"remove": {
},
"add": {
"component_groups": [
"minecraft:zombie_baby",
"minecraft:zombie_jockey",
"minecraft:can_have_equipment"
]
}
}
]
},
"minecraft:as_adult": {
"add": {
"component_groups": [
"minecraft:zombie_adult"
]
}
},
"minecraft:as_baby": {
"add": {
"component_groups": [
"minecraft:zombie_baby"
]
}
},
"minecraft:start_transforming": {
"add": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
},
"remove": {
"component_groups": [ "minecraft:look_to_start_drowned_transformation" ]
}
},
"minecraft:stop_transforming": {
"add": {
"component_groups": [
"minecraft:look_to_start_drowned_transformation"
]
},
"remove": {
"component_groups": [
"minecraft:start_drowned_transformation"
]
}
},
"minecraft:convert_to_drowned": {
"sequence": [
{
"filters": {
"test": "has_component",
"operator": "!=",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
},
{
"filters": {
"test": "has_component",
"value": "minecraft:is_baby"
},
"add": {
"component_groups": [ "minecraft:convert_to_baby_drowned" ]
},
"remove": {
"component_groups": [ "minecraft:start_drowned_transformation" ]
}
}
]
}
}
}
}
For some reason it is not working for me.
Wubbla Lubba Dub Dub!