guilherme de araujo ferreira

Create a Minecraft Java Fabric 26.3 mod called The Shard.

Add a completely new custom dimension called The Shard. It should be an alien, mysterious dimension with unique terrain generation.

The sky should have a dark teal and purple nebula atmosphere, cyan glowing effects, and a pale green-white horizon. The dimension should feel surreal, peaceful, ancient, and mysterious.

Generate unusual terrain with floating amethyst crystal formations, strange stone landscapes, and glowing cyan vegetation.

Make the dimension accessible through a simple testing method so I can enter it easily while developing.

Keep the mod compatible with Minecraft Java Fabric 26.3. Generate the complete mod, build it, and provide the finished JAR file.

Kodari AI
KodariOct 24 at 3:15 am 4
ShardDimensionMod
Creates an alien dimension called The Shard with dark teal and purple nebula skies, cyan glowing effects, and pale green-white horizons. Generates surreal terrain featuring floating amethyst crystal formations, strange stone landscapes, and glowing cyan vegetation. Includes a simple testing method for easy dimension access during development. Built for Minecraft Java Fabric 26.3 with complete custom dimension implementation, unique biome generation, custom block types, and atmospheric sky rendering for an ancient, mysterious, peaceful experience.
  1. Set up the Fabric 26.3 project and register The Shard’s dimension content.

  2. Add alien terrain, cyan flora, and a peaceful biome with custom atmosphere.

  3. Add an easy development entry method and package the complete source for Kodari’s build flow.

Created The Shard for Fabric 26.3. It uses floating-island terrain, elevated amethyst geodes, glow lichen, and a dark teal sky with violet lighting and pale green fog.

Use /shard to enter and /shard return to return to the Overworld. No new items or recipes are required.

To generate and download the JAR, click Compile in the top bar (on phone: ⋮ → Compile Project), click Compile in the window, then click Download when the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
10 281
src/main/java/com/kodari/theshard/TheShard.java
package com.kodari.theshard;

import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.commands.Commands;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.level.Level;

import java.util.Set;

public class TheShard implements ModInitializer {
	public static final String MOD_ID = "theshard";
	private static final ResourceKey<Level> SHARD = ResourceKey.create(
			Registries.DIMENSION,
			Identifier.fromNamespaceAndPath(MOD_ID, "shard")
	);

	@Override
	public void onInitialize() {
		CommandRegistrationCallback.EVENT.register((dispatcher, buildContext, selection) ->
			dispatcher.register(Commands.literal("shard")
					.executes(context -> teleport(context.getSource(), SHARD, "Entered The Shard."))
					.then(Commands.literal("return")
							.executes(context -> teleport(context.getSource(), Level.OVERWORLD, "Returned to the Overworld."))))
		);
	}

	private static int teleport(CommandSourceStack source, ResourceKey<Level> destinationKey, String message) throws CommandSyntaxException {
		ServerPlayer player = source.getPlayerOrException();
		ServerLevel destination = source.getServer().getLevel(destinationKey);
		if (destination == null) {
			source.sendFailure(Component.literal("The destination dimension is unavailable."));
			return 0;
		}

		player.teleportTo(destination, 0.5, 100.0, 0.5, Set.of(), 0.0F, 0.0F, true);
		source.sendSuccess(() -> Component.literal(message), false);
		return 1;
	}
}