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

added lightningcraft compat #283

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Wizzerinus
Copy link
Contributor

literally no one asked for this but here we go

oh wait Lord_Chaos did

Copy link
Collaborator

@WaitingIdly WaitingIdly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is also lightning transforming recipes, according to MoreTweaker, although those might deserve a similar treatment to Pneu explosion (creation of native functionality + suggestion to use that instead of custom compat)

public static class RecipeBuilder extends AbstractRecipeBuilder<LightningInfusionRecipe> {

@Property(comp = @Comp(gte = 0))
private int le = -1;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add defaultValue = "-1" to the annotation

if (!validate()) return null;


Object centerItem = input.get(0).getMatchingStacks()[0];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think this might deserve to be split off into a separate field

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I originally had it as a separate field, but really it has the same treatment as other inputs, and the only difference is that it's a separate argument for the infusion table recipe record

@Wizzerinus
Copy link
Contributor Author

Wizzerinus commented Dec 22, 2024

I've heard the LC's own lightning transform is really buggy (see: DJ2 where you can only craft electricium in a specific order), which is why I haven't implemented it. Do not mind trying to implement lightning transform properly under in-world crafting.

@brachy84 brachy84 added the mod compat Relating to compatability with a mod or features of a mod label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod compat Relating to compatability with a mod or features of a mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants