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

Using "craft all" on recipes w/ replacements loses all the replacements. #6

Closed
fluxionary opened this issue Dec 24, 2019 · 6 comments · Fixed by #15
Closed

Using "craft all" on recipes w/ replacements loses all the replacements. #6

fluxionary opened this issue Dec 24, 2019 · 6 comments · Fixed by #15

Comments

@fluxionary
Copy link
Member

fluxionary commented Dec 24, 2019

Using "craft all" on recipes w/ replacements loses all the replacements. In truth, when the last craft is done, because the crafting grid is now empty, a replacement will go there, but all the other replacements are just ignored and lost.

@bousket
Copy link
Collaborator

bousket commented Dec 25, 2019 via email

@fluxionary
Copy link
Member Author

fluxionary commented Dec 25, 2019

documentation on recipe replacements:

documentation on where replacements show up after get_craft_results:

For an example of where this matters, lets use the recipe for ciabatta dough from Cucina Vegana. Note that Cucina Vegana has a bunch of other recipes w/ replacements, but some of those aren't specified sanely, so just use this one for reference.
screenshot_20191225_151239

The recipe contains the following:

  • Soy milk
  • Sunflower seed oil
  • Flour
  • Rosemary

The recipe specifies that the soy milk will be replaced with a drinking glass, and the oil w/ a bottle. As you can see, if I craft one item, the replacements show up in the crafting grid:

screenshot_20191225_151253

However, there are problems if I try to craft things in bulk using the all button from this mod:

screenshot_20191225_151028
screenshot_20191225_151151

From what I can understand, the replacement items are only automatically placed in the crafting grid, if nothing is left in the grid after crafting. Otherwise, the mod code has to manually handle doing something w/ the replacements.

@fluxionary
Copy link
Member Author

Also there's a bug in the game engine that's making it tricky for me to come up w/ a good resolution. See minetest/minetest#9250

@bousket
Copy link
Collaborator

bousket commented Dec 25, 2019 via email

@Golutazem
Copy link

@fluxionary
Copy link
Member Author

@Golutazem no, I think that's a separate issue for items w/ metadata

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

Successfully merging a pull request may close this issue.

3 participants