Daryl Tiktok

add more natural blocks that can be crafted into lots of building blocks that look good in medieval, futuristic, and modern themed builds. neoforge 26.1.2

Kodari AI
KodariOct 17 at 1:09 am 13
MedievalModernBlocks
Adds a comprehensive set of natural blocks and their craftable building variants for NeoForge 26.1.2. Introduces new stone types, woods, and minerals that can be crafted into polished, chiseled, brick, pillar, and panel forms. Each variant features distinct textures suitable for medieval, futuristic, and modern architectural styles. Includes slab, stair, wall, and fence recipes for every block type, plus decorative items like lanterns and decorative plates. All blocks are fully integrated with vanilla creative tabs, loot tables, and recipe advancements. Provides JSON data generation for recipes, models, and blockstates, ensuring seamless compatibility with existing world generation and modded ecosystems.
  1. Add three naturally generated stone types—warm limestone, dark slate, and luminous crystal stone.

  2. Register matching polished, brick, and tile variants, with survival recipes, loot, models, textures, and creative-tab entries.

  3. Add overworld ore worldgen for the three raw stones.

Added Strata & Structure with 12 blocks: limestone, slate, and aetherstone, each with polished, brick, and tile variants. They’re registered in the Building Blocks tab, have pickaxe mining and drops, and can be crafted into their variants.

In survival, limestone generates higher in the Overworld, slate deeper underground, and aetherstone at mid-depth. Craft 4 raw blocks into 4 polished blocks; craft 4 polished blocks into 4 bricks or tiles. Limestone has custom textures; slate and aetherstone use vanilla deepslate and prismarine textures.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
77 653
src/main/java/com/kodari/stratabuild/StrataBuild.java
package com.kodari.stratabuild;

import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.registries.DeferredBlock;
import net.neoforged.neoforge.registries.DeferredRegister;

@Mod(StrataBuild.MOD_ID)
public class StrataBuild {
    public static final String MOD_ID = "stratabuild";

    private static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(MOD_ID);
    private static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MOD_ID);

    private static final DeferredBlock<Block> LIMESTONE = registerStone("limestone");
    private static final DeferredBlock<Block> POLISHED_LIMESTONE = registerStone("polished_limestone");
    private static final DeferredBlock<Block> LIMESTONE_BRICKS = registerStone("limestone_bricks");
    private static final DeferredBlock<Block> LIMESTONE_TILES = registerStone("limestone_tiles");
    private static final DeferredBlock<Block> SLATE = registerStone("slate");
    private static final DeferredBlock<Block> POLISHED_SLATE = registerStone("polished_slate");
    private static final DeferredBlock<Block> SLATE_BRICKS = registerStone("slate_bricks");
    private static final DeferredBlock<Block> SLATE_TILES = registerStone("slate_tiles");
    private static final DeferredBlock<Block> AETHERSTONE = registerStone("aetherstone");
    private static final DeferredBlock<Block> POLISHED_AETHERSTONE = registerStone("polished_aetherstone");
    private static final DeferredBlock<Block> AETHERSTONE_BRICKS = registerStone("aetherstone_bricks");
    private static final DeferredBlock<Block> AETHERSTONE_TILES = registerStone("aetherstone_tiles");

    public StrataBuild(IEventBus modEventBus) {
        BLOCKS.register(modEventBus);
        ITEMS.register(modEventBus);

        ITEMS.registerSimpleBlockItem(LIMESTONE);
        ITEMS.registerSimpleBlockItem(POLISHED_LIMESTONE);
        ITEMS.registerSimpleBlockItem(LIMESTONE_BRICKS);
        ITEMS.registerSimpleBlockItem(LIMESTONE_TILES);
        ITEMS.registerSimpleBlockItem(SLATE);
        ITEMS.registerSimpleBlockItem(POLISHED_SLATE);
        ITEMS.registerSimpleBlockItem(SLATE_BRICKS);
        ITEMS.registerSimpleBlockItem(SLATE_TILES);
        ITEMS.registerSimpleBlockItem(AETHERSTONE);
        ITEMS.registerSimpleBlockItem(POLISHED_AETHERSTONE);
        ITEMS.registerSimpleBlockItem(AETHERSTONE_BRICKS);
        ITEMS.registerSimpleBlockItem(AETHERSTONE_TILES);

        modEventBus.addListener(this::addCreative);
    }

    private static DeferredBlock<Block> registerStone(String name) {
        return BLOCKS.registerBlock(name, Block::new, () -> BlockBehaviour.Properties.ofFullCopy(Blocks.STONE));
    }

    private void addCreative(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.BUILDING_BLOCKS) {
            event.accept(LIMESTONE);
            event.accept(POLISHED_LIMESTONE);
            event.accept(LIMESTONE_BRICKS);
            event.accept(LIMESTONE_TILES);
            event.accept(SLATE);
            event.accept(POLISHED_SLATE);
            event.accept(SLATE_BRICKS);
            event.accept(SLATE_TILES);
            event.accept(AETHERSTONE);
            event.accept(POLISHED_AETHERSTONE);
            event.accept(AETHERSTONE_BRICKS);
            event.accept(AETHERSTONE_TILES);
        }
    }
}