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

Recipe Support #7150

Open
wants to merge 61 commits into
base: dev/feature
Choose a base branch
from

Conversation

TheAbsolutionism
Copy link
Contributor

@TheAbsolutionism TheAbsolutionism commented Oct 16, 2024

Description

This PR aims to add support for recipes including:

  • BukkitClasses#Recipe
  • SkriptClasses#RecipeType
  • DefaultComparators#RecipeType->RecipeType
  • CondDiscoveredRecipes
  • CondRecipeExists
  • EffDiscoverRecipe
  • EffRemoveRecipe
  • EffResetRecipes
  • ExprAllRecipes
  • ExprGetRecipe
  • ExprRecipeCategory
  • ExprRecipeCookingTime
  • ExprRecipeExperience
  • ExprRecipeGroup
  • ExprRecipeIngredients
  • ExprRecipeKey
  • ExprRecipeKeyConverter
  • ExprRecipeResult
  • ExprRecipeType
  • SecRegisterRecipe
  • Utils#NamespacedUtils
  • Utils#RecipeUtils

Target Minecraft Versions: any
Requirements: none
Related Issues: #5261

@Fusezion

This comment was marked as resolved.

Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

So uuh thinking about moving this to a module?

@TheAbsolutionism
Copy link
Contributor Author

So uuh thinking about moving this to a module?

nada

src/main/java/ch/njol/skript/util/RecipeUtils.java Outdated Show resolved Hide resolved
@Efnilite Efnilite added the feature Pull request adding a new feature. label Oct 16, 2024
src/main/java/ch/njol/skript/util/RecipeUtils.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/util/RecipeUtils.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/util/RecipeUtils.java Outdated Show resolved Hide resolved
Copy link
Contributor

@Fusezion Fusezion left a comment

Choose a reason for hiding this comment

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

I decided more changes were needed, we're aiming for 100

@Fusezion
Copy link
Contributor

I mentioned it to smurf once, but mentioning it in the pr itself will be good, what's the thought about a proper RecipeChoice implementation to have more support of ingredients.

If this goes through a custom ItemTypeChoice should be created to enable skript's item types correctly and not converting to an itemstack always.

This should be pretty safe due to the fact recipes and these can't be serialized by default

Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

looking pretty good

@sovdeeth sovdeeth added the 2.10 Targeting a 2.10.X version release label Dec 17, 2024
@TheAbsolutionism
Copy link
Contributor Author

TheAbsolutionism commented Dec 19, 2024

Waiting on #7267 and #7286 to be merged. All good

Copy link
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

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

i think you can turn a few expressions into SPEs. didnt comment on all of them

@TheAbsolutionism
Copy link
Contributor Author

i think you can turn a few expressions into SPEs. didnt comment on all of them

Yeah, so I remember awhile ago I tried updating them to SPE but it failed. I know now it was because I was doing register and not registerDefault which I didn't know existed at the time from the previous attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 Targeting a 2.10.X version release feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants