Build a Fabric mod for Minecraft 1.21.11 in this new project. Add a custom dimension below the End void with a destroyed Deep Dark aesthetic: dark, ruined ancient-city-like structures/terrain, sculk-themed atmosphere, and a suitable dimension identity (for example, Ruined Deep). Implement a reliable transition so when the player falls through the End void they are not killed by void damage; instead, detect the fall and teleport them directly into the custom dimension at a safe spawn location. Ensure intended return/exit behavior if practical, without breaking vanilla End progression. Register all dimension/worldgen resources and mod initialization needed for a usable dimension; use the project's existing Fabric 1.21.11 conventions. Avoid overwriting unrelated files. Feature is done when the mod code/resources are implemented and can compile.

Kodari AI
KodariOct 28 at 12:33 am 2
RuinedDeepDimension
A Fabric mod for Minecraft 1.21.11 that introduces a new custom dimension called "Ruined Deep" located below the End void. This dimension features a destroyed Deep Dark aesthetic with ruined ancient-city-like structures, sculk-themed terrain, and a dark atmospheric environment. The mod implements a reliable transition system that detects when a player falls through the End void and teleports them safely into the Ruined Deep dimension at a designated spawn location, preventing void death. It also provides a return mechanism to the End, preserving vanilla progression. The mod registers all necessary dimension, worldgen, and initialization resources for a fully functional custom dimension.
  1. Define a Ruined Deep dimension using Deep Dark biome ambience and vanilla ancient-city-capable terrain generation.

  2. Add a server-side End-void fall transition that teleports players to a safe generated surface before void damage.

  3. Add a practical return route from Ruined Deep while leaving vanilla End progression intact.

Created the Fabric 1.21.11 project with the Ruined Deep dimension, End-style dark sky, and Deep Dark biome using vanilla overworld terrain generation.

Falling below Y -32 in the End sends players to the dimension’s surface spawn; falling below Y -60 there returns them safely to the End’s central island. This leaves the vanilla End exit portal and progression unchanged.

Wemmbu

this was the error i got lets fix this

📎 1 file 1,698 chars
📄
pasted-code-1793149731202.txt
txt 19 lines
▶
Encountered an unexpected exception
[21:05:35 ERROR] net.minecraft.class_148: Exception ticking world
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1149)
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:1016)
[21:05:35 ERROR] 	at knot//net.minecraft.class_3176.method_3748(class_3176.java:318)
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_76677(MinecraftServer.java:1049)
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:771)
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:301)
[21:05:35 ERROR] 	at java.base/java.lang.Thread.run(Unknown Source)
[21:05:35 ERROR] Caused by: java.util.ConcurrentModificationException
[21:05:35 ERROR] 	at java.base/java.util.ArrayList$Itr.checkForComodification(Unknown Source)
[21:05:35 ERROR] 	at java.base/java.util.ArrayList$Itr.next(Unknown Source)
[21:05:35 ERROR] 	at knot//com.kodari.ruineddeep.RuinedDeepMod.handleVoidFall(RuinedDeepMod.java:49)
[21:05:35 ERROR] 	at knot//net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents.lambda$static$6(ServerTickEvents.java:79)
[21:05:35 ERROR] 	at knot//net.minecraft.class_3218.handler$zff000$fabric-lifecycle-events-v1$endWorldTick(class_3218.java:3005)
[21:05:35 ERROR] 	at knot//net.minecraft.class_3218.method_18765(class_3218.java:457)
[21:05:35 ERROR] 	at knot//net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1145)
[21:05:35 ERROR] 	... 6 more
[21:05:35 ERROR] This crash report has been saved to: /data/crash-reports/crash-2026-10-28_01.05.35-server.txt
Kodari AI
KodariOct 28 at 1:12 am 1
  1. Snapshot the world’s player list before checking void thresholds, so cross-dimension teleports cannot invalidate the active iteration.

Fixed the crash in RuinedDeepMod.java: the tick handler now iterates over a snapshot of the player list. Teleporting a player between dimensions removes them from the source world’s list, which caused the ConcurrentModificationException during iteration.

Wemmbu

When i drop done it just tp me to the senter end island again

Kodari AI
KodariOct 28 at 1:46 am 1
  1. Make the Ruined Deep arrival point a guaranteed safe landing instead of relying only on generated terrain height.

  2. Preserve the intentional void-return route to the End, but prevent an immediate fall-through back to the End.

Added a 5×5 deepslate-tile landing platform in Ruined Deep and teleport End fallers onto it, rather than relying on terrain height that could leave them falling straight back into the void. Falling through Ruined Deep’s void still returns players to the End.

Wemmbu

alright replace every Grass block there to Mycelium and make it where you skip the loading terrain screen and change the trees to something looking dead

Kodari AI
KodariOct 28 at 2:48 pm 4
  1. Change Ruined Deep’s generated grass to mycelium.

  2. Make dimension travel avoid the terrain-loading screen if the existing teleport path permits it.

  3. Replace its trees with dead-looking forms.

  1. Ruined Deep now converts surface grass blocks to mycelium as chunks load.

  2. Clients skip the “Loading terrain” screen when arriving in Ruined Deep. Terrain still loads normally; it may briefly appear incomplete while loading.

  3. Added sparse, leafless stripped-dark-oak snags on suitable mycelium surfaces, away from the arrival platform.

Wemmbu

I kept falling for ever and never got teleported

Kodari AI
KodariOct 28 at 3:53 pm 1

Switch the fall check to the server-wide end-of-tick event and inspect each connected player’s current dimension, so dimension transfers cannot cause the source-world tick handler to miss them.

Updated the fall detector to run once at the end of each server tick and check every online player’s current dimension. This avoids relying on the source world’s tick callback to catch a player during a dimension transfer. The End-to-Ruined Deep transition and the Ruined Deep return route remain unchanged.

Wemmbu

alright just get the loading terrain screen back

Kodari AI
KodariOct 28 at 4:01 pm 1

Restored the normal “Loading terrain” screen by removing the client mixin that suppressed it. The dimension teleport behavior is unchanged.

Wemmbu

i still dont go to the dimension

Kodari AI
KodariOct 28 at 4:22 pm 2
  1. Move the fall check to the start of each End/Ruined Deep world tick, before player entity ticking can apply void damage.

  2. Check only that world’s players and keep the existing safe landing/return behavior.

Moved the End-fall check to the start of the world tick, before player ticking and void damage, and limited it to players in that world. Rebuild the mod and restart the server before testing the updated transition.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 254
src/main/java/com/kodari/ruineddeep/RuinedDeepMod.java
package com.kodari.ruineddeep;

import java.util.Set;
import java.util.List;
import java.util.Random;

import net.minecraft.block.Blocks;
import net.minecraft.block.BlockState;
import net.minecraft.block.PillarBlock;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerChunkEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.Identifier;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.Heightmap;
import net.minecraft.world.World;
import net.minecraft.world.chunk.WorldChunk;

public final class RuinedDeepMod implements ModInitializer {
    private static final RegistryKey<World> RUINED_DEEP = RegistryKey.of(
            RegistryKeys.WORLD,
            Identifier.of("ruineddeep", "ruined_deep")
    );

    @Override
    public void onInitialize() {
        ServerTickEvents.START_WORLD_TICK.register(RuinedDeepMod::handleVoidFall);
        ServerChunkEvents.CHUNK_LOAD.register(RuinedDeepMod::convertSurfaceGrass);
    }

    private static void convertSurfaceGrass(ServerWorld world, WorldChunk chunk) {
        if (!RUINED_DEEP.equals(world.getRegistryKey())) {
            return;
        }

        int startX = chunk.getPos().getStartX();
        int startZ = chunk.getPos().getStartZ();
        for (int x = startX; x < startX + 16; x++) {
            for (int z = startZ; z < startZ + 16; z++) {
                int surfaceY = world.getTopY(Heightmap.Type.WORLD_SURFACE, x, z) - 1;
                BlockPos surfacePos = new BlockPos(x, surfaceY, z);
                if (world.getBlockState(surfacePos).isOf(Blocks.GRASS_BLOCK)) {
                    world.setBlockState(surfacePos, Blocks.MYCELIUM.getDefaultState());
                }
            }
        }

        addDeadTree(world, startX, startZ);
    }

    private static void addDeadTree(ServerWorld world, int startX, int startZ) {
        Random random = new Random((long) startX * 341873128712L + (long) startZ * 132897987541L);
        if (random.nextBoolean()) {
            return;
        }

        int x = startX + 4 + random.nextInt(8);
        int z = startZ + 4 + random.nextInt(8);
        if (Math.abs(x) < 10 && Math.abs(z) < 10) {
            return;
        }

        int surfaceY = world.getTopY(Heightmap.Type.WORLD_SURFACE, x, z);
        if (!world.getBlockState(new BlockPos(x, surfaceY - 1, z)).isOf(Blocks.MYCELIUM)) {
            return;
        }

        int height = 5 + random.nextInt(3);
        for (int offset = 0; offset < height + 2; offset++) {
            if (!world.getBlockState(new BlockPos(x, surfaceY + offset, z)).isOf(Blocks.AIR)) {
                return;
            }
        }

        BlockState verticalLog = Blocks.STRIPPED_DARK_OAK_LOG.getDefaultState().with(PillarBlock.AXIS, Direction.Axis.Y);
        BlockState xLog = verticalLog.with(PillarBlock.AXIS, Direction.Axis.X);
        BlockState zLog = verticalLog.with(PillarBlock.AXIS, Direction.Axis.Z);
        for (int offset = 0; offset < height; offset++) {
            world.setBlockState(new BlockPos(x, surfaceY + offset, z), verticalLog);
        }

        int branchY = surfaceY + height - 3;
        int xDirection = random.nextBoolean() ? 1 : -1;
        int zDirection = random.nextBoolean() ? 1 : -1;
        placeDeadLog(world, new BlockPos(x + xDirection, branchY, z), xLog);
        placeDeadLog(world, new BlockPos(x + xDirection * 2, branchY + 1, z), verticalLog);
        placeDeadLog(world, new BlockPos(x, branchY + 1, z + zDirection), zLog);
        placeDeadLog(world, new BlockPos(x, branchY + 2, z + zDirection * 2), verticalLog);
    }

    private static void placeDeadLog(ServerWorld world, BlockPos pos, BlockState state) {
        if (world.getBlockState(pos).isOf(Blocks.AIR)) {
            world.setBlockState(pos, state);
        }
    }

    private static void handleVoidFall(ServerWorld world) {
        boolean fallingFromEnd = World.END.equals(world.getRegistryKey());
        boolean fallingFromRuinedDeep = RUINED_DEEP.equals(world.getRegistryKey());
        if (!fallingFromEnd && !fallingFromRuinedDeep) {
            return;
        }

        MinecraftServer server = world.getServer();
        ServerWorld destination = server.getWorld(fallingFromEnd ? RUINED_DEEP : World.END);
        if (destination == null) {
            return;
        }

        for (ServerPlayerEntity player : List.copyOf(world.getPlayers())) {
            double fallThreshold = fallingFromEnd ? -32.0 : -60.0;
            if (player.getY() > fallThreshold) {
                continue;
            }

            int x = 0;
            int z = 0;
            int safeY = destination.getTopY(Heightmap.Type.WORLD_SURFACE, x, z) + 1;
            if (fallingFromEnd) {
                int platformY = Math.max(safeY - 1, 64);
                for (int platformX = -2; platformX <= 2; platformX++) {
                    for (int platformZ = -2; platformZ <= 2; platformZ++) {
                        destination.setBlockState(
                                new BlockPos(platformX, platformY, platformZ),
                                Blocks.DEEPSLATE_TILES.getDefaultState()
                        );
                    }
                }
                safeY = platformY + 1;
            }

            player.teleport(
                    destination,
                    x + 0.5,
                    safeY,
                    z + 0.5,
                    Set.of(),
                    player.getYaw(),
                    player.getPitch(),
                    true
            );
        }
    }
}