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

More Events for Recipe related stuff #12012

Open
ColinBashful opened this issue Jan 26, 2025 · 2 comments
Open

More Events for Recipe related stuff #12012

ColinBashful opened this issue Jan 26, 2025 · 2 comments

Comments

@ColinBashful
Copy link

Is your feature request related to a problem?

I'm currently developing an API allowing recipes with custom items as input, but there isn't any way to do the following:

  • Start smelting an item if a condition is met
  • Modify the result for the Crafter Block (not only if a valid recipe is given)

Describe the solution you'd like.

For the furnace:
An event triggered every tick, right before the furnace checks if it can smelt the given item.
This event should allow modifying the total cooking time required and provide a method to explicitly indicate whether the item can be smelted.

For the Crafter:
An event that's similar to PrepareItemCraftEvent.

Describe alternatives you've considered.

I tried mixins, but they don't work when only using PaperMC

Other

No response

@ColinBashful
Copy link
Author

Before I open up another feature request,

it'd also be nice for Campfires (Event for when clicked to allow it to place, and also another Event like the one I suggested for the furnace)

@spartacus04
Copy link

About the PrepareItemCraftEvent, Spigot just made it fire for the crafter too. This is the commit they made for this change. Implementing the same change would be pretty useful I think.

I would make a PR with this change, however I don't really know how to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants