Biomes O' Plenty

Biomes O' Plenty

151M Downloads

Adding Woodcutting Recipes to BiomesOPlenty

NemoNotFound opened this issue ยท 5 comments

commented

Overview

Nemo's Woodcutter creates recipes which require less items to craft a specific item, just like the stonecutter.
If possible I'd like to contribute the data gen of the recipes.

In the past I added the compatibility to my mod, but it get's bigger and bigger with each mod and so I thought perhaps I could contribute to add the recipes to BiomesOPlenty.

Why would this feature be useful?

The woodcutter is good for builders to get more out of your resources.

commented

TBH I have no idea how that even works, cause all of our recipes are either datagenned or made by hand. And yeah, it'll need to be something that works on the 3 modloaders we support.

commented

I'll take a look on how and if it could be achieved! Thanks for the replies :D

commented

Wouldn't this lead to log spam about the recipe type missing if the mod wasn't installed? We have a lot of wood-related blocks, so I definitely wouldn't want that to bloat peoples' logs every time they launch the game.

commented

When I added the BiomesOPlenty compatibility I made it to only load when BiomesOPlenty is loaded. Like that there were no error logs. But I'd also check if this is the case, that many error logs wouldn't be good :D

commented

I just took a look and that's how I did it:

RecipeExporter exporterWithCondition = withConditions(exporter, ResourceConditions.allModsLoaded("biomesoplenty"));

Instead of biomes o plenty the condition could be nemos-woodcutter. But I'll check if it's also working that way, and let you know!

Update: this was fabric specific, need to check if this can be done with NeoForge and Forge