Skip to content

Mods to make datapack for compat with #113

@TelepathicGrunt

Description

@TelepathicGrunt

EDIT: For 1.21.1+ I would rather the village structure compat stuff be done on the other mod's side. Like the other mod includes the json files to have compat with Repurposed Structures out of the box without the need for players to download a datapack. Here is an example of a 1.21.1 PR that adds Repurposed Structures compat and has info for how the mod author can hook it up to a config if they wish: frikinjay/morevillagers#13


Mods that add new pieces to vanilla structures or redoes vanilla structures will need a compat datapack/mod to work with Repurposed Structures's stuff. All mod compat datapacksmods will be listed here (there's three links cause CF is dumb):

https://www.curseforge.com/minecraft/texture-packs/search?search=repurposed+structures

https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=data-packs&search=repurposed+structures

https://www.curseforge.com/minecraft/search?page=1&pageSize=20&sortBy=relevancy&class=mc-mods&search=repurposed+structures

Modrinth search is a bit better:

https://modrinth.com/datapacks?q=repurposed+structures

https://modrinth.com/mods?q=repurpsoed+structures

Note: Just because a mod is listed here and not crossed out doesn't mean I will do it. It takes a lot of work to make the compat datapacks, test to verify it is working, and then maintain it. I will get to new mods when I have time and energy.


Looking to create compat with Repurposed Structures?

Follow these tips/examples in this dropdown (click details):

Details

1.20.1 format:

You would have a structures folder with the biome variants of your nbt pieces. Then make a repurposed_structures folder, add a pool_additions folder and rs_pieces_spawn_counts_additions folder. The file path name determines which template pool to inject to and which village to limit the number of pieces in. (Do keep the name field in the pool additions file. Basically copy this example)
https://github.com/TelepathicGrunt/RepurposedStructuresCompatDatapacks/tree/699d3e5415c0e9cf8a0f4e27704c9a582213baeb/Compat_Friends_And_Foes/src/data

Now for condition supporting, you can register a method ref for the config value that controls whether to spawn your piece in villages.
https://github.com/LordDeatHunter/FabricWaystones/blob/749e3e2a4a7c720e96b283ddc9f8f1ee42778238/src/main/java/wraith/fwaystones/registry/CompatRegistry.java#L17

Once the condition is registered, you would add the conditions line to the pool_additions and rs_pieces_spawn_counts_additions json files like so, using the registered name of the condition. Now Repurposed Structures will call your condition to see if it is allowed to inject the piece into its villages or not.
https://github.com/LordDeatHunter/FabricWaystones/blob/749e3e2a4a7c720e96b283ddc9f8f1ee42778238/src/main/resources/data/repurposed_structures/pool_additions/villages/badlands/houses.json#L13

https://github.com/LordDeatHunter/FabricWaystones/blob/749e3e2a4a7c720e96b283ddc9f8f1ee42778238/src/main/resources/data/repurposed_structures/rs_pieces_spawn_counts_additions/village_badlands.json#L7

1.21.1 format:

I changed the format of these injections to be closer to how vanilla prefers datapacks to be setup. Essentially, move the two additions folders into your own modid folder instead. rename pool_additions to rs_pool_additions and rename rs_pieces_spawn_counts_additions to rs_pieces_spawn_counts. Then in the pool addition json, rename "name" field to "target_pool". And in the pieces spawn counts json, add a "target_structure" field. An example is below that you can copy the setup from. (Don't forget to rename your structures folder to structure as well since mc changed that folder name)
https://github.com/TelepathicGrunt/RepurposedStructuresCompatDatapacks/tree/main/Compat_Friends_And_Foes/src/data/friendsandfoes

Conditions are still the same as from 1.20.1:
https://github.com/LordDeatHunter/FabricWaystones/blob/60006bec36f538c945cf02e4d8dc86e7dc527d41/src/main/java/wraith/fwaystones/registry/CompatRegistry.java#L17
https://github.com/LordDeatHunter/FabricWaystones/blob/60006bec36f538c945cf02e4d8dc86e7dc527d41/src/main/resources/data/fwaystones/rs_pool_additions/villages/badlands/houses.json#L13
https://github.com/LordDeatHunter/FabricWaystones/blob/60006bec36f538c945cf02e4d8dc86e7dc527d41/src/main/resources/data/fwaystones/rs_pieces_spawn_counts/village_badlands.json#L8


Desired compat list

Vampirism Has built-in compat with RS Villages
https://www.curseforge.com/minecraft/mc-mods/vampirism-become-a-vampire

Waystones Has built-in compat with RS Villages
https://www.curseforge.com/minecraft/mc-mods/waystones

Wraith Waystones Has built-in compat with RS Villages
https://www.curseforge.com/minecraft/mc-mods/fabric-waystones

- Cobblemon
https://legacy.curseforge.com/minecraft/mc-mods/cobblemon
https://legacy.curseforge.com/minecraft/data-packs/repurposed-structures-cobblemon-compat

- Dungeons and Taverns Pillager Outpost Overhaul
https://legacy.curseforge.com/minecraft/mc-mods/dnt-pillager-outpost-overhaul
Developer denied the compat. Therefore no compat datapack/mod will be made for this. The Dungeons and Taverns dev would have to do the compat themselves or change their mind for allowing others to do the compat.

- Sawmill
https://www.curseforge.com/minecraft/mc-mods/sawmill
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-sawmill-compat
https://legacy.curseforge.com/minecraft/mc-mods/repurposed-structures-sawmill-compat

- Create: Dynamic Villages
https://www.curseforge.com/minecraft/mc-mods/dynamic-village
https://legacy.curseforge.com/minecraft/data-packs/repurposed-structures-create-dynamic-village

- Rats
https://www.curseforge.com/minecraft/mc-mods/rats
https://legacy.curseforge.com/minecraft/data-packs/repurposed-structures-rats-compat

- Immersive Engineering
https://www.curseforge.com/minecraft/mc-mods/immersive-engineering
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-immersive-engineering

- Incubation (adds a coop to villages)
https://www.curseforge.com/minecraft/mc-mods/incubation
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-incubation-compat-datapack

- Simply Cats
https://www.curseforge.com/minecraft/mc-mods/simply-cats
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-simply-cats-datapack-compat

- Iron's Spells 'n Spellbooks
https://www.curseforge.com/minecraft/mc-mods/irons-spells-n-spellbooks
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-irons-spells-n-spellbooks

- Etched
https://www.curseforge.com/minecraft/mc-mods/etched
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-etched-datapack-compat

- Ice and Fire: Dragons
https://legacy.curseforge.com/minecraft/mc-mods/ice-and-fire-dragons
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-ice-and-fire-datapack-compat

- Biome Makeover
https://www.curseforge.com/minecraft/mc-mods/biome-makeover-forge
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-biome-makeover-compat

- Floralis
https://www.curseforge.com/minecraft/mc-mods/floralis
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-floralis-compat

- More Villagers
https://www.curseforge.com/minecraft/mc-mods/more-villagers
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-more-villagers-datapack

- Yung's Better Jungle Temples
https://www.curseforge.com/minecraft/mc-mods/yungs-better-jungle-temples
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-better-jungle-temples-compat

- All bark, All bite (Pillager Outpost)
https://www.curseforge.com/minecraft/mc-mods/all-bark-all-bite
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-all-bark-all-bite-compat

- Monobank
https://www.curseforge.com/minecraft/mc-mods/monobank
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-monobank-compat

- Wares
https://legacy.curseforge.com/minecraft/mc-mods/wares
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-wares-compat

- Paladins & Priests (RPG Series)
https://www.curseforge.com/minecraft/mc-mods/paladins-and-priests
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-paladins-preists-compat

- Gazebos (RPG Series)
https://www.curseforge.com/minecraft/mc-mods/gazebos
https://legacy.curseforge.com/minecraft/texture-packs/repurposed-structures-gazebo-compat

- Jellyfishing
https://www.curseforge.com/minecraft/mc-mods/jellyfishing
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-jellyfishing-datapack-compat

- Apocalyptic Fortress
https://www.curseforge.com/minecraft/mc-mods/apocalyptic-fortress
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-apocalyptic-fortress-compat

- YUNG's Better Nether Fortresses
https://www.curseforge.com/minecraft/mc-mods/yungs-better-nether-fortresses
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-yungs-better-nether-fortress

- Bygone Nether Fortress
https://www.curseforge.com/minecraft/mc-mods/bygone-nether
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-bygone-nether-compat

- Villagers Plus
https://www.curseforge.com/minecraft/mc-mods/villagersplus-fabric
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-villagerplus-compat-datapack

- Chef delight
https://www.curseforge.com/minecraft/mc-mods/chefs-delight-fabric
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-chefs-delight-compat

- Wizards
https://www.curseforge.com/minecraft/mc-mods/wizards
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-wizards-compat-datapack

- Domestic Innovation
https://www.curseforge.com/minecraft/mc-mods/domestication-innovation
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-domestication-innovation

- Signpost (Signpost dev added compat with RS on their end in a awesome way!)
https://www.curseforge.com/minecraft/mc-mods/signpost

- Bountiful
https://www.curseforge.com/minecraft/mc-mods/bountiful
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-bountiful-datapack-compat

- Yung’s Better Desert Temples
https://www.curseforge.com/minecraft/mc-mods/yungs-better-desert-temples
https://www.curseforge.com/minecraft/mc-mods/yungs-better-desert-temples-fabric
-https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-better-desert-temples-compat

- Yung’s Better Witch Huts
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-better-witch-huts-compat
https://www.curseforge.com/minecraft/mc-mods/yungs-better-witch-huts

- Advanced Peripherals
https://www.curseforge.com/minecraft/mc-mods/advanced-peripherals
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-advanced-peripherals-compat

- Drunken Mug
https://www.curseforge.com/minecraft/mc-mods/drunken-mug
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-drunken-mug-compat-datapack

- Friends And Foes
https://www.curseforge.com/minecraft/mc-mods/friends-and-foes
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-friends-and-foes-datapack

- PneumaticCraft: Repressurized
https://www.curseforge.com/minecraft/mc-mods/pneumaticcraft-repressurized
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-pneumaticcraft-repressurized

- Hexerei
https://www.curseforge.com/minecraft/mc-mods/hexerei
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-hexerei-datapack-compat

- Tidbits
https://www.curseforge.com/minecraft/mc-mods/tidbits
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-tidbits-datapack-compat

- Tardis Mod
https://www.curseforge.com/minecraft/mc-mods/new-tardis-mod
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-new-tardis-mod-datapack

- Etched
https://www.curseforge.com/minecraft/mc-mods/etched
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-etched-datapack-compat

- Farmer's Delight
https://www.curseforge.com/minecraft/mc-mods/farmers-delight
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-farmers-delight-datapack

- Buzzier Bees
https://www.curseforge.com/minecraft/mc-mods/buzzier-bees
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-buzzier-bees-datapack-compat

- Ice and Fire
https://www.curseforge.com/minecraft/mc-mods/ice-and-fire-dragons
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-ice-and-fire-datapack-compat

- Savage and Ravage
https://www.curseforge.com/minecraft/mc-mods/savage-and-ravage
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-savage-ravage-datapack

- Better Strongholds
https://www.curseforge.com/minecraft/mc-mods/yungs-better-strongholds
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-better-strongholds-datapack

- Better Dungeons (small dungeons)
https://www.curseforge.com/minecraft/mc-mods/yungs-better-dungeons
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-better-dungeons-datapack

- Environmental
https://www.curseforge.com/minecraft/mc-mods/environmental
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-environmental-datapack

- Blackgears Cave and Cliffs Backport (take 1.17.1 fabric rs stuff and shove it into datapack)
https://www.curseforge.com/minecraft/mc-mods/caves-and-cliffs-backport
https://www.curseforge.com/minecraft/texture-packs/repurposed-structures-caves-cliffs-backport

Metadata

Metadata

Labels

SuggestionsNew features, ideas, or suggestions

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions