AlmostReliable / summoningrituals

A Minecraft mod to create custom summoning rituals for items and mobs.
https://www.curseforge.com/minecraft/mc-mods/summoningrituals
GNU Lesser General Public License v3.0
10 stars 5 forks source link

Add a biome recipe restriction. #23

Open Szajtek opened 10 months ago

Szajtek commented 10 months ago

Describe the feature/addition!

There are currently 3 recipe conditions that are possible to add to a recipe, which are:

I suggest adding another condition that checks for the biome that the altar is in for example .biome("minecraft:plains").

Why would like to see this feature/addition?

I am making a modpack where one needs to summon bosses, it would be a great addition to limit the biomes that the boss can spawn in, in order to set up some requirements like traveling to certain conditions where boss would normally reside (for example ice biome for an iceologer boss).

rlnt commented 10 months ago

I have planned to add more conditions, inputs, and outputs in future versions but the 1.20.1 update was just for some people that requested it. A bigger rework will happen on 1.20.4 or possibly 1.21 when the mod becomes NeoForge only. Since that will require a lot of internal changes anyway, I can redesign a lot of the systems.

Biome check is a good idea. I'll add that to my list. Thank you!

Szajtek commented 10 months ago

Any chance biome check would come out for 1.20.1? No worries if not, I just want to know if to look for alternative methods or wait for this to be implemented.

Thank you!

rlnt commented 10 months ago

Not planned for 1.20.1, sorry. But you can do it yourself with the start event when using KubeJS. You can check the biome there and if it's not the right one, you can cancel the craft and print a chat message. The only disadvantage would be that the recipe doesn't show the condition in JEI/REI.

Szajtek commented 10 months ago

Cheers, thank you