Timo Chu

Create a Fabric 1.21.5 mod called "One Chunk Dimension Challenge" with the following features:

  1. CHUNK BOUNDARIES & WORLD:
  • The challenge centers on a single fixed 16x16 chunk at coordinates X: 0..15 and Z: 0..15 across all dimensions.
  • Players can freely build outside this chunk (the void area), and blocks placed outside X: 0..15, Z: 0..15 must never be cleared or reset.
  1. VOID TELEPORTATION:
  • Remove bottom bedrock generation in all dimensions for the central chunk.
  • If a player drops below Y = -64 in the Overworld, teleport them to X: 8, Y: 70, Z: 8 in the Nether.
  • If a player drops below Y = -64 in the Nether, teleport them to X: 8, Y: 70, Z: 8 in The End.
  1. TIMER & BOSSBAR:
  • Create a visible Bossbar titled "Next Chunk Reset:" that continuously counts down from 15 minutes (18,000 ticks).
  • Make the bossbar visible to all online players and update its visual progress bar dynamically.
  1. RANDOM CHUNK RESET (EVERY 15 MIN):
  • When the 15-minute timer hits 0, trigger a chunk reset ONLY for the central chunk (X: 0..15, Z: 0..15) from Y: -64 to Y: 319.
  • The new chunk spawned must be a randomly generated valid terrain chunk (must contain solid land/blocks to stand on, never pure void or pure liquid).
  • If the randomly generated chunk contains a structure, preserve loot chests within that structure.
  • Play an Ender Dragon growl sound and display a screen title "CHUNK RESET!" when the timer hits 0, then reset the 15-minute timer.
Kodari AI
KodariSep 21 at 12:58 pm 3
OneChunkDimensionChallenge
A Fabric 1.21.5 mod implementing a single-chunk dimension challenge. Players survive within a fixed 16x16 chunk across Overworld, Nether, and End dimensions. The mod removes bottom bedrock in the central chunk, teleports players falling below Y=-64 between dimensions in a cyclic sequence, and displays a 15-minute countdown bossbar visible to all players. When the timer expires, the central chunk is randomly regenerated with valid terrain containing solid land, preserving structure loot chests, accompanied by an Ender Dragon growl and screen title announcement. Building outside the chunk is never cleared.
  1. Create the Fabric/Loom project metadata for Minecraft 1.21.5.

  2. Add the server lifecycle and tick controller for the bossbar, timer, teleportation, and reset notifications.

  3. Add central-chunk boundary handling and deterministic random solid-terrain regeneration that preserves chest blocks.

  4. Register the mod entrypoint and Fabric API event hooks.

Created the Fabric 1.21.5 mod project One Chunk Dimension Challenge with:

  • Fabric Loom build configuration and mod metadata.

  • Central chunk boundary handling at chunk (0, 0).

  • Bottom bedrock removal in the central chunk across dimensions.

  • Overworld → Nether → End void teleportation.

  • 15-minute global bossbar timer.

  • Central-chunk-only timed resets.

  • Random solid terrain generation without liquid-only or void chunks.

  • Chest block preservation during resets.

  • Ender Dragon growl and "CHUNK RESET!" title notifications.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
LICENSE
settings.gradle
Code
9 450
src/main/java/com/kodari/onechunk/OneChunkDimensionChallenge.java
package com.kodari.onechunk;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerChunkEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;

public final class OneChunkDimensionChallenge implements ModInitializer {
    public static final String MOD_ID = "one_chunk_dimension_challenge";

    private ChallengeManager challengeManager;

    @Override
    public void onInitialize() {
        ServerChunkEvents.CHUNK_LOAD.register(ChunkBoundary::removeBottomBedrock);

        ServerLifecycleEvents.SERVER_STARTED.register(server -> {
            challengeManager = new ChallengeManager(server);
            challengeManager.start();
        });

        ServerLifecycleEvents.SERVER_STOPPING.register(server -> {
            if (challengeManager != null) {
                challengeManager.stop();
                challengeManager = null;
            }
        });

        ServerTickEvents.END_SERVER_TICK.register(server -> {
            if (challengeManager != null) {
                challengeManager.tick();
            }
        });
    }
}