Does anyone know why spawning a zombie using minecraft:spawn_entity makes the zombies move super fast and is there a way to fix it?
I recently downloaded the Alien Invasion world from Minecon. I've enjoyed playing it with my sister, but I found the game to be way too easy. I wanted to make it where hordes of aliens (zombie) populated the map, so I made an addon that modified the Zombie behavior.
I copied the Zombie behavior file from the Alien Invasion behavior pack and added this code:
This makes the aliens/zombies multiply, and it works like a charm. However, spawned zombies all move super fast (pretty much zombie baby speed). When you have 4 of these spawned at the same time, it makes the game impossible. I don't know why this is happening. My first thought was that the code is treating them as a baby zombie (even though they are full height when spawned). So, I added a baby zombie code section to set the speed to what the alien is set to.
"minecraft:zombie_baby": {
"minecraft:zombie_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 1
},
"minecraft:movement": {
"value": 0.33
}
},
This doesn't fix anything. The full code is below. I've even tried using the normal zombie file, and it does the same thing. Could this just be a bug? Is there any work around?
Does anyone know why spawning a zombie using minecraft:spawn_entity makes the zombies move super fast and is there a way to fix it?
I recently downloaded the Alien Invasion world from Minecon. I've enjoyed playing it with my sister, but I found the game to be way too easy. I wanted to make it where hordes of aliens (zombie) populated the map, so I made an addon that modified the Zombie behavior.
I copied the Zombie behavior file from the Alien Invasion behavior pack and added this code:
"minecraft:spawn_entity": {
"min_wait_time": 15,
"max_wait_time": 180,
"spawn_entity": "zombie"
}
This makes the aliens/zombies multiply, and it works like a charm. However, spawned zombies all move super fast (pretty much zombie baby speed). When you have 4 of these spawned at the same time, it makes the game impossible. I don't know why this is happening. My first thought was that the code is treating them as a baby zombie (even though they are full height when spawned). So, I added a baby zombie code section to set the speed to what the alien is set to.
"minecraft:zombie_baby": {
"minecraft:zombie_baby": {
"minecraft:is_baby": {},
"minecraft:scale": {
"value": 1
},
"minecraft:movement": {
"value": 0.33
}
},
This doesn't fix anything. The full code is below. I've even tried using the normal zombie file, and it does the same thing. Could this just be a bug? Is there any work around?
{{ "minecraft:entity": { "format_version": 0.1,
"component_groups": { "minecraft:zombie_baby": { "minecraft:is_baby": {}, "minecraft:scale": { "value": 1 }, "minecraft:movement": { "value": 0.33 } },
"minecraft:zombie_adult": { "minecraft:movement": { "value": 0.33, "max": 0.33 }, "minecraft:loot": { "table": "loot.tables.entities.zombie" }, "minecraft:spawn_entity": { "min_wait_time": 15, "max_wait_time": 180, "spawn_entity": "zombie" } } },
"components": { "minecraft:identifier": { "id": "minecraft:zombie" }, "minecraft:nameable": { }, "minecraft:type_family": { "family": [ "zombie", "undead", "monster" ] }, "minecraft:collision_box": { "width": 0.6, "height": 1.8 }, "minecraft:equipment": { "table": "loot.tables.entities.zombie.equipment" },
"minecraft:health": { "value": 20, "max": 20 }, "minecraft:attack": { "damage": 3 }, "minecraft:fall_damage":{ "value":0 }, "minecraft:behavior.float": { "priority": 0 }, "minecraft:behavior.break_door": { "priority": 1 }, "minecraft:behavior.hurt_by_target": { "priority": 3 }, "minecraft:behavior.melee_attack": { "priority": 3, "speed_multiplier": 1, "track_target": false }, "minecraft:behavior.move_towards_restriction": { "priority": 4, "speed_multiplier": 1 }, "minecraft:behavior.nearest_attackable_target": { "priority": 5, "within_radius": 25, "entity_types": [ { "filters": {"other_with_families": [ "player", "skeleton", "villager" ]}, "max_dist": 35 } ], "must_see": false }, "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:rideable": { "seat_count": 1, "family_types": [ "zombie" ] } },
"events": { "minecraft:entity_spawned": { "randomize": [ { "weight": 9500, "remove": { }, "add": { "component_groups": [ "minecraft:zombie_adult" ] } } ] } } }}
[Update]
Skeletons do not have the same problem when they are spawned. They move at the same speed.
[Update]
Zombie Villagers have the same problem as zombies. They are super fast too.