Back to mods
WorldGen Indicators project artwork

CurseForge · Minecraft mod

WorldGen Indicators

Add worldgen depending of another worldgen, like ore samples (Using craftweaker)

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which WorldGen Indicators release should I use?

Updated 7 years ago
beta file WorldGenIndicators-1.12.2-1.1.0-6.jar
Game version 1.12.2
Loader Not required

WorldGen Indicators WorldGenIndicators-1.12.2-1.1.0-6.jar targets 1.12.2. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is WorldGen Indicators required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release No loader listed
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does WorldGen Indicators WorldGenIndicators-1.12.2-1.1.0-6.jar need?

WorldGenIndicators-1.12.2-1.1.0-6.jar. Change the file and its required mods may change too.

All 1 required mods have matching files

Install CraftTweaker first. We found matching files for this game-version and loader setup.

CraftTweaker Needed by WorldGen Indicators WorldGenIndicators-1.12.2-1.1.0-6.jar
required
Matching file found Matched file: CraftTweaker2-1.12-4.1.20.715.jar

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add WorldGen Indicators without breaking your instance.

Built for WorldGen Indicators WorldGenIndicators-1.12.2-1.1.0-6.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use WorldGenIndicators-1.12.2-1.1.0-6.jar. It targets 1.12.2; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install CraftTweaker first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside WorldGenIndicators-1.12.2-1.1.0-6.jar. It opens that exact file at the source.

About this project

What does WorldGen Indicators add?

WorldGen indicators allows you to generate extra blocks depending of existing worldgen. One of the common uses is adding prospecting flowers for ores that generate in the chunk. It uses craftweaker to make it possible.

  • Checking for any block in the chunk and generating a block in the surface
  • Generate at a define Y relative to the checked block
  • Generate at a define Y relative to the surface
  • Generate structures based on Minecraft NBT structure
  • Checkers based on the biome

First you need to create a BlockChecker by BlockChecker.create(1) where the number is the chance of getting triggered. Then you can add block to check to it with addValid(IBlock block) and Indicators with addIndicator(IIndicator indicator). The indicator can have multiple blocks added by the method add(IBlock block). (The indicators in the block checkers and the blocks inside of the indicators will be choosen at random)

Surface Indicator

The following script adds a 10% chance of adding a redstone torch in the surface when it finds a redstone ore:

import mods.worldgenindicators.BlockChecker;
import mods.worldgenindicators.WorldGenManager;
import mods.worldgenindicators.SurfaceIndicator;
import crafttweaker.block.IBlock;

var redstoneOre = <minecraft:redstone_ore>.asBlock();
var redstoneTorch = <minecraft:redstone_torch>.asBlock();
var surfaceIndicator = SurfaceIndicator.create().add(redstoneTorch);
var blockChecker = BlockChecker.create(0.1).addValid(redstoneOre).addIndicator(surfaceIndicator);
WorldGenManager.addChecker(blockChecker);

Relative Surface Indicator

The relative surface indicator needs a parameter in the create that is how many blocks above the surface will generate the blocks.

import mods.worldgenindicators.BlockChecker;
import mods.worldgenindicators.WorldGenManager;
import mods.worldgenindicators.RelativeSurfaceIndicator;
import crafttweaker.block.IBlock;

var grass = <minecraft:grass>.asBlock();
var glass = <minecraft:glass>.asBlock();
var surfaceIndicator = RelativeSurfaceIndicator.create(20).add(glass);
var blockChecker = BlockChecker.create(1).addValid(grass).addIndicator(surfaceIndicator);
WorldGenManager.addChecker(blockChecker);

Whitelist and Blacklist

import mods.worldgenindicators.BlockChecker;
import mods.worldgenindicators.WorldGenManager;
import mods.worldgenindicators.SurfaceIndicator;
import mods.worldgenindicators.RelativeSurfaceIndicator;
import crafttweaker.block.IBlock;
import crafttweaker.item.IItemStack;

WorldGenManager.addChecker(
    BlockChecker.create(0.5d)
        .addWhitelistEntry(<minecraft:sand>.asBlock())
        .addValid(<minecraft:gold_ore>.asBlock())
        .addIndicator(SurfaceIndicator.create().add( <minecraft:gold_block>.asBlock()) )
);

WorldGenManager.addChecker(
    BlockChecker.create(0.5d)
        .addBlacklistEntry(<minecraft:grass>.asBlock())
        .addBlacklistEntry(<blockstate:minecraft:air>.block)
        .addValid(<minecraft:iron_ore>.asBlock())
        .addIndicator(RelativeSurfaceIndicator.create(2).add(<minecraft:diamond_block>.asBlock()))
);

Discord {width=32 height=32} Patreon Twitter

Promo

Project description from CurseForge.

Pick your setup

WorldGen Indicators by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

WorldGen Indicators versions and loaders

5 of 5 releases match

Looking for an older file? The official CurseForge project page is in Resources.