๐
pasted-code-1791468839560.txt
txt
26 lines
โถ
Create a Minecraft mod called "Titan Peaks" for Fabric (Minecraft 1.21.x, Java 21). Provide the full project structure, all code, and the JSON data files.
1. Large mountains
Add a new biome group of massive mountains that reach build height (Y 250 to 320+), with a base that blends smoothly into existing biomes.
Use density functions and noise settings (a custom noise_settings JSON) for tall peaks, steep cliffs, ridges, and valleys. Avoid flat plateaus and floating terrain.
Add 3 biome variants: Granite Highlands, Snow-Capped Spires, and Volcanic Crags.
Give each variant its own surface rules (stone, snow and ice at altitude, gravel slopes), vegetation, and sky and fog colors.
Include mountain features: waterfalls, alpine lakes, rare ore veins at high altitude, and mob spawns such as goats.
Make the rarity and scale configurable.
2. Custom caves
Add three new cave types, generated with a custom carver or feature:
Crystal Caverns: large open chambers with glowing crystal clusters.
Deep Tunnel Networks: long winding tunnels with underground rivers.
Mountain Hollows: huge caves inside mountains with entrances on the cliff faces.
Make sure caves connect to the surface and to vanilla caves without breaking the terrain.
Add custom blocks, such as glowing crystals, a new stone type, and cave moss.
Add cave-only mobs or ambient sounds, and a distinct cave biome with its own lighting and particles.
3. Technical requirements
Use data-driven worldgen (JSON for biomes, noise settings, placed features, carvers) where possible, and Java for registration.
Include fabric.mod.json, the registry classes, and a datagen setup.
Keep chunk generation performant, with no lag spikes.
Add a config file for mountain height, cave frequency, and a toggle for each feature.
Make it compatible with vanilla world types, and note any known conflicts with other worldgen mods.
4. Output format
Give the folder tree first.
Then give each file in a separate code block with its path.
Finish with build steps (./gradlew build), how to test it in a new world, and the /locate biome commands.
Bootstrap the Fabric 26.3 mod and register the custom cave blocks.
Add mountain/cave worldgen data and a Titan Peaks world preset with three biomes.
Add configurable generation settings and document installation, testing, and compatibility.
Bootstrap and custom block registration are in place.
Next Iโm wiring the mountain/cave content as generated world data and a selectable world preset.
Then Iโll connect the generation controls and survival acquisition paths.
Add runtime generation controls and make the options affect actual biome features/carvers where Fabric exposes hooks.
Add survival recipes/loot acquisition and finish the player-facing setup notes; Iโll call out any control that cannot be changed safely at runtime.
titan-peaks/
โโโ build.gradle
โโโ gradle.properties
โโโ settings.gradle
โโโ src/main/
โโโ java/com/titanpeaks/
โ โโโ TitanPeaks.java
โ โโโ ModBlocks.java
โ โโโ ModWorldgen.java
โ โโโ TitanPeaksConfig.java
โ โโโ datagen/TitanPeaksDataGenerator.java
โโโ resources/
โโโ fabric.mod.json
โโโ titanpeaks.properties
โโโ assets/titanpeaks/ # textures, block models, item definitions, names
โโโ data/titanpeaks/
โ โโโ dimension_type/
โ โโโ loot_table/blocks/
โ โโโ recipe/
โ โโโ worldgen/ # biomes, carvers, density functions, features,
โ # surface rules, noise settings, world preset
โโโ data/minecraft/tags/worldgen/world_preset/normal.json
Implemented Titan Peaks as a Fabric 26.3 / Java 25 project, following this projectโs target version rather than the attached briefโs 1.21.x / Java 21 target. It adds the Titan Peaks world preset with extended-height mountain terrain, three mountain biomes, a cave biome, cave carvers, ore veins, alpine lakes and water springs, goat spawns, and cave ambience. Vanillaโs normal preset remains available; the custom preset also includes vanilla plains lowlands and vanilla Nether/End dimensions.
The first launch creates config/titanpeaks.properties. Its cave-frequency setting selects off, low, normal, or high custom carvers; the feature toggles control the corresponding worldgen additions. Set mountain_height in gradle.properties and compile again to change the baked terrain height. These settings affect newly generated chunks; use a new world to test them.
Titan Stone, Glow Crystal, and Cave Moss have generated textures, recipes, and block loot tables. They can be found in Titan Peaks world generation or crafted: Titan Stone from granite and stone; Glow Crystal from amethyst shards and glowstone dust; Cave Moss from moss and glow lichen. Glow Crystal emits light. A Fabric datagen entrypoint generates the English block names.
Build and test
On desktop, click Compile in the top bar. On phone, tap โฎ โ Compile Project.
Click Compile, then download the jar when the build succeeds.
Create a new world and select the Titan Peaks preset. Use
/locate biometo find:/locate biome titanpeaks:granite_highlands/locate biome titanpeaks:snow_capped_spires/locate biome titanpeaks:volcanic_crags/locate biome titanpeaks:crystal_caverns
Worldgen mods that replace or heavily modify noise settings or world presets may conflict when used with the Titan Peaks preset; vanilla worlds remain separate and unchanged.
package com.titanpeaks;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.creativetab.v1.CreativeModeTabEvents;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.Identifier;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.item.CreativeModeTab;
public final class TitanPeaks implements ModInitializer {
public static final String MOD_ID = "titanpeaks";
@Override
public void onInitialize() {
ModBlocks.initialize();
ModWorldgen.initialize();
ResourceKey<CreativeModeTab> naturalBlocks = ResourceKey.create(
Registries.CREATIVE_MODE_TAB,
Identifier.fromNamespaceAndPath("minecraft", "natural_blocks")
);
CreativeModeTabEvents.modifyOutputEvent(naturalBlocks).register(output -> {
output.prepend(ModBlocks.TITAN_STONE);
output.prepend(ModBlocks.GLOW_CRYSTAL);
output.prepend(ModBlocks.CAVE_MOSS);
});
}
}