Mod

Structurized Reborn

Quick rating

Structurized Reborn

No reviews yet

Simple library that helps with the addition of custom village structures

No Theme
No Genre
Village Improvements
World Gen Improvements
Mod Fork/Port
API/Library
Mod Loaders
Fabric
Quilt
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.21-01
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

Structurized Reborn

License-MIT-brightgreen.svg

THIS IS A REWORK OF DRAYLAR'S STRUCTURIZED. See the original here: https://github.com/omega-mc/structurized/tree/1.18

Structurized Reborn is a simple library that helps with the addition of custom village structures.

Bisect Hosting Banner

iXATO6K.png U7qHdp4.png cf27a9e31c423f6b3d0d02a644a395f05508f678.png

Jigsaw Modification

Structurized provides a registry that allows you to add custom structures to StructurePools in jigsaws such as villages. Say we wanted to add village/plains/houses/plains_small_house_1 to the desert house pool. Simply register the new structure to the desired pool and give it a weight and some optional modifiers. Call these register methods in the same place you would call any other server-focused registry event (registering items or blocks, for example)

FabricStructurePoolRegistry.register(
    Identifier("minecraft:village/desert/houses"),                       //the target pool 
    Identifier("minecraft:village/plains/houses/plains_small_house_1"),  //the new structure nbt to add
    2,                                                                   //the weight of the structure in the pool
    StructureProcessorLists.MOSSIFY_10_PERCENT)                          //optional processor to add mossiness

If you don't have any special considerations, you can use registerSimple to make your life a bit easier:

FabricStructurePoolRegistry.registerSimple(
    Identifier("minecraft:village/desert/houses"),                       //the target pool 
    Identifier("minecraft:village/plains/houses/plains_small_house_1"),  //the new structure nbt to add
    2)                                                                   //the weight of the structure in the pool

Flexible Registration

The register method is quite flexible, with several optional parameters to use as needed. In many cases you will be OK using the registerSimple method, but the main register method can be useful for doing something like adding the random mossy cobblestone that many village structures have.

Parameters:

poolId: required, the target pool of structures to modify

structureId: required, the new structure nbt location identifier

weight: required, the probability of a structure being chosen for generation. A weight of 1 to 3 is about 1 structure per village

processor: optional, defines custom generation tweaks to apply, like random mossy cobblestone

projection: optional, defines the way the structure interacts with the ground (rigid in space or conform to the landscape)

type: optional, defines the type of structurePoolElement you want. This isn't needed the majority of the time

Callback Registration

If you want to do something more advanced with a structure pool, you can also directly register to the callback and add whatever event code you'd like. Registering to the callback looks like so:

StructurePoolAddCallback.EVENT.register(structurePool -> {
    if(structurePool.getUnderlying().getId().toString().equals("minecraft:village/plains/houses")) {
        structurePool.addStructurePoolElement(new SinglePoolElement("village/desert/houses/desert_small_house_1"), 50);
    }
});

Adding Dependency

You can add this as a dependency to your project using modrinth's built in maven repository. The {VERSION} will be the version number of the version you are trying to work with. For example, the first version of this library was uploaded under version number 1.18.2-01.

In a build.gradle:

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:Wd844r7Q:{VERSION}"
    include("maven.modrinth:Wd844r7Q:{VERSION}")
}

In a build.gradle.kts

repositories {
    maven {
        name = "Modrinth"
        url = uri("https://api.modrinth.com/maven")
        content {
            includeGroup("maven.modrinth")
        }
    }
}

dependencies {
    modImplementation("maven.modrinth:Wd844r7Q:{VERSION}")
    include("maven.modrinth:Wd844r7Q:{VERSION}")
}

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~58,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync