-
Notifications
You must be signed in to change notification settings - Fork 29
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
base: master
Are you sure you want to change the base?
added lightningcraft compat #283
Conversation
New WR adding a gs compat
src/main/java/com/cleanroommc/groovyscript/compat/mods/ModSupport.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/lightningcraft/Infusion.java
Show resolved
Hide resolved
There was a problem hiding this 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)
src/main/java/com/cleanroommc/groovyscript/compat/mods/lightningcraft/Crusher.java
Outdated
Show resolved
Hide resolved
src/main/java/com/cleanroommc/groovyscript/compat/mods/lightningcraft/Crusher.java
Outdated
Show resolved
Hide resolved
public static class RecipeBuilder extends AbstractRecipeBuilder<LightningInfusionRecipe> { | ||
|
||
@Property(comp = @Comp(gte = 0)) | ||
private int le = -1; |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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. |
literally no one asked for this but here we go
oh wait Lord_Chaos did