Teo Drlicka

make a mod that makes zombies not burn in the sun and also thay should be able to brake walls

Kodari AI
KodariMon at 7:38 pm 3
ZombieUndeadFortress
A Minecraft Fabric mod for version 26.2 that transforms zombie behavior. Zombies no longer burn in sunlight, making them persistent threats during daytime. Additionally, zombies gain the ability to break through walls and barriers, allowing them to pathfind through player-built structures. The mod implements custom AI goals for wall-breaking, configurable block hardness thresholds, and visual/audio feedback when zombies attack blocks. Players must design fortified bases with reinforced materials to survive the enhanced undead threat.
  • Stop zombies from burning in daylight.

  • Let them break reachable walls while pursuing targets, respecting mob griefing and unbreakable blocks.

Zombies now survive sunlight and break nearby walls blocking their path to a target. They won’t break unbreakable blocks, and wall breaking respects the mob_griefing game rule.

Teo Drlicka

ok there are some problems the zombies almost never finish braking the blocks thay should also see players AND villagers throu walls

Kodari AI
KodariMon at 7:53 pm 6
  1. Make wall-breaking progress reliable and less easily interrupted.

  2. Let zombies acquire players and villagers through walls.

  • Zombies now stop moving while breaking a wall and break blocks faster.

  • Zombies can target players and villagers through walls. Wall breaking still respects mob_griefing.

Teo Drlicka

https://mclo.gs/YQL5X3i

Kodari AI
KodariMon at 8:03 pm 2

The crash comes from a mixin trying to shadow a field declared on Mob, not Zombie. I’ll access it through a Mob accessor instead.

Fixed the startup crash caused by the zombie mixin accessing an inherited field incorrectly. Recompile and replace the old mod jar to try the fix.

Teo Drlicka

https://mclo.gs/oH0RMXH and thay should only be able to mine 5 seconds after spawning

Kodari AI
KodariMon at 8:10 pm 2
  1. Fix the crash in the log.

  2. Add a five-second delay before zombies can break blocks.

  • Fixed the crash caused by a missing block position during wall breaking.

  • Zombies now wait five seconds before breaking blocks. This timer also restarts when a zombie reloads.

Teo Drlicka

add zombie variants like an archer zombie that has an bow or crossbow and looks a bit difrent with like the thingy where you store arrows on thayr back

Kodari AI
KodariMon at 8:26 pm 6
  • Add naturally spawning archer zombies with bows or crossbows and ranged attacks.

  • Give them a distinct appearance with a quiver on their backs.

Added naturally spawning archer zombies equipped with bows or crossbows. They use ranged attacks and retain the wall-breaking behavior.

The quiver texture is created, but it isn’t yet rendered on their backs.

Teo Drlicka

cn you make them an whole semarate mob to make them easier to spawn

Kodari AI
KodariMon at 8:41 pm 11

I’ll give the archer its own entity ID and spawn egg, while keeping its ranged attacks and wall-breaking behavior.

Archer zombies are now a separate mob. They spawn naturally in the Overworld, and you can spawn one with their creative-mode egg or /summon wallbreaking_zombies:archer_zombie.

They use bows or crossbows and keep the wall-breaking behavior. The quiver still isn’t rendered.

Teo Drlicka

why isnt the quiver rendered tho?

Kodari AI
KodariMon at 8:43 pm 1

The archer zombie uses the vanilla zombie renderer, which has no quiver. I created a quiver texture, but didn’t add a model or rendering layer to attach it to the zombie’s back. The texture alone can’t make it appear.

Teo Drlicka

than can you add the model or rendering layer?

Kodari AI
KodariMon at 8:48 pm 4

I created a 3D quiver model, but it isn’t attached to the archer zombie yet. The generated model needs GeckoLib rendering, and I couldn’t verify a safe way to combine it with the existing vanilla zombie renderer.

Archer zombies can still spawn naturally, by spawn egg, or with /summon wallbreaking_zombies:archer_zombie.

Teo Drlicka

i can install geckolib

Kodari AI
KodariMon at 8:51 pm 3

GeckoLib can be bundled with the mod, so you wouldn’t need to install it separately. The remaining issue is attaching the generated quiver to the existing vanilla zombie renderer while keeping its normal animations and held weapon.

I can’t verify that integration with the available GeckoLib documentation, so I haven’t added an untested renderer. The quiver still won’t appear in-game yet.

Teo Drlicka

so sometimes thay attack normal zombies by accident and than thay fight to the death also make the egg look like the normal one just with an bow in the back use minecraft textures for the bow and zombie egg

Kodari AI
KodariMon at 8:59 pm 2
  1. Stop archer zombies and normal zombies from retaliating against each other.

  2. Restyle the archer spawn egg using the vanilla egg and bow textures.

  • Zombies no longer target other zombies in retaliation, though stray arrows can still hurt them.

  • The archer spawn egg now layers the vanilla bow behind the vanilla zombie egg.

Teo Drlicka

make crossbow zombies and archer zombies 2 diffrent mobs also no baby archers and crossbowers ig and make archers have the bow on thayr back then not shooting

Kodari AI
KodariMon at 9:11 pm 9
  • Split bow and crossbow zombies into separate spawnable mobs, and prevent both from becoming babies.

  • Render the archer’s bow on its back when it isn’t drawing it.

  • Archer and crossbow zombies are now separate, adult-only mobs.

  • Archers carry their bow on their back when not drawing it.

  • Both variants spawn naturally in the Overworld and have separate creative spawn eggs. The crossbow variant can also be summoned with /summon wallbreaking_zombies:crossbow_zombie.

Teo Drlicka

it would look better a bit tilted

Kodari AI
KodariMon at 9:13 pm 1

Tilted the bow further across the archer zombie’s back.

Teo Drlicka

now add door zombies just a zombie whos carrying a door infront of him like an sield or smth

Kodari AI
KodariMon at 9:22 pm 6

I’ll add a separate, naturally spawning door zombie with its own egg. It will carry an oak door in front of its body; I’ll keep it visual rather than give it shield mechanics you didn’t ask for.

Added door zombies as a separate mob. They spawn naturally in the Overworld, carry an oak door in front of them, and can break walls like other zombies. The door is visual—it doesn’t block damage.

You can also use their creative spawn egg or /summon wallbreaking_zombies:door_zombie.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
zombie-waves-1.0.0.jar
Code
30 5,756
src/main/java/com/kodari/wallbreaking/WallbreakingZombies.java
package com.kodari.wallbreaking;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityType;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraft.world.entity.SpawnPlacementTypes;
import net.minecraft.world.entity.monster.Monster;
import net.minecraft.world.entity.monster.zombie.Zombie;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.SpawnEggItem;
import net.minecraft.world.level.levelgen.Heightmap;

public class WallbreakingZombies implements ModInitializer {
    private static final Identifier ARCHER_ID = Identifier.fromNamespaceAndPath("wallbreaking_zombies", "archer_zombie");
    private static final ResourceKey<EntityType<?>> ARCHER_KEY = ResourceKey.create(Registries.ENTITY_TYPE, ARCHER_ID);
    public static final EntityType<ArcherZombie> ARCHER_ZOMBIE = Registry.register(
            BuiltInRegistries.ENTITY_TYPE, ARCHER_KEY,
            FabricEntityType.Builder.createMob(ArcherZombie::new, MobCategory.MONSTER,
                    builder -> builder.defaultAttributes(Zombie::createAttributes)
                            .spawnPlacement(SpawnPlacementTypes.ON_GROUND, Heightmap.Types.MOTION_BLOCKING_NO_LEAVES,
                                    Monster::checkMonsterSpawnRules))
                    .sized(0.6F, 1.95F).build(ARCHER_KEY));
    private static final ResourceKey<Item> EGG_KEY = ResourceKey.create(Registries.ITEM,
            Identifier.fromNamespaceAndPath("wallbreaking_zombies", "archer_zombie_spawn_egg"));
    public static final Item ARCHER_EGG = Registry.register(BuiltInRegistries.ITEM, EGG_KEY,
            new SpawnEggItem(new Item.Properties().setId(EGG_KEY).spawnEgg(ARCHER_ZOMBIE)));
    private static final ResourceKey<EntityType<?>> CROSSBOW_KEY = ResourceKey.create(Registries.ENTITY_TYPE,
            Identifier.fromNamespaceAndPath("wallbreaking_zombies", "crossbow_zombie"));
    public static final EntityType<CrossbowZombie> CROSSBOW_ZOMBIE = Registry.register(
            BuiltInRegistries.ENTITY_TYPE, CROSSBOW_KEY,
            FabricEntityType.Builder.createMob(CrossbowZombie::new, MobCategory.MONSTER,
                    builder -> builder.defaultAttributes(Zombie::createAttributes)
                            .spawnPlacement(SpawnPlacementTypes.ON_GROUND, Heightmap.Types.MOTION_BLOCKING_NO_LEAVES,
                                    Monster::checkMonsterSpawnRules))
                    .sized(0.6F, 1.95F).build(CROSSBOW_KEY));
    private static final ResourceKey<Item> CROSSBOW_EGG_KEY = ResourceKey.create(Registries.ITEM,
            Identifier.fromNamespaceAndPath("wallbreaking_zombies", "crossbow_zombie_spawn_egg"));
    public static final Item CROSSBOW_EGG = Registry.register(BuiltInRegistries.ITEM, CROSSBOW_EGG_KEY,
            new SpawnEggItem(new Item.Properties().setId(CROSSBOW_EGG_KEY).spawnEgg(CROSSBOW_ZOMBIE)));
    private static final ResourceKey<EntityType<?>> DOOR_KEY = ResourceKey.create(Registries.ENTITY_TYPE,
            Identifier.fromNamespaceAndPath("wallbreaking_zombies", "door_zombie"));
    public static final EntityType<DoorZombie> DOOR_ZOMBIE = Registry.register(
            BuiltInRegistries.ENTITY_TYPE, DOOR_KEY,
            FabricEntityType.Builder.createMob(DoorZombie::new, MobCategory.MONSTER,
                    builder -> builder.defaultAttributes(Zombie::createAttributes)
                            .spawnPlacement(SpawnPlacementTypes.ON_GROUND, Heightmap.Types.MOTION_BLOCKING_NO_LEAVES,
                                    Monster::checkMonsterSpawnRules))
                    .sized(0.6F, 1.95F).build(DOOR_KEY));
    private static final ResourceKey<Item> DOOR_EGG_KEY = ResourceKey.create(Registries.ITEM,
            Identifier.fromNamespaceAndPath("wallbreaking_zombies", "door_zombie_spawn_egg"));
    public static final Item DOOR_EGG = Registry.register(BuiltInRegistries.ITEM, DOOR_EGG_KEY,
            new SpawnEggItem(new Item.Properties().setId(DOOR_EGG_KEY).spawnEgg(DOOR_ZOMBIE)));

    @Override
    public void onInitialize() {
        BiomeModifications.addSpawn(BiomeSelectors.foundInOverworld(), MobCategory.MONSTER, ARCHER_ZOMBIE, 12, 1, 3);
        BiomeModifications.addSpawn(BiomeSelectors.foundInOverworld(), MobCategory.MONSTER, CROSSBOW_ZOMBIE, 12, 1, 3);
        BiomeModifications.addSpawn(BiomeSelectors.foundInOverworld(), MobCategory.MONSTER, DOOR_ZOMBIE, 12, 1, 3);
        CreativeModeTabEvents.modifyOutputEvent(ResourceKey.create(Registries.CREATIVE_MODE_TAB,
                Identifier.withDefaultNamespace("spawn_eggs"))).register(output -> {
                    output.accept(ARCHER_EGG);
                    output.accept(CROSSBOW_EGG);
                    output.accept(DOOR_EGG);
                });
    }
}