Skip to content
This repository has been archived by the owner on Dec 29, 2021. It is now read-only.

omega-mc/structurized

Repository files navigation

Structurized

PyPI license

Structurized is a simple library focused on providing utilities for structures, features, jigsaws, and other world gen.

Installation

build.gradle:

repositories {
	...
	maven { url 'https://jitpack.io' }
}
dependencies {
	modImplementation 'com.github.Draylar:structurized:1.16-SNAPSHOT'
}

Jigsaw Modification

Structurized currently provides a callback that allows you to modify StructurePools in jigsaws such as villages. Say we wanted to add village/desert/houses/desert_small_house_1 to the plains house pool:

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);
    }
});