Skip to content

Instantly share code, notes, and snippets.

@TelepathicGrunt
TelepathicGrunt / addNewBuildingsVillages.java
Last active September 12, 2024 13:05
How to add new buildings to villages and other jigsaw structures
// Note: Lithostitch mod allows you to add to template pools easily! No code needed.
// https://github.com/Apollounknowndev/lithostitched/wiki/Worldgen-Modifiers#add_template_pool_elements
// This gist code is public domain. Take it! Steal it! AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA!!!!!!!!!!!!
// 1.18.2 code at top. 1.16.5 version farther down
private static final ResourceKey<StructureProcessorList> EMPTY_PROCESSOR_LIST_KEY = ResourceKey.create(
Registry.PROCESSOR_LIST_REGISTRY, new ResourceLocation("minecraft", "empty"));
public ExampleMod() {