GregTechCEu Modern

GregTechCEu Modern

6M Downloads

Builder option for weighted outputs

JuiceyBeans opened this issue ยท 4 comments

commented

Cross-mod Integration

No

Feature Description

A builder option that lets you add weighted outputs for recipes

.weightedOutput(ingredient, weight)

The ability to add bonus rolls, while not necessary, would be useful to have

Example:

ASSEMBLER_RECIPES.recipeBuilder("test_recipe")
                .inputItems(Items.DIRT)
                .weightedOutput(Items.SAND, 9)
                .weightedOutput(Items.DIAMOND, 1)
                .circuitMeta(1)
                .duration(200).EUt(VA[LV]).save(provider);

Would generate a recipe with 90% chance to output dirt and 10% chance to output a diamond

commented

do .chancedItemOutputLogic(ChanceLogic.XOR) and then add the outputs as normal

commented

wait this is actually possible sorry

commented

bro

commented

Do it support weights?