Search in sources :

Example 1 with RandomSpreadStructurePlacement

use of net.minecraft.world.level.levelgen.structure.placement.RandomSpreadStructurePlacement in project Applied-Energistics-2 by AppliedEnergistics.

the class InitStructures method init.

public static void init(Registry<StructureFeature<?>> registry) {
    MeteoriteStructurePiece.register();
    registerStructure(registry, MeteoriteStructure.ID, MeteoriteStructure.INSTANCE, Decoration.TOP_LAYER_MODIFICATION);
    MeteoriteStructure.CONFIGURED_INSTANCE = StructureFeatures.register(MeteoriteStructure.KEY, MeteoriteStructure.INSTANCE.configured(NoneFeatureConfiguration.INSTANCE, MeteoriteStructure.BIOME_TAG_KEY));
    StructureSets.register(MeteoriteStructure.STRUCTURE_SET_KEY, new StructureSet(List.of(StructureSet.entry(MeteoriteStructure.CONFIGURED_INSTANCE)), new RandomSpreadStructurePlacement(32, 8, RandomSpreadType.LINEAR, 124895654)));
}
Also used : RandomSpreadStructurePlacement(net.minecraft.world.level.levelgen.structure.placement.RandomSpreadStructurePlacement) StructureSet(net.minecraft.world.level.levelgen.structure.StructureSet)

Aggregations

StructureSet (net.minecraft.world.level.levelgen.structure.StructureSet)1 RandomSpreadStructurePlacement (net.minecraft.world.level.levelgen.structure.placement.RandomSpreadStructurePlacement)1