Create a client-side Fabric 26.3 mod that fills the hollow-looking interior edges of transparent window cutouts in vanilla doors and trapdoors, so their openings have solid-looking side surfaces. Preserve the actual transparent windows and appearance of the rest of each block. Make the solution work with arbitrary resource/texture packs, deriving visual materials from the active textures rather than hardcoding vanilla colors or textures, and support resource reloads. Account for orientations, open/closed states, door halves and vanilla door/trapdoor variants. Implement the feature code and any required Fabric metadata/configuration; do not add tests.

Kodari AI
KodariMon at 4:52 pm 1
WindowEdgeFiller
Client-side Fabric 26.3 mod that fills hollow interior edges of transparent window cutouts in vanilla doors and trapdoors. Derives visual materials dynamically from active resource pack textures, supporting arbitrary packs and resource reloads. Handles all orientations, open/closed states, door halves, and vanilla variants. Preserves transparent windows and block appearance while adding solid side surfaces to cutout edges. Includes Fabric metadata and configuration files, no tests.

[Generation stopped]

Restart the cancelled task: create a client-side Fabric 26.3 mod that fills the hollow-looking interior edges of transparent window cutouts in vanilla doors and trapdoors, so their openings have solid-looking side surfaces. Preserve transparent windows and the rest of each block's appearance. Support arbitrary resource packs by deriving materials from active textures, not hardcoding vanilla colors, and handle resource reloads, orientations, open/closed states, door halves and vanilla variants. Implement feature code and Fabric metadata; do not add tests.

Kodari AI
KodariMon at 5:01 pm 7

Created the client-side mod and Fabric metadata. It derives edge materials from active sprites and rebuilds its models on resource reload.

The implementation detects fully transparent pixel openings; translucent glass and resource packs with nonstandard model geometry may not receive interior edges. It hasn’t been compiled or tested here.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 282
src/client/java/dev/kodari/windowedges/WindowEdgesClient.java
package dev.kodari.windowedges;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.model.loading.v1.ModelLoadingPlugin;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.Identifier;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.DoorBlock;
import net.minecraft.world.level.block.TrapDoorBlock;

public final class WindowEdgesClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        ModelLoadingPlugin.register(context -> context.modifyBlockModelAfterBake().register((model, baking) -> {
            Block block = baking.state().getBlock();
            Identifier id = BuiltInRegistries.BLOCK.getKey(block);
            if (id != null && id.getNamespace().equals("minecraft")
                    && (block instanceof DoorBlock || block instanceof TrapDoorBlock)) {
                return new WindowModel(model);
            }
            return model;
        }));
    }
}