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

Priest tower not appearing #74

Open
D33ino opened this issue Apr 28, 2024 · 0 comments
Open

Priest tower not appearing #74

D33ino opened this issue Apr 28, 2024 · 0 comments

Comments

@D33ino
Copy link

D33ino commented Apr 28, 2024

As you can read in code below priest wont appear in modded villages, most of villages is moded. Priest should be common in taiga and plains villages, maybe even more common than blacksmith.

i found it in: \io\redspace\ironsspellbooks\worldgen\VillageAdition.Java

I hope that you are going to change it

@SubscribeEvent
public static void addNewVillageBuilding(ServerAboutToStartEvent event) {
Registry templatePoolRegistry = (Registry)event.getServer().m_206579_().m_6632_(Registries.f_256948_).orElseThrow();
Registry processorListRegistry = (Registry)event.getServer().m_206579_().m_6632_(Registries.f_257011_).orElseThrow();
int weight = (Integer)ServerConfigs.PRIEST_TOWER_SPAWNRATE.get();
if (weight > 0) {
addBuildingToPool(templatePoolRegistry, processorListRegistry, new ResourceLocation("minecraft:village/plains/houses"), "irons_spellbooks:priest_house", weight);
addBuildingToPool(templatePoolRegistry, processorListRegistry, new ResourceLocation("minecraft:village/taiga/houses"), "irons_spellbooks:priest_house_taiga", weight);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant