Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add built-in Repurposed Structures compat #193

Merged
merged 5 commits into from
Jan 7, 2025

Conversation

TelepathicGrunt
Copy link
Contributor

This will add to Repurposed Structures's villages automatically. The way it works is the special rs_ folders are read by Repurposed Structures and automatically does the piece injection. No code needed on your side.

If you wish to have these files only apply when a config is set to true, you would simply grab the repurposed_structures:json_conditions registry on each loader and then add the "condition" field in the rs_pool_additions and rs_pieces_spawn_counts json files to point to the condition you registered.

Fabric: https://legacy.curseforge.com/minecraft/mc-mods/repurposed-structures-fabric/files/all?page=1&pageSize=20

NeoForge: https://github.com/TwelveIterationMods/Waystones/blob/6a54aeeb05b88b24cf61722bd151e0362f2429ec/neoforge/src/main/java/net/blay09/mods/waystones/compat/RepurposedStructuresIntegration.java#L12

The JSON condition lines:
https://github.com/LordDeatHunter/FabricWaystones/blob/60006bec36f538c945cf02e4d8dc86e7dc527d41/src/main/resources/data/fwaystones/rs_pieces_spawn_counts/village_badlands.json#L8

https://github.com/LordDeatHunter/FabricWaystones/blob/60006bec36f538c945cf02e4d8dc86e7dc527d41/src/main/resources/data/fwaystones/rs_pool_additions/villages/badlands/houses.json#L13

@JT122406 JT122406 requested review from CorgiTaco and JT122406 January 4, 2025 17:34
@JT122406 JT122406 added the enhancement New feature or request label Jan 4, 2025
Signed-off-by: Joseph T. McQuigg <[email protected]>
Signed-off-by: Joseph T. McQuigg <[email protected]>
@JT122406 JT122406 requested review from AOCAWOL and removed request for CorgiTaco January 4, 2025 18:15
@JT122406
Copy link
Member

JT122406 commented Jan 4, 2025

Made some changes, removed files from Forge Final Jar as there is no forge version of RS, Going to ask @AOCAWOL To look at each structure to verify they match what we want from our side in a content/creative side

@JT122406 JT122406 merged commit 4ba9df1 into Potion-Studios:1.21.1 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants